Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42057 - gcc-3.3.3 emerge fails in libjava/gij.cc `read_barrier' undeclared
Summary: gcc-3.3.3 emerge fails in libjava/gij.cc `read_barrier' undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-18 12:29 UTC by Collins Richey
Modified: 2005-07-15 07:42 UTC (History)
1 user (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 Collins Richey 2004-02-18 12:29:26 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 09:30:37 UTC
Can you try with changin -mcpu to -march?
Comment 2 Collins Richey 2004-02-19 09:41:53 UTC
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?
Comment 3 Collins Richey 2004-02-19 11:58:14 UTC
ok, successful emerge after change to march=i686.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 12:49:24 UTC
Ok.  Mind trying it again with original CFLAGS ?
Comment 5 Collins Richey 2004-02-19 13:02:27 UTC
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.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 13:25:54 UTC
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 ...
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 07:42:14 UTC
Assuming fixed in latest gcc versions