{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/7be3aa2a4e7962035e123edbc2b1c259?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7be3aa2a4e7962035e123edbc2b1c259","url":"https://api.github.com/users/ccocchi","login":"ccocchi","id":219981},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-02T21:04:55Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/carlhuda/bundler/issues/1513","body":"Trying to run `bundle install` get me this error\r\n\r\n```\r\n/Users/Coki/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)\r\n\r\n/Users/Coki/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb \r\nchecking for ffi.h in /usr/local/include... no\r\nchecking for rb_thread_blocking_region()... yes\r\nchecking for ruby_thread_has_gvl_p()... no\r\nchecking for ruby_native_thread_p()... yes\r\nchecking for rb_thread_call_with_gvl()... yes\r\ncreating extconf.h\r\ncreating Makefile\r\n\r\nmake\r\nConfiguring libffi\r\ncd /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/ffi-1.0.7/ext/ffi_c/libffi && make\r\nmake \"AR_FLAGS=\" \"CC_FOR_BUILD=\" \"CFLAGS=\" \"CXXFLAGS=\" \"CFLAGS_FOR_BUILD=\" \"CFLAGS_FOR_TARGET=\" \"INSTALL=/usr/bin/install -c\" \"INSTALL_DATA=/usr/bin/install -c -m 644\" \"INSTALL_PROGRAM=/usr/bin/install -c\" \"INSTALL_SCRIPT=/usr/bin/install -c\" \"JC1FLAGS=\" \"LDFLAGS=\" \"LIBCFLAGS=\" \"LIBCFLAGS_FOR_TARGET=\" \"MAKE=make\" \"MAKEINFO=/bin/sh /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/ffi-1.0.7/ext/ffi_c/libffi/missing --run makeinfo \" \"PICFLAG=\" \"PICFLAG_FOR_TARGET=\" \"RUNTESTFLAGS=\" \"SHELL=/bin/sh\" \"exec_prefix=/usr/local\" \"infodir=/usr/local/share/info\" \"libdir=/usr/local/lib\" \"prefix=/usr/local\" \"AR=ar\" \"AS=as\" \"CC=/usr/bin/gcc-4.2\" \"CXX=g++\" \"LD=ld\" \"NM=/usr/bin/nm\" \"RANLIB=ranlib\" \"DESTDIR=\" all-recursive\r\nMaking all in include\r\nmake[3]: Nothing to be done for `all'.\r\nMaking all in testsuite\r\nmake[3]: Nothing to be done for `all'.\r\nMaking all in man\r\nmake[3]: Nothing to be done for `all'.\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/debug.lo src/debug.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/debug.c  -fno-common -DPIC -o src/.libs/debug.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/prep_cif.lo src/prep_cif.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/prep_cif.c  -fno-common -DPIC -o src/.libs/prep_cif.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/types.lo src/types.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/types.c  -fno-common -DPIC -o src/.libs/types.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/raw_api.lo src/raw_api.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/raw_api.c  -fno-common -DPIC -o src/.libs/raw_api.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/java_raw_api.lo src/java_raw_api.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/java_raw_api.c  -fno-common -DPIC -o src/.libs/java_raw_api.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/closures.lo src/closures.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/closures.c  -fno-common -DPIC -o src/.libs/closures.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/x86/ffi.lo src/x86/ffi.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/x86/ffi.c  -fno-common -DPIC -o src/x86/.libs/ffi.o\r\n/bin/sh ./libtool   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -I. -I./include -Iinclude -I./src  -c -o src/x86/darwin.lo src/x86/darwin.S\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c src/x86/darwin.S  -fno-common -DPIC -o src/x86/.libs/darwin.o\r\n/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -Wall -g -fexceptions  -c -o src/x86/ffi64.lo src/x86/ffi64.c\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/x86/ffi64.c  -fno-common -DPIC -o src/x86/.libs/ffi64.o\r\n/bin/sh ./libtool   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -I. -I./include -Iinclude -I./src  -c -o src/x86/darwin64.lo src/x86/darwin64.S\r\nlibtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c src/x86/darwin64.S  -fno-common -DPIC -o src/x86/.libs/darwin64.o\r\n/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2 -Wall -g -fexceptions  -version-info `grep -v '^#' ./libtool-version`   -o libffi.la -rpath /usr/local/lib src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo      src/x86/ffi.lo src/x86/darwin.lo src/x86/ffi64.lo src/x86/darwin64.lo                     \r\nlibtool: link: /usr/bin/gcc-4.2 -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libffi.5.dylib  src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o src/x86/.libs/darwin.o src/x86/.libs/ffi64.o src/x86/.libs/darwin64.o      -install_name  /usr/local/lib/libffi.5.dylib -compatibility_version 6 -current_version 6.10 -Wl,-single_module\r\nlibtool: link: dsymutil .libs/libffi.5.dylib || :\r\nlibtool: link: (cd \".libs\" && rm -f \"libffi.dylib\" && ln -s \"libffi.5.dylib\" \"libffi.dylib\")\r\nlibtool: link: ( cd \".libs\" && rm -f \"libffi.la\" && ln -s \"../libffi.la\" \"libffi.la\" )\r\n/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2 -Wall -g -fexceptions    -o libffi_convenience.la  src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo      src/x86/ffi.lo src/x86/darwin.lo src/x86/ffi64.lo src/x86/darwin64.lo                     \r\nlibtool: link: ar cru .libs/libffi_convenience.a src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o src/x86/.libs/darwin.o src/x86/.libs/ffi64.o src/x86/.libs/darwin64.o \r\nlibtool: link: ranlib .libs/libffi_convenience.a\r\nranlib: file: .libs/libffi_convenience.a(ffi.o) has no symbols\r\nranlib: file: .libs/libffi_convenience.a(darwin.o) has no symbols\r\nlibtool: link: ( cd \".libs\" && rm -f \"libffi_convenience.la\" && ln -s \"../libffi_convenience.la\" \"libffi_convenience.la\" )\r\ncompiling AbstractMemory.c\r\ncompiling ArrayType.c\r\ncompiling Buffer.c\r\ncompiling Call.c\r\ncompiling ClosurePool.c\r\nClosurePool.c: In function ‘rbffi_ClosurePool_Free’:\r\nClosurePool.c:113: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nClosurePool.c: In function ‘rbffi_Closure_Free’:\r\nClosurePool.c:199: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nClosurePool.c: In function ‘getPageSize’:\r\nClosurePool.c:221: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\ncompiling DataConverter.c\r\ncompiling DynamicLibrary.c\r\ncompiling ffi.c\r\ncompiling Function.c\r\ncompiling FunctionInfo.c\r\nFunctionInfo.c: In function ‘fntype_initialize’:\r\nFunctionInfo.c:108: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\ncompiling LastError.c\r\ncompiling MappedType.c\r\ncompiling MemoryPointer.c\r\nMemoryPointer.c: In function ‘memptr_malloc’:\r\nMemoryPointer.c:95: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\ncompiling MethodHandle.c\r\nMethodHandle.c: In function ‘trampoline_offset’:\r\nMethodHandle.c:271: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nMethodHandle.c: In function ‘trampoline_size’:\r\nMethodHandle.c:310: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\ncompiling Platform.c\r\ncompiling Pointer.c\r\ncompiling Struct.c\r\nStruct.c: In function ‘struct_initialize’:\r\nStruct.c:100: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nStruct.c: In function ‘struct_set_pointer’:\r\nStruct.c:316: warning: comparison between signed and unsigned\r\nStruct.c: In function ‘inline_array_offset’:\r\nStruct.c:453: warning: comparison between signed and unsigned\r\nStruct.c:457: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nStruct.c: In function ‘inline_array_each’:\r\nStruct.c:543: warning: comparison between signed and unsigned\r\nStruct.c: In function ‘inline_array_to_a’:\r\nStruct.c:561: warning: comparison between signed and unsigned\r\ncompiling StructByReference.c\r\ncompiling StructByValue.c\r\ncompiling StructLayout.c\r\nStructLayout.c: In function ‘struct_layout_initialize’:\r\nStructLayout.c:351: warning: implicit conversion shortens 64-bit value into a 32-bit value\r\nStructLayout.c:377: error: lvalue required as left operand of assignment\r\nmake: *** [StructLayout.o] Error 1\r\n\r\n\r\nGem files will remain installed in /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/ffi-1.0.7 for inspection.\r\nResults logged to /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/ffi-1.0.7/ext/ffi_c/gem_make.out\r\n\tfrom /Users/Coki/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'\r\n\tfrom /Users/Coki/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `each'\r\n\tfrom /Users/Coki/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'\r\n\tfrom /Users/Coki/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/source.rb:90:in `block in install'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/source.rb:89:in `install'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/installer.rb:73:in `block in install_gem_from_spec'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:93:in `with_build_args'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/installer.rb:72:in `install_gem_from_spec'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/installer.rb:56:in `block in run'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/installer.rb:55:in `run'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/installer.rb:12:in `install'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in `install'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in `run'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in `dispatch'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in `start'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.1.rc/bin/bundle:13:in `<top (required)>'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `load'\r\n\tfrom /Users/Coki/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `<main>'\r\n```\r\n\r\nwith ruby-1.9.3-p0 and bundler 1.1rc","html_url":"https://github.com/carlhuda/bundler/issues/1513","number":1513,"title":"Bundler fail to build ffi with native extensions","id":2126518,"created_at":"2011-11-02T21:04:55Z"},"action":"opened"}