Page MenuHome GnuPG

libgpg-error: build failure on Windows
Open, LowPublic

Description

When building libgpg-error 1.46 or 1.47 as part of LibreOffice on Cygwin, This error occued.

libtool: compile:  C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c b64enc.c -o libgpg_error_la-b64enc.obj
b64enc.c
libtool: compile:  C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c argparse.c -o libgpg_error_la-argparse.obj
argparse.c
Xlocale" -i versioninfo.rc -o versioninfo.lo
libtool: compile: warning: libobj name `locale" -i versioninfo.rc -o versioninfo.lo' may not contain shell special characters.
rm: unknown option -- o
Try 'rm --help' for more information.
libtool: compile:  windres -O COFF --target=pe-x86-64 --preprocessor=C:/sources/core/workdir/LinkTarget/Executable/cpp.exe --preprocessor-arg=-+ -DRC_INVOKED -DWINAPI_FAMILY=0 "-IC:/PROGRA~2/WI3CF2~1/10/Include/10.0.22621.0/ucrt" "-IC:/PROGRA~2/WI3CF2~1/10/include" "-IC:/PROGRA~1/MICROS~3/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/Include" "-IC:/PROGRA~2/WI3CF2~1/10/Include/10.0.22621.0/um" "-IC:/PROGRA~2/WI3CF2~1/10/Include/10.0.22621.0/shared" "-IC:/PROGRA~1/Java/jdk-20/include/win32" "-IC:/PROGRA~1/Java/jdk-20/include" -DHAVE_CONFIG_H -I. -I.. "-DLOCALEDIR=\\/usr/local/share/locale\" -i versioninfo.rc -o versioninfo.lo" -o locale" -i versioninfo.rc -o versioninfo.obj
../libtool: eval: line 1115: unexpected EOF while looking for matching `"'
rm: unknown option -- o
Try 'rm --help' for more information.
make[5]: *** [Makefile:1621: versioninfo.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:687: all] Error 2
make[3]: *** [Makefile:517: all-recursive] Error 1
make[2]: *** [Makefile:449: all] Error 2

OS: Windows 11 22H2
Visual Studio: 2022 v17.6.5
MSVC: v143
Windows SDK: 10.22621.0

Details

Version
1.46, 1.47

Event Timeline

werner edited projects, added Cygwin; removed Windows.
werner added a subscriber: werner.

I wonder why you mention Visual Studio and Cygwin? Either it is Cygwin or a native Windows build.

This comment was removed by taichi.

I have built it according to the method described here.
(https://wiki.documentfoundation.org/Development/BuildingOnWindows)

So I mentioned Visual Studio and Cygwin.