Compilation error: checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for x86_64-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for dlopen in -ldl... yes checking for the suffix of shared libraries... .so checking for GOBJECT... yes checking for GTHREAD... yes checking for GIO_UNIX... yes checking for SCANNER... yes checking for FFI... no checking for ffi.h... configure: error: ffi.h not found Reproducible: Always
emerge --info, full config.log, emerge -pv gcc
(In reply to comment #1) > emerge --info, full config.log, emerge -pv gcc > Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Sun, 17 May 2009 07:15:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r14, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ ftp://ftp.unina.it/pub/linux/distributions/gentoo " LANG="it_IT.utf8@euro" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome /usr/portage/local/layman/notify-osd /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 apache2 berkdb bzip2 cairo cdr cleartype cli cracklib crypt cups dbus dri dvd fortran gdbm gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg midi mmx mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre perl php png policykit pppd python readline reflection samba session spl sse sse2 ssl svg sysfs tcpd truetype unicode usb xorg xulrunner zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS [ebuild R ] sys-devel/gcc-4.3.2-r3 USE="fortran gtk libffi mudflap (multilib) nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj (-hardened) -ip28 -ip32r10k -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla" 0 kB
Created attachment 191580 [details] Config log
Could you paste the output of: qlist gcc |egrep ffi (from portage-utils)
(In reply to comment #4) > Could you paste the output of: > > qlist gcc |egrep ffi > > (from portage-utils) > intel4 netcelli # qlist gcc |egrep ffi /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32/libffi.so.4.0.1 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32/libffi.la /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32/libffi.so.4 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32/libffi.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32/libffi.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/libffi.so.4.0.1 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/libffi.la /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/ffitarget.h /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/ffi.h /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/libffi.so.4 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/libffi.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/libffi.a
Info provided, reopening...
Could you put the following in a file (say test.h) -------------------------------8<---------------------------------------------- /* confdefs.h. */ #define PACKAGE_NAME "gobject-introspection" #define PACKAGE_TARNAME "gobject-introspection" #define PACKAGE_VERSION "0.6.2" #define PACKAGE_STRING "gobject-introspection 0.6.2" #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection" #define PACKAGE "gobject-introspection" #define VERSION "0.6.2" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define YYTEXT_POINTER 1 #define HAVE_LIBDL 1 #define SHLIB_SUFFIX "so" #define GOBJECT_INTROSPECTION_LIBDIR "/usr/lib64" /* end confdefs.h. */ #include <ffi.h> -------------------------------8<---------------------------------------------- and compile it with: gcc test.h && echo $? and tell us what the value is. If it is 1, you might be having problem with your gcc installation/environment.
(In reply to comment #7) > Could you put the following in a file (say test.h) > > > -------------------------------8<---------------------------------------------- > /* confdefs.h. */ > #define PACKAGE_NAME "gobject-introspection" > #define PACKAGE_TARNAME "gobject-introspection" > #define PACKAGE_VERSION "0.6.2" > #define PACKAGE_STRING "gobject-introspection 0.6.2" > #define PACKAGE_BUGREPORT > "http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection" > #define PACKAGE "gobject-introspection" > #define VERSION "0.6.2" > #define STDC_HEADERS 1 > #define HAVE_SYS_TYPES_H 1 > #define HAVE_SYS_STAT_H 1 > #define HAVE_STDLIB_H 1 > #define HAVE_STRING_H 1 > #define HAVE_MEMORY_H 1 > #define HAVE_STRINGS_H 1 > #define HAVE_INTTYPES_H 1 > #define HAVE_STDINT_H 1 > #define HAVE_UNISTD_H 1 > #define HAVE_DLFCN_H 1 > #define LT_OBJDIR ".libs/" > #define YYTEXT_POINTER 1 > #define HAVE_LIBDL 1 > #define SHLIB_SUFFIX "so" > #define GOBJECT_INTROSPECTION_LIBDIR "/usr/lib64" > /* end confdefs.h. */ > #include <ffi.h> > -------------------------------8<---------------------------------------------- > > and compile it with: gcc test.h && echo $? and tell us what the value is. > > If it is 1, you might be having problem with your gcc installation/environment. > netcelli@intel4 ~ $ gcc test.h test.h:27:17: error: ffi.h: No such file or directory test.h:7: error: expected identifier or ‘(’ before string constant
> netcelli@intel4 ~ $ gcc test.h > test.h:27:17: error: ffi.h: No such file or directory well then, there is a problem in your local installation, CCing toolchain so they might enlighten us. > test.h:7: error: expected identifier or ‘(’ before string constant did you cut the line starting with "#define PACKAGE_BUGREPORT" in two lines ? I'm sorry I should have attached a file to avoid formatting issues in bugzilla.
(In reply to comment #9) > > netcelli@intel4 ~ $ gcc test.h > > test.h:27:17: error: ffi.h: No such file or directory > > well then, there is a problem in your local installation, CCing toolchain so > they might enlighten us. > > > test.h:7: error: expected identifier or ‘(’ before string constant > > did you cut the line starting with "#define PACKAGE_BUGREPORT" in two lines ? > I'm sorry I should have attached a file to avoid formatting issues in bugzilla. > Fixed first problem, but : test.h:26:17: error: ffi.h: No such file or directory
I have installed gcc with USE libffi, because dev-libs/gobject-introspection-0.6.2 need this gcc test.h && echo Nothing but I have now always if I install a Package paludis -i xerces-c Building target list... Building dependency list...paludis@1243376365: [WARNING elike_use_requirement.query] In thread ID '31335': ... In program paludis (--dl-reinstall if-use-changed --continue-on-failure if-satisfied) -i xerces-c: ... When performing install action from command line: ... When executing install task: ... When building dependency list: ... When adding PackageDepSpec 'dev-libs/xerces-c': ... When adding package 'dev-libs/xerces-c-3.0.1:0::gentoo': ... When adding build dependencies as pre dependencies: ... When adding PackageDepSpec 'net-libs/libwww': ... When adding installed package 'net-libs/libwww-5.4.0-r7:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'virtual/mysql': ... When adding installed package 'virtual/mysql-5.0:0::installed': ... When adding run dependencies as post dependencies: ... When using already installed package to resolve dependencies: ... When adding PackageDepSpec '=dev-db/mysql-5.0*': ... When adding installed package 'dev-db/mysql-5.0.76-r1:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=dev-libs/openssl-0.9.6d': ... When adding installed package 'dev-libs/openssl-0.9.8k:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'app-crypt/mit-krb5': ... When adding installed package 'app-crypt/mit-krb5-1.6.3-r6:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=sys-libs/e2fsprogs-libs-1.41.0': ... When adding installed package 'sys-libs/e2fsprogs-libs-1.41.4:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=sys-libs/glibc-2.6': ... When adding installed package 'sys-libs/glibc-2.10.1:2.2::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'sys-devel/gettext': ... When adding installed package 'sys-devel/gettext-0.17:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'dev-libs/libxml2': ... When adding installed package 'dev-libs/libxml2-2.7.3-r1:2::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'dev-lang/python': ... When adding installed package 'dev-lang/python-2.6.2:2.6::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=app-admin/eselect-python-20080925': ... When adding installed package 'app-admin/eselect-python-20080925:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=app-admin/eselect-1.0.2': ... When adding installed package 'app-admin/eselect-1.1_rc3:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'sys-apps/paludis': ... When adding installed package 'sys-apps/paludis-0.36.1:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'app-crypt/gnupg': ... When adding installed package 'app-crypt/gnupg-2.0.11:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=net-misc/curl-7.7.2': ... When adding installed package 'net-misc/curl-7.19.4:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'app-misc/ca-certificates': ... When adding installed package 'app-misc/ca-certificates-20080809:0::installed': ... When adding run dependencies as post dependencies: ... When using already installed package to resolve dependencies: ... When adding PackageDepSpec '>=sys-apps/coreutils-6.10-r1': ... When adding installed package 'sys-apps/coreutils-7.4:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'sys-libs/libcap': ... When adding installed package 'sys-libs/libcap-2.16-r1:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'virtual/pam': ... When adding installed package 'virtual/pam-1.0.4::installed-virtuals (virtual for sys-libs/pam-1.0.4:0::installed)': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec 'sys-libs/pam': ... When adding installed package 'sys-libs/pam-1.0.4:0::installed': ... When adding post dependencies as post dependencies unless under a suggested label: ... When adding PackageDepSpec 'sys-auth/pambase': ... When adding installed package 'sys-auth/pambase-20090515:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=gnome-base/gnome-keyring-2.20[pam]': ... When adding installed package 'gnome-base/gnome-keyring-2.26.1-r1:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=x11-libs/gtk+-2.6': ... When adding installed package 'x11-libs/gtk+-2.16.1:2::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=x11-libs/pango-1.20': ... When adding installed package 'x11-libs/pango-1.24.2:0::installed': ... When adding run dependencies as post dependencies: ... When adding PackageDepSpec '>=dev-libs/gobject-introspection-0.6.2': ... When adding installed package 'dev-libs/gobject-introspection-0.6.2:0::installed': ... When adding run dependencies as post dependencies: ... When using already installed package to resolve dependencies: ... When adding PackageDepSpec 'sys-devel/gcc[libffi]': ... When finding all versions sorted from packages matching sys-devel/gcc[libffi] intersected with packages that might support action install with filter all matches: ... ID 'sys-devel/gcc-2.95.3-r10:2.95::gentoo' has no flag named 'libffi' paludis@1243376365: [WARNING elike_use_requirement.query] (same context) ID 'sys-devel/gcc-3.2.3-r4:3.2::gentoo' has no flag named 'libffi' paludis@1243376365: [WARNING elike_use_requirement.query] (same context) ID 'sys-devel/gcc-3.1.1-r2:3.1::gentoo' has no flag named 'libffi' paludis@1243376365: [WARNING elike_use_requirement.query] (same context) ID 'sys-devel/gcc-2.95.3-r9:2.95::gentoo' has no flag named 'libffi' These packages will be installed: * dev-libs/xerces-c [R 3.0.1] <target> How can I this fix now, plese?
I fix the problem; i compiled gcc-4.3.2-r3 with libffi flag whn i was using gcc-4.1.2; so i switch to new gcc and all works now. Sorry, so it seems not to be a bug :)
arg I was blind
thanks for updating us at least.
Looks lik ethis bug is valid. I had exactly the same behavior. I have installed libffi: emerge libffi and everything started to work! (libffi was not installed before). So, why the python package do not have dependency against libffi than? Why it fails during compilation phase, not during deps checking phase?