Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12934 - Mozilla 1.2.1-r4 emerge fails
Summary: Mozilla 1.2.1-r4 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-30 04:29 UTC by Uwe Weber
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Weber 2002-12-30 04:29:04 UTC
Compilation of /mozilla/xpcom/tests/ fails. Seems to be a 
library/header related problem. Excerprt of compiler/linker
error messages 8snipped for brevity):

 `nsCOMPtr<IFoo>::StartAssignment(void)':
/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../
dist/include/xpcom/nsCOMPtr.h: undefined reference to `endl(ostream &)'
TestCOMPtr.o(.text+0x4e):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../
dist/include/xpcom/nsCOMPtr.h: undefined reference to `cout'
TestCOMPtr.o(.text+0x54):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../
dist/include/xpcom/nsCOMPtr.h: undefined reference to 
`ostream::operator<<(char const *)'
TestCOMPtr.o(.text+0x5d):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../
dist/include/xpcom/nsCOMPtr.h: undefined reference to 
`ostream::operator<<(unsigned int)'

[snip repetitive errors]

collect2: ld returned 1 exit status
make[3]: *** [TestCOMPtr] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory 
`/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests'
make[2]: *** [libs] Error 2
make[2]: Leaving directory 
`/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom'
make[1]: *** [tier_2] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-1.2.1-r4 failed.
!!! Function src_compile, Line 351, Exitcode 2
!!! (no error message)
Comment 1 Mark Tlay 2002-12-30 11:49:04 UTC
Compiling with gcc-3.2.1 on a Duron 1200MHz I get the following error:

gcc -o pngwutil.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -I. 
-I../../../dist/include/png -I../../../dist/include
-I/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/dist/include/nspr     
-I/usr/X11R6/include   -fPIC -I/usr/X11R6/include  -W -Wno-unused
-Wpointer-arith -Wcast-align -Wno-long-long -march=athlon -mcpu=athlon -O3 -pipe
-pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/X11R6/include
-include ../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/pngwutil.pp
pngwutil.c
pngrtran.c: In function `png_do_expand':
pngrtran.c:3797: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [pngrtran.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/modules/libimg/png'
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-31 16:45:49 UTC
1)  Output of 'emerge info' attached please.

2)  Same box ?  If not, then specify, and add 'emerge info' for the
    second box as well.

3)  If gcc segfaults, it is usually (no relevance in order):

  a) Just what it said, a bug with gcc.

  b) Hardware related (memory most of the times).  If you havent yet,
     just run memtest86 to verify ....

  c) While still bug related, a bit easier to try and detect ... It could
     be arch optimize related.  Try with different CFLAGS:

    # CFLAGS="-march=i686 -O2 -pipe" CXXFLAGS="-march=i686 -O2 -pipe" \
      emerge mozilla

For both cases, please try to include a more complete log.  Try to list
what version of diff packages of tool chain (gcc, binutils, glibc, etc).

Thanks.
Comment 3 Uwe Weber 2003-01-05 08:23:43 UTC
Optimization problems. "-march=i686 -O2 -pipe" worked while "-march=i686 -O2" didn't. Strangely enough it now compiles with "-march=i686 -O3 -pipe" as well, which  it didn't on first try.