include/java-threads.h: In function `_Jv_ThreadId_t _Jv_ThreadSelf()': include/java-threads.h:323: error: `read_barrier' undeclared (first use this function) include/java-threads.h:323: error: (Each undeclared identifier is reported only once for each function it appears in.) make[3]: *** [gij.o] Error 1 make[3]: *** Waiting for unfinished jobs.... Reproducible: Didn't try Steps to Reproduce: 1.emerge gcc-3.3.3 (or from emerge -u world) 2. 3. Actual Results: compile failed in gij.cc Expected Results: successful compile Could probably emerge with USE='-java'. This is a 2.6.1-rc3 ~x86 nptl udev system. Gentoo Base System version 1.4.3.13 Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.3-r c3-gentoo) ================================================================= System uname: 2.6.3-rc3-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=i686 -fomit-frame-pointer" CHOST="i386-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/env.d" CXXFLAGS="-O2 -pipe -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/dis tributions/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 apache2 apm avi berkdb crypt cups dvdr encode foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorb is opengl oss pam pdflib perl png postgres ppds python quicktime readline samba sdl s lang spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Can you try with changin -mcpu to -march?
In progress now, but gcc was compiled several times prior to 3.3.3 with and without java support from stage1 through stage2, etc., so this must be a new requirment?
ok, successful emerge after change to march=i686.
Ok. Mind trying it again with original CFLAGS ?
ok, but the test won't be 100% equivalent, since gcc-3.3.3 is now the installed compiler. Please advise whether this will help or not.
I have seen this before (cant remember if it was for gcc), but to be honest, I have no idea why it fails some times with -mcpu set, but -march not. I guess I just want to try and get some sort of direction in this ...
Assuming fixed in latest gcc versions