* Package: dev-ruby/ffi-1.0.7 * Repository: gentoo * Maintainer: ruby@gentoo.org * USE: elibc_glibc kernel_linux ruby_targets_ruby18 ruby_targets_ruby19 userland_GNU x86 * FEATURES: sandbox userpriv usersandbox >>> Unpacking source... * Running unpack phase for all ... >>> Unpacking ffi-git-1.0.7.tgz to /var/tmp/portage/dev-ruby/ffi-1.0.7/work/all >>> Source unpacked in /var/tmp/portage/dev-ruby/ffi-1.0.7/work >>> Preparing source in /var/tmp/portage/dev-ruby/ffi-1.0.7/work ... * Running prepare phase for all ... * Running source copy phase for ruby18 ... * Running source copy phase for ruby19 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-ruby/ffi-1.0.7/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-ruby/ffi-1.0.7/work ... * Running compile phase for ruby18 ... (in /var/tmp/portage/dev-ruby/ffi-1.0.7/work/ruby18/ffi-ffi-0a058c0) rake-compiler must be configured first to enable cross-compilation rake-compiler must be configured first to enable cross-compilation mkdir -p build/i686-linux/ffi_c/1.8.7 cd build/i686-linux/ffi_c/1.8.7 /usr/bin/ruby18 -I. ../../../../ext/ffi_c/extconf.rb checking for ffi_call() in -lffi... yes checking for ffi_prep_closure()... yes checking for ffi_raw_call()... yes checking for ffi_prep_raw_closure()... yes checking for rb_thread_blocking_region()... no checking for ruby_thread_has_gvl_p()... no checking for ruby_native_thread_p()... no checking for rb_thread_call_with_gvl()... no creating extconf.h creating Makefile cd - cd build/i686-linux/ffi_c/1.8.7 gmake i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Types.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Type.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/StructByValue.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Platform.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/AbstractMemory.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/ArrayType.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/FunctionInfo.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Function.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/MappedType.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Call.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/DynamicLibrary.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Variadic.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/LastError.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/MethodHandle.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/StructByReference.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/MemoryPointer.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/StructLayout.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/DataConverter.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/ClosurePool.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Thread.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Pointer.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/ffi.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Buffer.c i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I../../../../ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/lib/libffi-3.0.10rc8/include -Wno-declaration-after-statement -c ../../../../ext/ffi_c/Struct.c i686-pc-linux-gnu-gcc -shared -o ffi_c.so Types.o Type.o StructByValue.o Platform.o AbstractMemory.o ArrayType.o FunctionInfo.o Function.o MappedType.o Call.o DynamicLibrary.o Variadic.o LastError.o MethodHandle.o StructByReference.o MemoryPointer.o StructLayout.o DataConverter.o ClosurePool.o Thread.o Pointer.o ffi.o Buffer.o Struct.o -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby18 -lffi -lffi -lrt -ldl -lcrypt -lm -lc Thread.o:Thread.c:function rbffi_blocking_thread: error: undefined reference to 'pthread_testcancel' Thread.o:Thread.c:function cleanup_blocking_thread: error: undefined reference to 'pthread_kill' Thread.o:Thread.c:function rbffi_thread_blocking_region: error: undefined reference to 'pthread_create' Thread.o:Thread.c:function rbffi_thread_blocking_region: error: undefined reference to 'pthread_join' collect2: ld returned 1 exit status gmake: *** [ffi_c.so] Error 1 rake aborted! Command failed with status (2): [gmake...] (See full trace by running task with --trace) * ERROR: dev-ruby/ffi-1.0.7 failed (compile phase): * compile failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2901: Called ruby-ng_src_compile * environment, line 2590: Called _ruby_each_implementation 'each_ruby_compile' * environment, line 464: Called _ruby_invoke_environment 'ruby18' 'each_ruby_compile' * environment, line 504: Called each_ruby_compile * environment, line 936: Called die * The specific snippet of code: * ${RUBY} -S rake compile || die "compile failed"; * * If you need support, post the output of 'emerge --info =dev-ruby/ffi-1.0.7', * the complete build log and the output of 'emerge -pqv =dev-ruby/ffi-1.0.7'. * The complete build log is located at '/var/log/portage/build/dev-ruby/ffi-1.0.7:20110601-055248.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ffi-1.0.7/temp/environment'. * S: '/var/tmp/portage/dev-ruby/ffi-1.0.7/work/ruby18/ffi-ffi-0a058c0'