Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 168800

Summary: dev-java/gnu-classpath-0.93 - compilation fails with -O3 in CFLAGS
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Java team <java>
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-02-28 22:35:49 UTC
[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:, line 1614:   Called dyn_compile, 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:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-02-28 22:36:35 UTC
Created attachment 111632 [details]
emerge --info
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-02-28 22:37:55 UTC
(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.

Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-02-28 22:37:55 UTC
Created attachment 111635 [details]
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-02-28 22:44:22 UTC
(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 ;)
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2007-02-28 23:09:29 UTC
Created attachment 111637 [details]

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
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-02-28 23:13:27 UTC
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.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-02-28 23:36:00 UTC
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.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-25 13:09:52 UTC
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.
Comment 9 Patrice Clement gentoo-dev 2015-08-21 07:25:00 UTC
Marking this bug as FIXED.