emerge flightgear fails with complaints about simgear header on amd64 with gcc 3.4.1 Reproducible: Always Steps to Reproduce: 1. emerge flightgear 2. 3. Actual Results: I've got compile problems with flightgear-0.9.4 - maybe a simgear-0.3.5 problem? Here's the end of the flightgear emerge output g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/usr/X11R6/include -O2 -D_REENTRANT -c -o AILocalTraffic.o `test -f AILocalTraffic.cxx || echo './'`AILocalTraffic.cxx In file included from ../../src/Scenery/tilemgr.hxx:42, from AILocalTraffic.cxx:43: /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual bool SGLockedQueue<T, SGLOCK>::empty()': /usr/include/simgear/threads/SGQueue.hxx:96: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx:96: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual void SGLockedQueue<T, SGLOCK>::push(const T&)': /usr/include/simgear/threads/SGQueue.hxx:106: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual T SGLockedQueue<T, SGLOCK>::front()': /usr/include/simgear/threads/SGQueue.hxx:116: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual T SGLockedQueue<T, SGLOCK>::pop()': /usr/include/simgear/threads/SGQueue.hxx:129: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual bool SGBlockingQueue<T>::empty()': /usr/include/simgear/threads/SGQueue.hxx:175: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual void SGBlockingQueue<T>::push(const T&)': /usr/include/simgear/threads/SGQueue.hxx:185: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual T SGBlockingQueue<T>::front()':/usr/include/simgear/threads/SGQueue.hxx:198: error: `fifo' undeclared (first use this function) /usr/include/simgear/threads/SGQueue.hxx: In member function `virtual T SGBlockingQueue<T>::pop()': /usr/include/simgear/threads/SGQueue.hxx:214: error: `fifo' undeclared (first use this function) make[2]: *** [AILocalTraffic.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/flightgear-0.9.4/work/FlightGear-0.9.4/src/ATC' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/flightgear-0.9.4/work/FlightGear-0.9.4/src' make: *** [all-recursive] Error 1 !!! ERROR: games-simulation/flightgear-0.9.4 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! emake failed Expected Results: should emerge without errors uname -a Linux dhube 2.6.7-gentoo-r8 #4 SMP Sun Jul 11 05:28:29 MST 2004 x86_64 4 GNU/Linux gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/specs Configured with: /var/tmp/portage/gcc-3.4.1/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4/info --enable-shared --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3) emerge --info Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.4.1, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 x86_64 4 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2" 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/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://www.gtlib.cc.gatech.edu/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 aalib acpi alsa amd64 apm arts avi berkdb bonobo cdr crypt cups doc dvdr encode esd foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python quicktime readline scanner sdk sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
I was able to install the beta releases of flightgear and simgear -0.3.5-pre1 using the current ebuild files with some adjustments.
I'm working on getting 0.9.5 into portage which works fine (reportedly) with gcc-3.4.x
*** This bug has been marked as a duplicate of 58514 ***
This fails also with gcc i686-pc-linux-gnu-3.3.4: function `sg_throwable::~sg_throwable()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x533): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x563): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x5b3): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x5db): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x633): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x65b): Infunction `sg_format_exception::~sg_format_exception()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x754): Infunction `sg_throwable::sg_throwable(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x771): Infunction `sg_throwable::sg_throwable(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x7f4): Infunction `sg_throwable::sg_throwable(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x811): Infunction `sg_throwable::sg_throwable(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xa7e): Infunction `sg_throwable::sg_throwable()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xaa7): Infunction `sg_throwable::sg_throwable()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xb1e): Infunction `sg_throwable::sg_throwable()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xb47): Infunction `sg_throwable::sg_throwable()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xd03): Infunction `sg_location::~sg_location()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xd2b): Infunction `sg_location::~sg_location()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xd70): Infunction `sg_location::~sg_location()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xd8d): Infunction `sg_location::~sg_location()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xfe0): Infunction `sg_location::~sg_location()': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0xffd): Infunction `sg_location::~sg_location()': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x12f1): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x1315): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x1368): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x138b): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x13a9): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x13df): In function `sg_io_exception::getFormattedMessage() const': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x1559): In function `sg_location::asString() const': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libsgstructure.a(exception.o)(.text+0x1576): In function `sg_location::asString() const': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' collect2: ld returned 1 exit status make[3]: *** [yasim] Error 1 make[3]: Leaving directory `/var/tmp/portage/flightgear-0.9.4/work/FlightGear-0.9.4/src/FDM/YASim' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/flightgear-0.9.4/work/FlightGear-0.9.4/src/FDM' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/flightgear-0.9.4/work/FlightGear-0.9.4/src' make: *** [all-recursive] Error 1 # emerge info Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r9 i686) ================================================================= System uname: 2.6.8-gentoo-r9 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /sbin /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks emergemail fixpackages nostrip notitles sandbox userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow S3TC X aac aalib acpi acpi4linux alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bzlib calendar cddb cdparanoia cdr codecs cups curl curlwrappers dbase devmap divx4linux dmx doc dv dvd dvdr dvdread encode escreen esd exif f77 faac faad fbcon ffmpeg flac foomaticdb ftp ggi gif gimp gimpprint gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml imagemagick imlib innodb interbase iodbc java javascript jbig joystick jp2 jpeg jpeg2k kde libg++ libwww live lzw-tiff mad maildir mbox mikmod mime mmx mmx2 mng monkey mono motif mozcalendar moznocompose moznoirc mozsvg mp3 mpeg mysql mysqli nas ncurses network nls no_wxgtk1 nocardbus nomac oav odbc oggvorbis ooo-kde opengl oss pam pcre pdflib perl png posix postgres ppds python qt quicktime readline rtc samba scanner sdl slang slp sox spell sqlite sse ssl svg tcltk tcpd tetex tga theora tiff timidity truetype unicode usb vanilla videos vim-with-x wmf x86 xbase xine xml2 xmms xpm xprint xv xvid yv12 zlib linguas_en_GB"
0.9.3 is OK here - another case where something is marked stable only to break.
re-opening for gcc-3.3.4 issue
The reason I did, is because I only run gcc-3.3.4 on my athlon-xp box here, and all versions of flightgear compiled just fine. (plus there were no issues reported with it). I've cc'd the toolchain people to see if they might have some input.
try not to use conf cache if you use it try to not use ccache or if you want to use it, clear the cache then remerge always try to empty your ccache in /var/tmp/portage/homedir/.ccache but also check /root/.ccache when you have problems that others report as none exitent i just merged 0.9.4 problem free in my 3.3.4 chroot Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com http://gentoo.osuosl.org/ http://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X apm arts avi berkdb bitmap-fonts crypt cups devfs devfs26 dga divx4linux dv dvd dvdr encode escreen esd etwin f77 fbcon fbdev ffmpeg foomaticdb freetype gdbm gif gnome gpm gtk gtk2 ieee1394 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg mpeg4 mplayer ncurses nls nptl oggvorbis opengl pam pdflib perl png python qt quicktime radeon readline sdl silverxp slang spell sqlite sse ssl svga tcpd truetype unicode x86 xine xinerama xml xml2 xmms xprint xv xvid zlib"
re-closing as Peter hasn't checked back in.