Re: Failed to build libreoffice with libgpg-error-1.47 on Windows
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 logg
Failed to build libreoffice with libgpg-error-1.47 on Windows
* { font-size: 13px; font-family: 'MS Pゴシック', sans-serif;}p, ul, ol, blockquote { margin: 0;}a { color: #0064c8; text-decoration: none;}a:hover { color: #0057af; text-decoration: underline;}a:active { color: #004c98;} 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_