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

Bug 559202

Summary: sys-libs/glibc: missing header on ppc (32 bit)
Product: Gentoo Linux Reporter: Patrice Clement <monsieurp>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: java, ppc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 535080    

Description Patrice Clement (RETIRED) gentoo-dev 2015-08-30 21:19:12 UTC
I'm trying to build dev-java/jffi-1.2.7 and I can't due to a missing header. I'm using timberdoodle in a chrooted ppc environment.

timberdoodle-ppc jffi-1.2.7 # pwd
/var/tmp/portage/dev-java/jffi-1.2.7/work/jffi-1.2.7
timberdoodle-ppc jffi-1.2.7 # make SRC_DIR=jni JNI_DIR=jni BUILD_DIR=build/jni VERSION=1.2 USE_SYSTEM_LIBFFI=1 -f jni/GNUmakefile                                             
In file included from /usr/include/features.h:390:0,
                 from /usr/include/stdio.h:27,
                 from jni/jffi/LongDouble.c:33:
/usr/include/gnu/stubs.h:11:30: fatal error: gnu/stubs-64-v1.h: No such file or directory
 # include <gnu/stubs-64-v1.h>
                              ^
compilation terminated.
jni/GNUmakefile:287: recipe for target 'build/jni/jffi/LongDouble.o' failed
make: *** [build/jni/jffi/LongDouble.o] Error 1

The content of /usr/include/gnu is as follows:
timberdoodle-ppc jffi-1.2.7 # ls -l /usr/include/gnu/
total 20
-rw-r--r-- 1 1022 1022 1263 Aug 23 12:55 libc-version.h
-rw-r--r-- 1 1022 1022 4589 Aug 23 12:55 lib-names.h
-rw-r--r-- 1 1022 1022  571 Aug 23 12:57 stubs-32.h
-rw-r--r-- 1 1022 1022  404 Aug 23 12:55 stubs.h

I've dug around on the web and stumbled across this RH bug that mentions the same problem:
https://bugzilla.redhat.com/show_bug.cgi?id=1058258

The suggested solution seems to be installing glib32 AND glibc64. How does that work for Gentoo?

There's an on going stabilisation request for jffi (see bug 535080) which, up the dependency chain, blocks a CVE resolution affecting jython (see bug 552452): jython-2.7, as well as a bunch of new packages, need to be keyworded for ppc/ppc64.

Thanks for your help!

Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2015-08-30 21:25:34 UTC

*** This bug has been marked as a duplicate of bug 547814 ***