Firefox .9.3-r1 ebuild fails... from talking to people in #gentoo, it seems this issue is GCC 3.4 only here's the error: Creating ../../dist/include/dbm /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R -m 644 nsres.h cdefs.h mcom_db.h ncompat.h winfile.h ../../dist/include/dbm /usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/dbm/.headerlist nsres.h cdefs.h mcom_db.h ncompat.h winfile.h gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/include' gmake[3]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/src' Creating .deps gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/src' gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm' gmake[2]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/other-licenses/libart_lgpl' gmake[2]: *** No rule to make target `export'. Stop. gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/other-licenses/libart_lgpl' gmake[1]: *** [tier_1] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla' make: *** [default] Error 2 Here's the results of emerge --info Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.8-rc2-love3) ================================================================= System uname: 2.6.8-rc2-love3 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.5.2 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -ftracer -march=athlon-xp -fomit-frame-pointer -mtune=athlon-xp" 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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -ftracer -march=athlon-xp -fomit-frame-pointer -mtune=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/bmg-gnome-current /usr/local/portage/trunk /usr/local/portage/jays" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow S3TC X aim alsa apm avi cdr crypt cups devfs26 divx4linux encode esd foomaticdb gdbm gif gimp gimpprint gnome gpm gtk gtk+ gtk2 guile icq imlib java jikes jpeg ldap libwww live mad mikmod mmx mng mozilla moznocompose moznoirc moznomail mozsvg mpeg mpeg4 msn ncurses net nocd nptl nvidia offensive oggvorbis opengl pam pdflib perl png pthreads python qt quicktime readline sdl slang spell sse ssl svg svga tcpd truetype usb x86 xine xml xml2 xmms xv xvid yahoo zlib"
I'm getting the same thing. I just did an emerge -eD world yesterday before this ebuild and everything compiled flawlessly. Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.8-rc2-love3) ================================================================= System uname: 2.6.8-rc2-love3 i686 AMD Athlon(tm) XP 2700+ Gentoo Base System version 1.5.2 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer -ffast-math" 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/kde/cvs/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/trunk /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aim alsa apache2 apm arts atlas avi berkdb cdb cdr crypt cups deskmenu dga directfb divx dvd encode esd fbcon foomaticdb gdbm gif gpm gtk gtk2 icq imlib java jpeg libg++ libwww mad merkdb mikmod mmx motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam panelplugin pdflib perl png python qt quicktime readline samba sdl slang sockets spell sse ssl svga tcpd tiff truetype usb vesa wmv x86 xml2 xmms xorg xv xvid zlib" nsFreeType.cpp g++ -o nsFreeType.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I../.. -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/gfx -I../../../dist/include -I/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dist/include/nspr -I/usr/include/freetype2 -I/usr/X11R6/include -fPIC -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=athlon-xp -pipe -Wno-deprecated -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsFreeType.pp nsFreeType.cpp In file included from nsFreeType.h:39, from nsFreeType.cpp:48: ../../../dist/include/gfx/nsIFreeType2.h:53: error: `GetImageCache' declared as a `virtual' field ../../../dist/include/gfx/nsIFreeType2.h:53: warning: `visibility' attribute ignored ../../../dist/include/gfx/nsIFreeType2.h:53: error: expected `;' before '(' token ../../../dist/include/gfx/nsIFreeType2.h:92: error: `ImageCacheLookup' declared as a `virtual' field ../../../dist/include/gfx/nsIFreeType2.h:92: warning: `visibility' attribute ignored ../../../dist/include/gfx/nsIFreeType2.h:92: error: expected `;' before '(' token ../../../dist/include/gfx/nsIFreeType2.h:104: error: `FTC_Image_Cache' has not been declared ../../../dist/include/gfx/nsIFreeType2.h:104: error: ISO C++ forbids declaration of `cache' with no type In file included from nsFreeType.cpp:48: nsFreeType.h:107: error: typedef `FTC_Image_Cache_Lookup_t' is initialized (use __typeof__ instead) nsFreeType.h:107: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.h:107: error: `FTC_Image_Desc' was not declared in this scope nsFreeType.h:107: error: expected primary-expression before ',' token nsFreeType.h:107: error: expected primary-expression before ',' token nsFreeType.h:107: error: expected primary-expression before '*' token nsFreeType.h:107: error: expected primary-expression before ')' token nsFreeType.h:113: error: `FTC_Image_Cache' has not been declared nsFreeType.h:113: error: ISO C++ forbids declaration of `parameter' with no type nsFreeType.h:145: error: `GetImageCache' declared as a `virtual' field nsFreeType.h:145: warning: `visibility' attribute ignored nsFreeType.h:145: error: expected `;' before '(' token nsFreeType.h:145: error: `ImageCacheLookup' declared as a `virtual' field nsFreeType.h:145: warning: `visibility' attribute ignored nsFreeType.h:145: error: expected `;' before '(' token nsFreeType.h:145: error: `FTC_Image_Cache' has not been declared nsFreeType.h:145: error: ISO C++ forbids declaration of `cache' with no type nsFreeType.h:216: error: `FTC_Image_Cache' does not name a type nsFreeType.cpp:101: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Face' of NULL object nsFreeType.cpp:101: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:102: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_FreeType' of NULL object nsFreeType.cpp:102: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:103: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Glyph' of NULL object nsFreeType.cpp:103: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:104: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Char_Index' of NULL object nsFreeType.cpp:104: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:105: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Glyph' of NULL object nsFreeType.cpp:105: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:106: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Sfnt_Table' of NULL object nsFreeType.cpp:106: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:107: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Get_CBox' of NULL object nsFreeType.cpp:107: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:108: warning: invalid access to non-static data member `nsFreeType2::nsFT_Init_FreeType' of NULL object nsFreeType.cpp:108: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:109: warning: invalid access to non-static data member `nsFreeType2::nsFT_Load_Glyph' of NULL object nsFreeType.cpp:109: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:110: warning: invalid access to non-static data member `nsFreeType2::nsFT_New_Face' of NULL object nsFreeType.cpp:110: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:111: warning: invalid access to non-static data member `nsFreeType2::nsFT_Outline_Decompose' of NULL object nsFreeType.cpp:111: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:112: warning: invalid access to non-static data member `nsFreeType2::nsFT_Set_Charmap' of NULL object nsFreeType.cpp:112: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:113: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_Lookup' of NULL object nsFreeType.cpp:113: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:114: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Lookup_Size' of NULL object nsFreeType.cpp:114: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:115: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Done' of NULL object nsFreeType.cpp:115: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:116: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_New' of NULL object nsFreeType.cpp:116: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:117: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_New' of NULL object nsFreeType.cpp:117: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:119: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Transform' of NULL object nsFreeType.cpp:119: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:120: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Kerning' of NULL object nsFreeType.cpp:120: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:121: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Copy' of NULL object nsFreeType.cpp:121: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:122: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_To_Bitmap' of NULL object nsFreeType.cpp:122: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:124: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_First_Char' of NULL object nsFreeType.cpp:124: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:125: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Next_Char' of NULL object nsFreeType.cpp:125: warning: (perhaps the `offsetof' macro was used incorrectly) nsFreeType.cpp:285: error: `nsresult nsFreeType2::ImageCacheLookup' is not a static member of `class nsFreeType2' nsFreeType.cpp:285: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.cpp:285: error: `FTC_Image_Desc' was not declared in this scope nsFreeType.cpp:285: error: `desc' was not declared in this scope nsFreeType.cpp:286: error: expected primary-expression before "glyphID" nsFreeType.cpp:286: error: expected primary-expression before '*' token nsFreeType.cpp:286: error: `glyph' was not declared in this scope nsFreeType.cpp:287: error: initializer expression list treated as compound expression nsFreeType.cpp:287: error: expected `,' or `;' before '{' token nsFreeType.cpp:323: error: `FTC_Image_Cache' has not been declared nsFreeType.cpp:324: error: ISO C++ forbids declaration of `cache' with no type nsFreeType.cpp:392: error: `nsresult nsFreeType2::GetImageCache' is not a static member of `class nsFreeType2' nsFreeType.cpp:392: error: `FTC_Image_Cache' was not declared in this scope nsFreeType.cpp:392: error: `aCache' was not declared in this scope nsFreeType.cpp:393: error: expected `,' or `;' before '{' token nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()': nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this function) nsFreeType.cpp:429: error: (Each undeclared identifier is reported only once for each function it appears in.) nsFreeType.cpp: In member function `PRBool nsFreeType2::InitLibrary()': nsFreeType.cpp:668: error: `mImageCache' undeclared (first use this function) gmake[4]: *** [nsFreeType.o] Error 1 gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/gfx/src/freetype' gmake[3]: *** [libs] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/gfx/src' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/gfx' gmake[1]: *** [tier_9] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-firefox-0.9.3-r1 failed. !!! Function src_compile, Line 88, Exitcode 2 !!! (no error message)
confirm same as Mike Lewis, also it appears that the very same problem is manifested in mozilla-1.7.2.ebuild too. this is an ebuild issue, as i tested by recompiling Firefox-0.9.3 and there were no such problems, whereas Firefox-0.9.3-r1 fails to compile. hth
another interesting thing, is that the ebuilds shells out of portage and end up in gmake
Mine compiles fine until this: /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R -m 755 firefox-config ../../dist/bin /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R run-mozilla.sh ../../dist/bin gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/build/unix' /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R bloaturls.txt ../dist/bin /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R bloatcycle.html ../dist/bin/res gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/build' gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla' /usr/bin/gmake tier_1 gmake[1]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla' tier_1: dbm other-licenses/libart_lgpl gmake[2]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm' gmake[3]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/include' Creating ../../dist/include/dbm /var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/config/nsinstall -R -m 644 nsres.h cdefs.h mcom_db.h ncompat.h winfile.h ../../dist/include/dbm /usr/bin/perl -I../../config ../../config/build-list.pl ../../dist/include/dbm/.headerlist nsres.h cdefs.h mcom_db.h ncompat.h winfile.h gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/include' gmake[3]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/src' Creating .deps gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm/src' gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/dbm' gmake[2]: Entering directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/other-licenses/libart_lgpl' gmake[2]: *** No rule to make target `export'. Stop. gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla/other-licenses/libart_lgpl' gmake[1]: *** [tier_1] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-0.9.3-r1/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-firefox-0.9.3-r1 failed. !!! Function src_compile, Line 88, Exitcode 2 !!! (no error message) No problems with nsFreeType.h at all, no other warnings or error either. ------------------------------------------------------------------------ Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8-rc3) ================================================================= System uname: 2.6.8-rc3 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) [disabled]Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi berkdb bonobo bzlib cdr crypt curl divx4linux dvd encode faac faad ffmpeg flac freetype gd gdbm glade gnome gpm gstreamer gtk gtk2 idea imagemagick imap ipv6 jpeg libg++ libwww live mad maildir mbox md5sum mikmod mmx mozsvg mpeg mpeg4 ncurses nls oggvorbis opengl operanom2 pam png postgres quicktime readline ruby sdl slang spell sse ssl tcltk tcpd theora tiff truetype unicode v4l2 vanilla x86 xml2 xmms xv xvid yv12 zlib"
Looks like this isn't a GCC 3.4 only issue. That's the identical error to mine and he's running GCC 3.3.
The libart issues are fixed. Please emerge --sync The freetype issues are separate. You can workaround them with USE=-truetype emerge mozilla-firefox I suspect that part is incompatibility between gcc-3.4 and mozilla/freetype
It compiles perfect for me now, even with truetype use flag.
Mike, btw we are tracking the freetype problem in bug 59849