Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59887 - mozilla-1.7.2 fails to compile in libgklayout.so
Summary: mozilla-1.7.2 fails to compile in libgklayout.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 59906 60115 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-09 12:38 UTC by Elie De Brauwer
Modified: 2004-08-16 06:37 UTC (History)
4 users (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 Elie De Brauwer 2004-08-09 12:38:30 UTC
These are the last lines of the emerge -uD world which wanted to upgrade mozilla:
In file included from nsLayoutModule.cpp:121:
../html/base/src/nsFrame.h:392: warning: `virtual void* 
   nsFrame::GetProperty(nsIPresContext*, nsIAtom*, int) const' was hidden
../html/forms/src/nsTextControlFrame.h:155: warning:   by `virtual nsresult 
   nsTextControlFrame::GetProperty(nsIAtom*, nsAString&)'
../html/base/src/nsFrame.h:397: warning: `virtual nsresult 
   nsFrame::SetProperty(nsIPresContext*, nsIAtom*, void*, void 
   (*)(nsIPresContext*, nsIFrame*, nsIAtom*, void*))' was hidden
../html/forms/src/nsTextControlFrame.h:154: warning:   by `virtual nsresult 
   nsTextControlFrame::SetProperty(nsIPresContext*, nsIAtom*, const nsAString&)
   '
In file included from ../../content/xul/content/src/nsXULElement.h:64,
                 from nsLayoutModule.cpp:180:
../../dist/include/dom/nsIDOMXULSelectCntrlEl.h:33: warning: `virtual nsresult 
   nsIDOMXULSelectControlElement::GetSelectedItem(nsIDOMXULSelectControlItemElem                                                        ent**)
   ' was hidden
../../dist/include/dom/nsIDOMXULMultSelectCntrlEl.h:69: warning:   by `virtual 
   nsresult nsIDOMXULMultiSelectControlElement::GetSelectedItem(int, 
   nsIDOMXULSelectControlItemElement**)'
rm -f libgklayout.so
g++ -I/usr/X11R6/include -fno-rtti -fno-exceptions  -Wconversion -Wpointer-arith                                                         -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtu                                                        al-dtor -Wno-long-long -pipe -fPIC -Wno-deprecated -fshort-wchar -pthread -pipe                                                          -DNDEBUG -DTRIMMED -ffunction-sections -O1 -fPIC -shared -Wl,-h -Wl,libgklayout                                                        .so -o libgklayout.so  nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o                                                               -Wl,--whole-archive ../../dist/lib/libgkhtmlbase_s.a ../../dist/lib/libgkhtm                                                        ldoc_s.a ../../dist/lib/libgkhtmlforms_s.a ../../dist/lib/libgkhtmlstyle_s.a ../                                                        ../dist/lib/libgkhtmltable_s.a ../../dist/lib/libgkxulbase_s.a ../../dist/lib/li                                                        bgkbase_s.a ../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconevents_s.a ..                                                        /../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a ../../dist/l                                                        ib/libgkconhtmlstyle_s.a ../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkc                                                        onxmldoc_s.a ../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxuldoc_s.a ..                                                        /../dist/lib/libgkconshared_s.a ../../dist/lib/libgkview_s.a ../../dist/lib/libj                                                        sdombase_s.a ../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a  ../.                                                        ./dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgk                                                        conxulcon_s.a ../../dist/lib/libgkconxultmpl_s.a  ../../dist/lib/libgkmathmlcon_                                                        s.a ../../dist/lib/libgkmathmlbase_s.a  -Wl,--no-whole-archive -L../../dist/bin                                                         -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxp                                                        com  -L../../dist/bin -L/var/tmp/portage/mozilla-1.7.2/work/mozilla/dist/lib -lp                                                        lds4 -lplc4 -lnspr4 -lpthread -ldl  -L../../dist/bin -lmozjs  -Wl,--export-dynam                                                        ic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lp                                                        angox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    -Wl,--versi                                                        on-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsy                                                        mbolic -ldl -lm    
`.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' referenced in section `.rod                                                        ata' of ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o): defined i                                                        n discarded section `.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' of ../.                                                        ./dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o)
collect2: ld returned 1 exit status
gmake[3]: *** [libgklayout.so] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-1.7.2/work/mozilla/layout/                                                        build'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-1.7.2/work/mozilla/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-1.7.2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-1.7.2 failed.
!!! Function src_compile, Line 105, Exitcode 2
!!! (no error message)



Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1,
2.6.7-gentoo-r12)
=================================================================
System uname: 2.6.7-gentoo-r12 x86_64 4
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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.3/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.du.se/pub/os/gentoo http://gentoo.mirror.sdv.fr
http://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif gnome
gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls
nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl
slang snmp spell ssl tcpd tetex truetype xml2 xmms xv zlib"
Comment 1 Charles Noneman 2004-08-10 15:00:25 UTC
I'm getting the exact same error:

Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 x86_64 4
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d/ /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/ http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apache2 apm avi berkdb cdr crypt cups directfb divx4linux dvd dvdr encode esd foomaticdb gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg libg++ libwww mikmod motif mozilla moznoirc moznomail mpeg multilib mysql ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline samba sdl slang spell ssl tcltk tcpd tiff truetype unicode usb video_cards_radeon videos x xinerama xml xml2 xmms xprint xv xvid zlib"
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-08-11 11:29:35 UTC
*** Bug 59906 has been marked as a duplicate of this bug. ***
Comment 3 thither 2004-08-11 11:33:55 UTC
Just as a note, this also applies to net-www/mozilla-firefox-0.9.3-r1 (unsurprisingly).
Comment 4 Shawn Leas 2004-08-11 13:12:07 UTC
Switch to gcc-3.4.1 and viola! Problem gone.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-08-11 18:42:48 UTC
I'm running gcc-3.3.3-r6 on amd64 and not having problems.  But I see that gcc-3.4.1 is now marked stable for that architecture.

