this ebuild fails to compile. Reproducible: Always
Created attachment 744822 [details] archive of build log,` emerge --info firefox` and `emerge -pqv firefox` archive of build log, output of emerge --info '=www-client/firefox-93.0::gentoo', and output emerge -pqv '=www-client/firefox-93.0::gentoo'
Excerpt from the build.log: 147:26.13 /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/libz.a(gzlib.o): in function `snprintf': 147:26.14 /usr/x86_64-w64-mingw32/usr/include/stdio.h:441: undefined reference to `__mingw_vsnprintf' I cannot figure out why mingw should appear here.
(In reply to Tee KOBAYASHI from comment #2) > Excerpt from the build.log: > > 147:26.13 > /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ > ld.bfd: /usr/lib/libz.a(gzlib.o): in function `snprintf': > 147:26.14 /usr/x86_64-w64-mingw32/usr/include/stdio.h:441: undefined > reference to `__mingw_vsnprintf' > > I cannot figure out why mingw should appear here. That is very weird. I have a mingw64 compiler installed with crossdev as described here: https://wiki.gentoo.org/wiki/Mingw . But I have no idea why this is happening, it shouldn't be using mingw at all.
I'll try recompiling with USE="+clang"
Can you please run: - emerge -v1 sys-libs/zlib /usr/lib/libz.a - wgetpaste /usr/x86_64-w64-mingw32/usr/include/stdio.h Could you also please try to install via a clean root environment (not via sudo) or try with env -i?
Created attachment 745056 [details] second build log
(In reply to Sam James from comment #5) > Can you please run: > - emerge -v1 sys-libs/zlib /usr/lib/libz.a > - wgetpaste /usr/x86_64-w64-mingw32/usr/include/stdio.h > > Could you also please try to install via a clean root environment (not via > sudo) or try with env -i? The first command gives me the following: >These are the packages that would be merged, in order: > >Calculating dependencies - > >!!! '/usr/lib/libz.a' is not claimed by any package. >... done! I had to install the libz and libpng libraries myself to get SDL_Image working with mingw64. I basicially just followed the instructions here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mingw-w64-zlib It looks like I have a bunch of *.a and *.dll.a files in my /usr/lib and /usr/libexec. should I remove those? I think I may have accidentally put those there. > ls /usr/lib | grep -e "\.a" >libanl.a >libBrokenLocale.a >libc.a >libc_nonshared.a >libcrypt.a >libcurses.a >libdl.a >libform.a >libformw.a >libg.a >libgnutls.a >libgnutls-openssl.a >libgnutlsxx.a >libhttp_parser.a >libiberty.a >libm.a >libmcheck.a >libmenu.a >libmenuw.a >libminizip.a >libncurses++.a >libncurses.a >libncurses++w.a >libncursesw.a >liborc-test-0.4.a >libpanel.a >libpanelw.a >libpthread.a >libresolv.a >librt.a >libSDL2.dll.a >libSDL2main.a >libSDL2_test.a >libsysprof-capture-4.a >libtinfo.a >libtinfow.a >libutil.a >libwebrtc_audio_processing.a >libz.a >libz.dll.a For the second command, https://dpaste.com/CLQLC8MUT I tried re-emerging with su and env -i, but it failed so I uploaded that build log too.
Okay I deleted the files with `rm $(qfile -o /usr/lib/*)` and `rm $(qfile -o /usr/libexec/*)` and firefox built fine. sorry about that.