Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54519 - net-www/mozilla-1.7 : Fail To Compile: ptthread.c / ptio.c
Summary: net-www/mozilla-1.7 : Fail To Compile: ptthread.c / ptio.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 05:58 UTC by FieldySnuts
Modified: 2004-06-25 18:42 UTC (History)
3 users (show)

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


Attachments
mozilla-1.7 portage log (2792-mozilla-1.7.log,96.79 KB, text/plain)
2004-06-20 05:59 UTC, FieldySnuts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FieldySnuts 2004-06-20 05:58:41 UTC
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"
Comment 1 FieldySnuts 2004-06-20 05:59:43 UTC
Created attachment 33632 [details]
mozilla-1.7 portage log
Comment 2 lison 2004-06-20 06:44:33 UTC
Confirmed / Bump: I have the same problem on my two machines here!
Comment 3 alexander j pierce 2004-06-21 15:26:42 UTC
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....
Comment 4 Pol 2004-06-23 10:39:55 UTC
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 #
Comment 5 Nick Demchenko 2004-06-23 11:23:28 UTC
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
Comment 6 alexander j pierce 2004-06-23 11:30:59 UTC
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.
Comment 7 Kristiaan Lenaerts 2004-06-24 02:53:21 UTC
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...)
Comment 8 Kristiaan Lenaerts 2004-06-24 03:53:18 UTC
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.
Comment 9 alexander j pierce 2004-06-25 11:47:18 UTC
I agree with that.  built fine if you force it to build non-parallel
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-06-25 18:42:52 UTC
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.