Elie, mind testing?
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-08-11 18:48:45 UTC
Actually, that isn't true.  gcc-3.4 is blocked by the amd64 profiles at the moment.

amd64 team, somebody want to comment on this?
Comment 7 Travis Tilley (RETIRED) gentoo-dev 2004-08-11 23:07:28 UTC
gcc 3.4 is masked for all profiles except gcc34-amd64-2004.1 and the two hardened profiles. hopefully the 2004.3 profile will also use gcc 3.4.

i had no trouble compiling firefox:

ayanami root # emerge mozilla-firefox -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/mozilla-firefox-0.9.3  -debug +gtk2 -ipv6 +java -moznoxft +truetype +xinerama 0 kB

and i use:

ayanami root # gcc --version
gcc (GCC) 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)


if it were up to me, everyone would be doing the mass migration to gcc 3.4 already. :)
Comment 8 Elie De Brauwer 2004-08-12 02:53:40 UTC
Mozilla compile succeeded today ... 

     Thu Aug 12 13:00:49 2004 >>> net-www/mozilla-1.7.2
       merge time: 31 minutes and 24 seconds.

New emerge info:

Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r13)
=================================================================
System uname: 2.6.7-gentoo-r13 x86_64 4
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang snmp spell ssl tcpd tetex truetype xml2 xmms xv zlib"


Did anybody do anything or did it go away in it's own ? 
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2004-08-12 07:10:11 UTC
*** Bug 60115 has been marked as a duplicate of this bug. ***
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-08-12 07:14:44 UTC
Elie - I don't think anybody changed anything

Travis - This problem only occurs on amd64.  It did not happen to me or you, and it seems to "go away" sometimes, so it's going to be hard to nail down.  Note the real problem is interaction between the compiler and linker.  The warnings at the top of the output are red herrings.  The real error is this:

`.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' referenced in section `.rod                                                        ata' of ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o): defined i                                                        n discarded section `.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' of ../.                                                        ./dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o)
collect2: ld returned 1 exit status
gmake[3]: *** [libgklayout.so] Error 1
Comment 11 Travis Tilley (RETIRED) gentoo-dev 2004-08-12 07:51:39 UTC
oh wow am i stupid. ok, all these users are on ~amd64 and i just recently masked the broken ~amd64 binutils for segfaulting and spitting out random errors.

if anyone who has this problem is using the latest keyworded binutils (2.15.90.0.1.1-r3), please reopen this bug. if you have binutils 2.15.91.*, please downgrade asap.
Comment 12 Eric Brown 2004-08-16 06:37:37 UTC
i have the same problem and i am on x86

In file included from ../../content/xul/content/src/nsXULElement.h:64,
                 from nsLayoutModule.cpp:180:
../../dist/include/dom/nsIDOMXULSelectCntrlEl.h:33: warning: `virtual nsresult
   nsIDOMXULSelectControlElement::GetSelectedItem(nsIDOMXULSelectControlItemElement**)
   ' was hidden
../../dist/include/dom/nsIDOMXULMultSelectCntrlEl.h:69: warning:   by `virtual
   nsresult nsIDOMXULMultiSelectControlElement::GetSelectedItem(int,
   nsIDOMXULSelectControlItemElement**)'
rm -f libgklayout.so
g++ -I/usr/X11R6/include -fno-rtti -fno-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -pipe -Wno-deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2 -fPIC -shared -Wl,-h -Wl,libgklayout.so -o libgklayout.so  nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o       -Wl,--whole-archive ../../dist/lib/libgkhtmlbase_s.a ../../dist/lib/libgkhtmldoc_s.a ../../dist/lib/libgkhtmlforms_s.a ../../dist/lib/libgkhtmlstyle_s.a ../../dist/lib/libgkhtmltable_s.a ../../dist/lib/libgkxulbase_s.a ../../dist/lib/libgkbase_s.a ../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconhtmlstyle_s.a ../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxuldoc_s.a ../../dist/lib/libgkconshared_s.a ../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a ../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a  ../../dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxultmpl_s.a  ../../dist/lib/libgkmathmlcon_s.a ../../dist/lib/libgkmathmlbase_s.a  -Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom  -L../../dist/bin -L/var/tmp/portage/mozilla-1.7.2/work/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -L../../dist/bin -lmozjs  -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm
collect2: ld returned 1 exit status
distcc[5413] ERROR: compile on localhost failed
gmake[3]: *** [libgklayout.so] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-1.7.2/work/mozilla/layout/build'



==== here is emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc fixpackages sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/ http://mirrors.tds.net/gentoo"
MAKEOPTS="-j5"
PKGDIR="/var/www/localhost/htdocs/gentoo-bins/i686"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X berkdb crypt curl doc gif gnome gtk2 jpeg mysql ncurses nls pam perl png python readline samba spell ssl tcpd threads tiff truetype x86 xml2 zlib"