Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo i686) ================================================================= System uname: 2.6.16-gentoo i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LANG="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib alsa apm asf avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cli compositor crypt ctype cups dba dbus dri dts dvd dvdread emboss encode expat fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glitz glut gphoto2 gstreamer gtk gtk2 hal imagemagick imlib insecure-savers ipv6 isdnlog jpeg libcaca libg++ libwww mad matroska memlimit mikmod mmx mmxext motif mp3 mpeg mplayer ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdf pdflib perl pic png posix ppds pppd python quicktime readline rtc sdl session simplexml soap sockets speex spl sse ssl startup-notification svg tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode userlocales v4l vidix vorbis win32codecs xanim xml xml2 xscreensaver xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_evdev kernel_linux userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS
Created attachment 83982 [details] build log.
Tried also.. MAKEOPTS="-j1" CFLAFS="" It complains about X.org headers during ./configure. Got X.org 7.0 installed.
Builds OK with GCC 3.4.6 not with GCC 4.1.
Same problem with x11-libs/fox-1.5.4 (latest version, hardmasked) i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.5.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -march=athlon-xp -O3 -pipe -DHAVE_XFT_H=1 -I/usr/include/freetype2 -I/usr/include -I/usr/include/freetype2 -DHAVE_XSHAPE_H=1 -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DHAVE_CUPS_H=1 -Wall -W -Woverloaded-virtual -Wformat -O2 -DNDEBUG -Wuninitialized -ffast-math -fstrict-aliasing -finline-functions -fomit-frame-pointer -fexpensive-optimizations -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -Wp,-MD,.deps/FX7Segment.pp -c FX7Segment.cpp -fPIC -DPIC -o .libs/FX7Segment.o FX7Segment.cpp: In member function
Same problem with x11-libs/fox-1.5.4 (latest version, hardmasked) i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.5.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -march=athlon-xp -O3 -pipe -DHAVE_XFT_H=1 -I/usr/include/freetype2 -I/usr/include -I/usr/include/freetype2 -DHAVE_XSHAPE_H=1 -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DHAVE_CUPS_H=1 -Wall -W -Woverloaded-virtual -Wformat -O2 -DNDEBUG -Wuninitialized -ffast-math -fstrict-aliasing -finline-functions -fomit-frame-pointer -fexpensive-optimizations -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -Wp,-MD,.deps/FX7Segment.pp -c FX7Segment.cpp -fPIC -DPIC -o .libs/FX7Segment.o FX7Segment.cpp: In member function long int FX::FX7Segment::onCmdSetIntValue(FX::FXObject*, FX::FXSelector, void*): FX7Segment.cpp:244: error: FXStringVal was not declared in this scope FX7Segment.cpp: In member function long int FX::FX7Segment::onCmdSetRealValue(FX::FXObject*, FX::FXSelector, void*): FX7Segment.cpp:258: error: FXStringVal was not declared in this scope make[1]: *** [FX7Segment.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.5.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -march=athlon-xp -O3 -pipe -DHAVE_XFT_H=1 -I/usr/include/freetype2 -I/usr/include -I/usr/include/freetype2 -DHAVE_XSHAPE_H=1 -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DHAVE_CUPS_H=1 -Wall -W -Woverloaded-virtual -Wformat -O2 -DNDEBUG -Wuninitialized -ffast-math -fstrict-aliasing -finline-functions -fomit-frame-pointer -fexpensive-optimizations -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -Wp,-MD,.deps/FXAccelTable.pp -c FXAccelTable.cpp -fPIC -DPIC -o .libs/FXAccelTable.o FXAccelTable.cpp: In constructor FX::FXAccelTable::FXAccelTable(): FXAccelTable.cpp:72: warning: dereferencing type-punned pointer will break strict-aliasing rules FXAccelTable.cpp: In member function void FX::FXAccelTable::resize(FX::FXuint): FXAccelTable.cpp:86: warning: dereferencing type-punned pointer will break strict-aliasing rules FXAccelTable.cpp:99: warning: dereferencing type-punned pointer will break strict-aliasing rules FXAccelTable.cpp: In member function virtual void FX::FXAccelTable::load(FX::FXStream&): FXAccelTable.cpp:257: warning: dereferencing type-punned pointer will break strict-aliasing rules FXAccelTable.cpp: In destructor virtual FX::FXAccelTable::~FXAccelTable(): FXAccelTable.cpp:270: warning: dereferencing type-punned pointer will break strict-aliasing rules i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.5.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -march=athlon-xp -O3 -pipe -DHAVE_XFT_H=1 -I/usr/include/freetype2 -I/usr/include -I/usr/include/freetype2 -DHAVE_XSHAPE_H=1 -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DHAVE_CUPS_H=1 -Wall -W -Woverloaded-virtual -Wformat -O2 -DNDEBUG -Wuninitialized -ffast-math -fstrict-aliasing -finline-functions -fomit-frame-pointer -fexpensive-optimizations -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -Wp,-MD,.deps/FXAccelTable.pp -c FXAccelTable.cpp -o FXAccelTable.o >/dev/null 2>&1 make[1]: Leaving directory `/var/tmp/portage/fox-1.5.4/work/fox-1.5.4/src' make: *** [all-recursive] Error 1 !!! ERROR: x11-libs/fox-1.5.4 failed.
Created attachment 83989 [details] fox-1.6.2.ebuild Latest upstream version works with GCC 4.1
issues: it requires fox-wrapper that's a masked package, but, more suspect, it requires me dev-utils/reswrap even if the dependancy isn't in fox or in fox-wrapper ebuilds (is this dep pulled in by an eclass???).... But I checked with kuroo the mask info and for both the masking cause was : "new fox layout, testing", so I'm testing right now.
worksforme , tested adding 1.6 version to fox-wrapper script and then compiling/testing denormgen (after setting WANTS_FOX="1.6"... )
*** Bug 140693 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > *** Bug 140693 has been marked as a duplicate of this bug. *** > Hmmm...I searched for 'x11-libs/fox-1.4.11 fails to compile with gcc- 4.1' and never found this bug, so I filed one. I couldn't compile fox nor the xfe app, which is what depends on this, for me. I modified the fox-1.4.11.ebuild to a fox-1.4.34.ebuild, which is the latest stable 1.4.x and includes a patch for gcc-4.1. Portage couldn't find a digest file on the mirrors, but downloaded the source file from foxtoolkit's site, wrote the manifest and then I was able to emerge fox-1.4.34 and xfe both w/o errrors.
Created attachment 91935 [details] This is the modified ebuild that worked for me.
(In reply to comment #10) > Created an attachment (id=91935) [edit] > This is the modified ebuild that worked for me. Works for me, too - thanks. Can this ebuild be added to the portage tree?
Created attachment 92711 [details] x11-libs/fox/fox-1.4.12.ebuild setting -ffriend-injecton for gcc-4.1 With this ebuild, I successfully managed to compile fox-1.4.12 using gcc-4.1.1. It simply checks for gcc version 4.1 and appends -ffriend-injection to the flags. But I just noticed that fox-1.4.34 is stable, and I hope it will work with gcc-4.1 without such flags. I'll keep you informed once I've tried.
Created attachment 92713 [details] fox-1.4.34.ebuild (In reply to comment #12) > But I just noticed that fox-1.4.34 is stable, and I hope it will work with > gcc-4.1 without such flags. I'll keep you informed once I've tried. Yes, fox-1.4.34 compiles with gcc-4.1.1 without any modifications to CXXFLAGS or sources. You only have to unmask the packages for the new layout: awk '/07 May 2005/,/^$/{print}' /usr/portage/profiles/package.mask \ >> /etc/portage/package.unmask It would be nice to have this mask removed soon, so we get all the ~arch testes trying out this new layout.
Created attachment 92735 [details] fox-1.2.18.ebuild with -ffriend-injection for gcc-4.1 OK, this is a x11-libs/fox-1.2* that compiles with gcc-4.1.1. The latest version from that branch, 1.2.18, still relies on friend injection, so this looks a lot like what I did for comment #12.
Should be set on this.
The current "stable" version still fails on 4.1: c++ -DPACKAGE=\"fox\" -DVERSION=\"1.2.6\" -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_VSSCANF=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -I/usr/include/freetype2 -I/usr/include -I/usr/include/freetype2 -I/usr/include/freetype2 -DHAVE_XFT_H=1 -DHAVE_XSHM_H=1 -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes -Woverloaded-virtual -Wformat -c FXColorSelector.cpp -fPIC -DPIC -o .libs/FXColorSelector.lo cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ FXColorSelector.cpp: In member function 'long int FX::FXColorSelector::onUpdAlphaText(FX::FXObject*, FX::FXSelector, void*)': FXColorSelector.cpp:446: error: 'FXStringVal' was not declared in this scope FXColorSelector.cpp: In member function 'long int FX::FXColorSelector::onUpdRGBText(FX::FXObject*, FX::FXSelector, void*)': FXColorSelector.cpp:551: error: 'FXStringVal' was not declared in this scope FXColorSelector.cpp: In member function 'long int FX::FXColorSelector::onUpdHSVText(FX::FXObject*, FX::FXSelector, void*)': FXColorSelector.cpp:597: error: 'FXStringVal' was not declared in this scope FXColorSelector.cpp: In member function 'long int FX::FXColorSelector::onUpdCMYText(FX::FXObject*, FX::FXSelector, void*)': FXColorSelector.cpp:642: error: 'FXStringVal' was not declared in this scope distcc[23355] ERROR: compile FXColorSelector.cpp on localhost failed make[1]: *** [FXColorSelector.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/fox-1.2.6-r3/work/fox-1.2.6/src' make: *** [all-recursive] Error 1 !!! ERROR: x11-libs/fox-1.2.6-r3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile fox-1.2.6-r3.ebuild, line 39: Called die
(In reply to comment #16) > The current "stable" version still fails on 4.1: see bug #145046