Failed to build libreoffice with libgpg-error-1.47 on Windows

taichi 20001722 at ymail.ne.jp
Sat Jul 22 05:11:47 UTC 2023


I send the diff as an attachment.

On 2023/07/17 19:20, taichi wrote:
>
>
> Hi, everyone.
>
>
> I build LibreOffice from source on Windows 11 (22H2) and it failed to 
> build libgpg-error.
>
> However, if the version of libgpg-error to be built is 1.44 or 1.45, 
> the following error didn't occur and the build succeeded.
>
>
> (In build.log)
>
> ---- begin compiler messages -------
>
> ***
>
> *** Please note that your compiler does not support the GCC style
>
> *** aligned attribute. Using this software may evoke bus errors.
>
> ***
>
> Making all in m4
>
> Making all in src
>
> mkheader.c
>
> mkerrcodes.c
>
> ./gpg-error.h.in:508: note: including './syscfg/lock-obj-pub.mingw32.h'
>
> strsource-sym.c
>
> strerror-sym.c
>
> gpg-error.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-gettext.c -o libgpg_error_la-w32-gettext.obj
>
> w32-gettext.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-lock.c -o libgpg_error_la-w32-lock.obj
>
> w32-lock.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-thread.c -o libgpg_error_la-w32-thread.obj
>
> w32-thread.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-iconv.c -o libgpg_error_la-w32-iconv.obj
>
> w32-iconv.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-estream.c -o libgpg_error_la-w32-estream.obj
>
> w32-estream.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> w32-reg.c -o libgpg_error_la-w32-reg.obj
>
> w32-reg.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> spawn-w32.c -o libgpg_error_la-spawn-w32.obj
>
> spawn-w32.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> init.c -o libgpg_error_la-init.obj
>
> init.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> version.c -o libgpg_error_la-version.obj
>
> version.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> estream.c -o libgpg_error_la-estream.obj
>
> estream.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> estream-printf.c -o libgpg_error_la-estream-printf.obj
>
> estream-printf.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> strsource.c -o libgpg_error_la-strsource.obj
>
> strsource.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> strerror.c -o libgpg_error_la-strerror.obj
>
> strerror.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> code-to-errno.c -o libgpg_error_la-code-to-errno.obj
>
> code-to-errno.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> code-from-errno.c -o libgpg_error_la-code-from-errno.obj
>
> code-from-errno.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> visibility.c -o libgpg_error_la-visibility.obj
>
> visibility.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> sysutils.c -o libgpg_error_la-sysutils.obj
>
> sysutils.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> stringutils.c -o libgpg_error_la-stringutils.obj
>
> stringutils.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> syscall-clamp.c -o libgpg_error_la-syscall-clamp.obj
>
> syscall-clamp.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> logging.c -o libgpg_error_la-logging.obj
>
> logging.c
>
> libtool: 
> compile: C:/sources/core/workdir/LinkTarget/Executable/gcc-wrapper.exe 
> -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -g -c 
> b64dec.c -o libgpg_error_la-b64dec.obj
>
> b64dec.c
>
> 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
>
> ---- begin compiler messages -------
>
>
> Regards,
>
> taichi.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230722/462e1007/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 817e56f.diff
Type: text/x-patch
Size: 11680 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230722/462e1007/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x079F07D3DD6C02B7.asc
Type: application/pgp-keys
Size: 644 bytes
Desc: OpenPGP public key
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230722/462e1007/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230722/462e1007/attachment.sig>


More information about the LibreOffice mailing list