Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818034 - www-client/firefox-93.0 fails to build
Summary: www-client/firefox-93.0 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-14 02:10 UTC by Adam
Modified: 2021-10-16 01:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
archive of build log,` emerge --info firefox` and `emerge -pqv firefox` (buildlog_firefox.tar.xz,499.66 KB, application/x-xz)
2021-10-14 02:16 UTC, Adam
Details
second build log (buildlog2.tar.xz,348.31 KB, application/x-xz)
2021-10-15 19:56 UTC, Adam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2021-10-14 02:10:06 UTC
this ebuild fails to compile.

Reproducible: Always
Comment 1 Adam 2021-10-14 02:16:28 UTC
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'
Comment 2 Tee KOBAYASHI 2021-10-14 02:32:39 UTC
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.
Comment 3 Adam 2021-10-15 03:29:26 UTC
(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.
Comment 4 Adam 2021-10-15 03:29:50 UTC
I'll try recompiling with USE="+clang"
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-15 04:09:50 UTC
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?
Comment 6 Adam 2021-10-15 19:56:28 UTC
Created attachment 745056 [details]
second build log
Comment 7 Adam 2021-10-15 20:18:19 UTC
(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.
Comment 8 Adam 2021-10-16 01:20:06 UTC
Okay I deleted the files with `rm $(qfile -o /usr/lib/*)` and `rm $(qfile -o /usr/libexec/*)` and firefox built fine. sorry about that.