Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304979 - dev-java/jffi-0.7_pre20100131 doesn't build with gcc-3.4
Summary: dev-java/jffi-0.7_pre20100131 doesn't build with gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 22:47 UTC by Massimo Fantin
Modified: 2010-05-02 11:59 UTC (History)
0 users

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 Massimo Fantin 2010-02-13 22:47:35 UTC
-build-native-library:
     [exec] cc -m32 -O2 -march=i686 -pipe -fomit-frame-pointer -I/usr/lib/libffi-3.0.9/include -O2 -fno-omit-frame-pointer -fno-strict-aliasing -DNDEBUG -W -Wall -Wno-unused -Wno-parentheses -Wundef -I"/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/build/jni" -I"/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/build/jni"/jni -I/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/jni -I"/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/jni/jffi" -fPIC -I"/opt/icedtea6-bin-1.7/jre/../include" -I"/opt/icedtea6-bin-1.7/jre/../include/linux" -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -pthread -march=i586 -mtune=generic -c /var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/jni/jffi/Array.c -o /var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/build/jni/jffi/Array.o
     [exec] /var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/jni/jffi/Array.c:1: error: bad value (generic) for -mtune= switch
     [exec] make: *** [/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/build/jni/jffi/Array.o] Error 1

BUILD FAILED
/var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a/custom-build.xml:119: exec returned: 2


Reproducible: Always
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2010-03-12 11:51:58 UTC
emerge --info please?

which gcc version are you using to compile this?  if 3.4 then -mtune=generic is not supported
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-03-13 09:19:13 UTC
(In reply to comment #1)
> emerge --info please?
> 
> which gcc version are you using to compile this?  if 3.4 then -mtune=generic is
> not supported
> 

Likely. The mtune comes from jffi:

betelgeuse@pena /var/tmp/portage/dev-java/jffi-0.7_pre20100131/work/wmeissner-jffi-6c5fb4a $ grep mtune -r .
./jni/GNUmakefile:    CFLAGS += -march=i586 -mtune=generic

Comment 3 Petteri Räty (RETIRED) gentoo-dev 2010-05-02 11:59:00 UTC
I patched out march and mtune in 1.0.0.