msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.29k stars 1.22k forks source link

gettext 0.19.7-1 failed to build #1928

Closed trippleflux closed 6 years ago

trippleflux commented 7 years ago

Failed to build today :

Making all in src
make[4]: Entering directory '/home/Prodigy/MINGW-packages/mingw-w64-gettext/src/                                                                                                                                                                                               build-x86_64-w64-mingw32/gettext-runtime/src'
x86_64-w64-mingw32-gcc -DLOCALEDIR=\"/mingw64/share/locale\" -DHAVE_CONFIG_H -I.                                                                                                                                                                                                -I../../../gettext-0.19.7/gettext-runtime/src -I..  -I. -I../../../gettext-0.19                                                                                                                                                                                               .7/gettext-runtime/src -I.. -I../intl -I../../../gettext-0.19.7/gettext-runtime/                                                                                                                                                                                               src/../intl -I../gnulib-lib -I../../../gettext-0.19.7/gettext-runtime/src/../gnu                                                                                                                                                                                               lib-lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -DINST                                                                                                                                                                                               ALLDIR=\"/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe -c -o gettext-get                                                                                                                                                                                               text.o `test -f 'gettext.c' || echo '../../../gettext-0.19.7/gettext-runtime/src                                                                                                                                                                                               /'`gettext.c
windres `/bin/sh ../../../gettext-0.19.7/gettext-runtime/../windows/windres-opti                                                                                                                                                                                               ons --escape 0.19.7` -i ../../../gettext-0.19.7/gettext-runtime/../windows/gette                                                                                                                                                                                               xt.rc -o gettext.res --output-format=coff
x86_64-w64-mingw32-gcc -DLOCALEDIR=\"/mingw64/share/locale\" -DHAVE_CONFIG_H -I.                                                                                                                                                                                                -I../../../gettext-0.19.7/gettext-runtime/src -I..  -I. -I../../../gettext-0.19                                                                                                                                                                                               .7/gettext-runtime/src -I.. -I../intl -I../../../gettext-0.19.7/gettext-runtime/                                                                                                                                                                                               src/../intl -I../gnulib-lib -I../../../gettext-0.19.7/gettext-runtime/src/../gnu                                                                                                                                                                                               lib-lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -DINST                                                                                                                                                                                               ALLDIR=\"/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe -c -o ngettext-ng                                                                                                                                                                                               ettext.o `test -f 'ngettext.c' || echo '../../../gettext-0.19.7/gettext-runtime/                                                                                                                                                                                               src/'`ngettext.c
x86_64-w64-mingw32-gcc -DLOCALEDIR=\"/mingw64/share/locale\" -DHAVE_CONFIG_H -I.                                                                                                                                                                                                -I../../../gettext-0.19.7/gettext-runtime/src -I..  -I. -I../../../gettext-0.19                                                                                                                                                                                               .7/gettext-runtime/src -I.. -I../intl -I../../../gettext-0.19.7/gettext-runtime/                                                                                                                                                                                               src/../intl -I../gnulib-lib -I../../../gettext-0.19.7/gettext-runtime/src/../gnu                                                                                                                                                                                               lib-lib -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -DINST                                                                                                                                                                                               ALLDIR=\"/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe -c -o envsubst-en                                                                                                                                                                                               vsubst.o `test -f 'envsubst.c' || echo '../../../gettext-0.19.7/gettext-runtime/                                                                                                                                                                                               src/'`envsubst.c
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc -DINSTALLDIR=\                                                                                                                                                                                               "/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe  -pipe -Wl,--disable-auto                                                                                                                                                                                               -import -o gettext.exe gettext-gettext.o ../gnulib-lib/libgrt.a ../intl/libintl.                                                                                                                                                                                               la -L/mingw64/lib -liconv -R/mingw64/lib  -L/mingw64/lib -liconv -R/mingw64/lib                                                                                                                                                                                                gettext.res
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc -DINSTALLDIR=\                                                                                                                                                                                               "/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe  -pipe -Wl,--disable-auto                                                                                                                                                                                               -import -o ngettext.exe ngettext-ngettext.o ../gnulib-lib/libgrt.a ../intl/libin                                                                                                                                                                                               tl.la -L/mingw64/lib -liconv -R/mingw64/lib  -L/mingw64/lib -liconv -R/mingw64/l                                                                                                                                                                                               ib gettext.res
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc -DINSTALLDIR=\                                                                                                                                                                                               "/mingw64/bin\" -march=x86-64 -mtune=generic -O2 -pipe  -pipe -Wl,--disable-auto                                                                                                                                                                                               -import -o envsubst.exe envsubst-envsubst.o ../gnulib-lib/libgrt.a ../intl/libin                                                                                                                                                                                               tl.la -L/mingw64/lib -liconv -R/mingw64/lib  -L/mingw64/lib -liconv -R/mingw64/l                                                                                                                                                                                               ib gettext.res
libtool: link: x86_64-w64-mingw32-gcc -DINSTALLDIR=\"/mingw64/bin\" -march=x86-6                                                                                                                                                                                               4 -mtune=generic -O2 -pipe -pipe -Wl,--disable-auto-import -o .libs/ngettext.exe                                                                                                                                                                                                ngettext-ngettext.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.d                                                                                                                                                                                               ll.a -L/mingw64/lib -liconv -L/mingw64/lib
libtool: link: x86_64-w64-mingw32-gcc -DINSTALLDIR=\"/mingw64/bin\" -march=x86-6                                                                                                                                                                                               4 -mtune=generic -O2 -pipe -pipe -Wl,--disable-auto-import -o .libs/gettext.exe                                                                                                                                                                                                gettext-gettext.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.dll.                                                                                                                                                                                               a -L/mingw64/lib -liconv -L/mingw64/lib
libtool: link: x86_64-w64-mingw32-gcc -DINSTALLDIR=\"/mingw64/bin\" -march=x86-6                                                                                                                                                                                               4 -mtune=generic -O2 -pipe -pipe -Wl,--disable-auto-import -o .libs/envsubst.exe                                                                                                                                                                                                envsubst-envsubst.o gettext.res  ../gnulib-lib/libgrt.a ../intl/.libs/libintl.d                                                                                                                                                                                               ll.a -L/mingw64/lib -liconv -L/mingw64/lib
collect2.exe: error: ld returned 5 exit status
collect2.exe: error: ld returned 5 exit status
make[4]: *** [Makefile:1371: ngettext.exe] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:1367: gettext.exe] Error 1
make[4]: Leaving directory '/home/Prodigy/MINGW-packages/mingw-w64-gettext/src/b                                                                                                                                                                                               uild-x86_64-w64-mingw32/gettext-runtime/src'
make[3]: *** [Makefile:1367: all-recursive] Error 1
make[3]: Leaving directory '/home/Prodigy/MINGW-packages/mingw-w64-gettext/src/b                                                                                                                                                                                               uild-x86_64-w64-mingw32/gettext-runtime'
make[2]: *** [Makefile:1272: all] Error 2
make[2]: Leaving directory '/home/Prodigy/MINGW-packages/mingw-w64-gettext/src/b                                                                                                                                                                                               uild-x86_64-w64-mingw32/gettext-runtime'
make[1]: *** [Makefile:413: all-recursive] Error 1
make[1]: Leaving directory '/home/Prodigy/MINGW-packages/mingw-w64-gettext/src/b                                                                                                                                                                                               uild-x86_64-w64-mingw32'
make: *** [Makefile:369: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
peterbud commented 7 years ago

It does build properly. Please read this first carefully: Contributing to MSYS2 If you want to build the package for yourself you ca do tha with the following command: MINGW_INSTALLS=mingw64 makepkg-mingw -sLf

Also keep in mind that this package is cheking GPG signature so first import the appropriate GPG key: gpg --recv-key D605848ED7E69871

If you are OK with the response please close the issue.

mati865 commented 7 years ago

I couldn't build it yesterday (the same error as @trippleflux) but had no time to investigate it.

peterbud commented 7 years ago

I just tried, and build finished without error

mati865 commented 7 years ago

Maybe it is long path issue. If you could build it that's great.

hfp-ak commented 7 years ago

The collect2 errors seem to come from this bug: https://github.com/Alexpux/MSYS2-packages/issues/454

lazka commented 6 years ago

With Alexpux/MSYS2-packages#454 being fixed and various updates to the gettext package in the meantime I guess this can be closed.