Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559818

Summary: firefox [debug] fails to build with musl on x86 - ../../../dist/system_wrappers/sys/queue.h:3:28: fatal error: sys/queue.h: No such file or directory
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: [OLD] UnspecifiedAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: blueness, mozilla
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.mozilla.org/show_bug.cgi?id=1152185
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702, 559788    
Attachments: compressed build.log
emerge.info

Description tt_1 2015-09-06 20:35:45 UTC
Created attachment 411212 [details]
compressed build.log

tried to emerge firefox on x86 with debug useflag. 

my useflags are

USE="dbus debug* gstreamer jemalloc3 minimal system-cairo system-icu system-jpeg system-libvpx system-sqlite -bindist -custom-cflags -custom-optimization -egl -gmp-autoupdate -gstreamer-0 (-hardened) -jit (-neon) (-pgo) -pulseaudio (-selinux) -startup-notification {-test} -wifi"


the compressed build log is attached. 

my guess is that this is the most important part? 



In file included from /var/tmp/portage/www-client/firefox-40.0.3-r99/work/mozilla-release/media/mtransport/third_party/nrappkit/src/share/nr_api.h:42:0,
                 from /var/tmp/portage/www-client/firefox-40.0.3-r99/work/mozilla-release/media/mtransport/test/buffered_stun_socket_unittest.cpp:18:
../../../dist/system_wrappers/sys/queue.h:3:28: fatal error: sys/queue.h: No such file or directory
 #include_next <sys/queue.h>
                            ^
compilation terminated.
/var/tmp/portage/www-client/firefox-40.0.3-r99/work/mozilla-release/config/rules.mk:946: recipe for target 'buffered_stun_socket_unittest.o' failed
Comment 1 tt_1 2015-09-06 20:36:26 UTC
Created attachment 411214 [details]
emerge.info
Comment 2 Felix Janda 2015-09-06 20:48:58 UTC
Try to see if

https://hg.mozilla.org/mozilla-central/raw-rev/a5f9103a3f66

applies cleanly and fixes it. It will be unnecessary with version 41.

The corresponding bug is: https://bugzilla.mozilla.org/show_bug.cgi?id=1152185
Comment 3 Jory A. Pratt gentoo-dev 2015-09-06 21:54:17 UTC
(In reply to Felix Janda from comment #2)
> Try to see if
> 
> https://hg.mozilla.org/mozilla-central/raw-rev/a5f9103a3f66
> 
> applies cleanly and fixes it. It will be unnecessary with version 41.
> 
> The corresponding bug is:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1152185

To make life easier please use the mozilla overlay, we always keep the latest beta available for testing and porting
Comment 4 Felix Janda 2015-09-07 17:50:34 UTC
@ Jorry A. Pratt:
The mozilla overlay does not have the patches necessary for building
with musl libc. Current hg firefox needs at least 5 patches.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2015-09-07 18:51:08 UTC
(In reply to Felix Janda from comment #4)
> @ Jorry A. Pratt:
> The mozilla overlay does not have the patches necessary for building
> with musl libc. Current hg firefox needs at least 5 patches.

That is true, but all the mozilla-based packages support 'epatch_user', and the packages on mozilla-overlay usually include an ebuild of newer versions than the main tree.
Comment 6 tt_1 2015-10-31 20:16:52 UTC
merged upstream from firefox-41.x on.