net-www/mozilla-1.7 is not compiling for me. I am going to attach a portage log. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.3.10p1 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache notitles sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://gentoo.ccccom.com" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm avi berkdb cdr chroot crypt dv dvd dvdr encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png pwdb python qt quicktime readline sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Created attachment 33632 [details] mozilla-1.7 portage log
Confirmed / Bump: I have the same problem on my two machines here!
Here is where the actual issue appears to be.. back with linking/prlink.c gcc -o memory/./prshm.o -c -fforce-addr -pipe -ansi -Wall -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I../../pr/include -I../../pr/include/private memory/./prshm.c gcc -o memory/./prshma.o -c -fforce-addr -pipe -ansi -Wall -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I../../pr/include -I../../pr/include/private memory/./prshma.c linking/prlink.c: In function `pr_LoadLibraryByPathname': linking/prlink.c:919: warning: `oserr' might be used uninitialized in this function linking/prlink.c: In function `PR_GetLibraryFilePathname': linking/prlink.c:1720: error: `Dl_info' undeclared (first use in this function) linking/prlink.c:1720: error: (Each undeclared identifier is reported only once linking/prlink.c:1720: error: for each function it appears in.) linking/prlink.c:1720: error: syntax error before "dli" linking/prlink.c:1723: warning: implicit declaration of function `dladdr' linking/prlink.c:1723: error: `dli' undeclared (first use in this function) distcc[23610] ERROR: compile linking/./prlink.c on hplx0023.boi.hp.com failed make[4]: *** [linking/./prlink.o] Error 1 make[4]: *** Waiting for unfinished jobs....
I dont have the same error ... but it's ptthread.c/ptio.c related Look: gcc -o ptthread.o -c -march=pentium3 -fforce-addr -pipe -ansi -Wall -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -D_XOPEN_SOURCE=500 -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private ptthread.c gcc -o ptmisc.o -c -march=pentium3 -fforce-addr -pipe -ansi -Wall -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -D_XOPEN_SOURCE=500 -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private ptmisc.c ptsynch.c: In function `PR_NewCondVar': ptsynch.c:329: warning: unused variable `rv' ptsynch.c: In function `PR_DestroyCondVar': ptsynch.c:344: warning: unused variable `rv' ptthread.c: In function `PR_EnumerateThreads': ptthread.c:1099: warning: unused variable `me' ptio.c: In function `_pr_poll_with_poll': ptio.c:3748: warning: `start' might be used uninitialized in this function ptio.c: In function `PR_Select': ptio.c:4816: warning: `start' might be used uninitialized in this function make[5]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr/src/pthreads' make[4]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr/src' make[3]: *** [export] Error 2 make[3]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr' make[2]: *** [export] Error 2 make[2]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub' make[1]: *** [nspr] Error 2 make[1]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-1.7 failed. !!! Function src_compile, Line 370, Exitcode 2 !!! (no error message) wolverine root #
Having exactly the same issue as described above in comment #4: ptsynch.c: In function `PR_NewCondVar': ptsynch.c:329: warning: unused variable `rv' ptsynch.c: In function `PR_DestroyCondVar': ptsynch.c:344: warning: unused variable `rv' ptthread.c: In function `PR_EnumerateThreads': ptthread.c:1099: warning: unused variable `me' gcc -o ptmisc.o -c -fforce-addr -pipe -ansi -Wall -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -D_XOPEN_SOURCE=500 -I/var/tmp/portage/mozilla-1.7/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private ptmisc.c ptio.c: In function `_pr_poll_with_poll': ptio.c:3748: warning: `start' might be used uninitialized in this function ptio.c: In function `PR_Select': ptio.c:4816: warning: `start' might be used uninitialized in this function make[5]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr/src/pthreads' make[4]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr/src' make[3]: *** [export] Error 2 make[3]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub/pr' make[2]: *** [export] Error 2 make[2]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla/nsprpub' make[1]: *** [nspr] Error 2 make[1]: Leaving directory `/var/tmp/portage/mozilla-1.7/work/mozilla' make: *** [default] Error 2
I am assuming everyone is doing a parallel make. If you notice, everyone is posting an error log with just warnings. You have to trace back pretty far to find the actual compiler error that is causing it to bomb out. Unitialized variable warnings won't cause a compilation to die.
while looking at the suggestion of #6 (not running a parallel make), I found that it's not trivial to do that. Just adding MAKEOPTS="-j1" in front of emerge does not work, the ebuild just ignores it. My guess is it comes from "get_number_of_jobs" on line 70 of the ebuild. Anyway, after commenting out that line, and emerging with MAKEOPTS="-j1", there seems to be no problem at all, the compile just keeps going :-) (not finished yet, but running for 15 minutes already...)
the emerge is completed, and works (posting this with mozilla 1.7) so it seems that mozilla doesn't like to be build in parallel. And there is a bug in get_number_of_jobs, in the eutils.eclass file, because it ignores the MAKEOPTS specified on the commandline.
I agree with that. built fine if you force it to build non-parallel
Thanks for figuring this out, guys. I just committed mozilla-1.7.ebuild without get_number_of_jobs and just calling "make" so that parallel build is not used. There's no point in respecting MAKEOPTS-jN at all for mozilla if it's going to break sometimes ... just results in bugs like this.