[ebuild NS ] dev-java/gnu-classpath-0.93 USE="alsa cairo -debug -dssi -examples -gconf gtk nsplugin xml" ... gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Werror -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -mtune=athlon-xp -O3 -pipe -frename-registers -c gthread-jni.c -fPIC -DPIC -o .libs/gthread-jni.o cc1: warnings being treated as errors gthread-jni.c: In function 'mutex_trylock_jni_impl': gthread-jni.c:1521: warning: 'mcache.lockForPotentialLockersObj' may be used uninitialized in this function make[3]: *** [gthread-jni.lo] Error 1 make[3]: Leaving directory `/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/work/classpath-0.93/native/jni/gtk-peer' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/work/classpath-0.93/native/jni' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/work/classpath-0.93/native' make: *** [all-recursive] Error 1 !!! ERROR: dev-java/gnu-classpath-0.93 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 2976: Called src_compile gnu-classpath-0.93.ebuild, line 106: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/temp/build.log'. Reproducible: Always Steps to Reproduce:
Created attachment 111632 [details] emerge --info
(In reply to comment #0) > !!! A complete build log is located at > '/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/temp/build.log'. > Please attach this file.
Created attachment 111635 [details] build.log
(In reply to comment #2) > (In reply to comment #0) > > > !!! A complete build log is located at > > '/home/portage/tmp/portage/dev-java/gnu-classpath-0.93/temp/build.log'. > > > > Please attach this file. > done in the very same moment you asked me to do this ;)
Created attachment 111637 [details] build.log Reporter: please unrice your cflags and try again. Try (in one line): CFLAGS="-march=athlon-xp -O3 -pipe" CXXFLAGS="-march=athlon-xp -O3 -pipe" LDFLAGS="" emerge -1v =dev-java/gnu-classpath-0.93 Apart from that, I also couldn't emerge gnu-classpath with this: USE="alsa cairo -debug -dssi -examples -gconf gtk nsplugin xml" emerge -1v =dev-java/gnu-classpath-0.93 Build.log attached
This is an upstream bug. gnu-classpath doesn't compile with -O3 it seems. Changing it to -O2 while waiting for upstream to fix this.
Indeed, changing -O3 to -O2 circumvents this problem but the next one comes with "nsplugin" useflag, which is described in bug #168780 and which Peter Alfredsen also suffers from.
Upstream bug was fixed, we no longer filter flags for some time and no problems were reported. Assuming it's fixed, and removed the already-unused flag-o-matic inherits.
Marking this bug as FIXED.