{"action":"created","issue":{"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/690","labels_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/690/comments","events_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/690/events","html_url":"https://github.com/sstephenson/ruby-build/issues/690","id":52873178,"number":690,"title":"2.2.0 Build fails on Ubuntu 14.04.1 (x86_64)","user":{"login":"endgame","id":231483,"avatar_url":"https://avatars.githubusercontent.com/u/231483?v=3","gravatar_id":"","url":"https://api.github.com/users/endgame","html_url":"https://github.com/endgame","followers_url":"https://api.github.com/users/endgame/followers","following_url":"https://api.github.com/users/endgame/following{/other_user}","gists_url":"https://api.github.com/users/endgame/gists{/gist_id}","starred_url":"https://api.github.com/users/endgame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endgame/subscriptions","organizations_url":"https://api.github.com/users/endgame/orgs","repos_url":"https://api.github.com/users/endgame/repos","events_url":"https://api.github.com/users/endgame/events{/privacy}","received_events_url":"https://api.github.com/users/endgame/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-12-25T21:57:20Z","updated_at":"2015-01-05T15:53:07Z","closed_at":null,"body":"ruby-build version: \r\n\r\n20141225-1-g45b75ed\r\n\r\nThe acutal error is:\r\n\r\n```\r\nlinking shared-object fiddle.so\r\n/usr/bin/ld: ./libffi-3.2.1/.libs/libffi.a(raw_api.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC\r\n```\r\n\r\nI've included the full build log below, please let me know if you need me to test anything or I can give you better information:\r\n\r\n```\r\n/tmp/ruby-build.20141225215042.17047 /vagrant\r\nDownloading ruby-2.2.0.tar.gz...\r\nHTTP/1.1 200 OK\r\nContent-Type: binary/octet-stream\r\nContent-Length: 16494584\r\nConnection: keep-alive\r\nDate: Thu, 25 Dec 2014 11:08:01 GMT\r\nLast-Modified: Thu, 25 Dec 2014 10:02:26 GMT\r\nETag: \"cd03b28fd0b555970f5c4fd481700852\"\r\nAccept-Ranges: bytes\r\nServer: AmazonS3\r\nAge: 38568\r\nX-Cache: Hit from cloudfront\r\nVia: 1.1 f4bd0fa1d2fc98fb3b1433c4363b95c5.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: V02lmRmjOiRevHt69a4TLVEnXUV2CrbCthwribvZvRVeZGsN_NAf_Q==\r\n\r\n-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc\r\n/tmp/ruby-build.201412252config.guess already exists\r\nconfig.sub already exists\r\nchecking build system type... x86_64-unknown-linux-gnu\r\n(snip)\r\ncompiling conversions.c\r\nmake[3]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nmake 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-O3 -fno-fast-math -ggdb3  -Wall -fexceptions' 'CXXFLAGS=-O3 -fno-fast-math -ggdb3 ' '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=-L. -L/home/vagrant/.rbenv/versions/2.2.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic  -L../../.. ' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=make' 'MAKEINFO=/bin/bash /tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/bash' 'exec_prefix=/usr/local' 'infodir=/usr/local/share/info' 'libdir=/home/vagrant/.rbenv/versions/2.2.0/lib' 'mandir=/usr/local/share/man' 'prefix=/usr/local' 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'LD=ld -m elf_x86_64' 'NM=/usr/bin/nm -B' 'RANLIB=ranlib' 'DESTDIR=' all-recursive\r\nmake[4]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nMaking all in include\r\nmake[5]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/include'\r\nmake[5]: Nothing to be done for `all'.\r\nmake[5]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/include'\r\nMaking all in testsuite\r\nmake[5]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/testsuite'\r\nmake[5]: Nothing to be done for `all'.\r\nmake[5]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/testsuite'\r\nMaking all in man\r\nmake[5]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/man'\r\nmake[5]: Nothing to be done for `all'.\r\nmake[5]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1/man'\r\nmake[5]: Entering directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\n  CC       src/prep_cif.lo\r\n  CC       src/types.lo\r\n  CC       src/raw_api.lo\r\n  CC       src/java_raw_api.lo\r\n  CC       src/closures.lo\r\nsrc/closures.c: In function 'dlmmap_locked':\r\nsrc/closures.c:488:17: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]\r\n       ftruncate (execfd, offset);\r\n                 ^\r\nsrc/closures.c:500:17: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]\r\n       ftruncate (execfd, offset);\r\n                 ^\r\n  CC       src/x86/ffi64.lo\r\n  CPPAS    src/x86/unix64.lo\r\n  CC       src/x86/ffi.lo\r\n  CPPAS    src/x86/sysv.lo\r\n  CCLD     libffi_convenience.la\r\n  CCLD     libffi.la\r\nmake[5]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nmake[4]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nmake[3]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nlinking shared-object fiddle.so\r\n\r\nBUILD FAILED (Ubuntu 14.04 using ruby-build 20141225-1-g45b75ed)\r\n\r\nInspect or clean up the working tree at /tmp/ruby-build.20141225215042.17047\r\nResults logged to /tmp/ruby-build.20141225215042.17047.log\r\n\r\nLast 10 log lines:\r\nmake[3]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle/libffi-3.2.1'\r\nlinking shared-object fiddle.so\r\n/usr/bin/ld: ./libffi-3.2.1/.libs/libffi.a(raw_api.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC\r\n./libffi-3.2.1/.libs/libffi.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [../../.ext/x86_64-linux/fiddle.so] Error 1\r\nmake[2]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0/ext/fiddle'\r\nmake[1]: *** [ext/fiddle/all] Error 2\r\nmake[1]: Leaving directory `/tmp/ruby-build.20141225215042.17047/ruby-2.2.0'\r\nmake: *** [build-ext] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/comments/68727117","html_url":"https://github.com/sstephenson/ruby-build/issues/690#issuecomment-68727117","issue_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/690","id":68727117,"user":{"login":"zachad","id":48634,"avatar_url":"https://avatars.githubusercontent.com/u/48634?v=3","gravatar_id":"","url":"https://api.github.com/users/zachad","html_url":"https://github.com/zachad","followers_url":"https://api.github.com/users/zachad/followers","following_url":"https://api.github.com/users/zachad/following{/other_user}","gists_url":"https://api.github.com/users/zachad/gists{/gist_id}","starred_url":"https://api.github.com/users/zachad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachad/subscriptions","organizations_url":"https://api.github.com/users/zachad/orgs","repos_url":"https://api.github.com/users/zachad/repos","events_url":"https://api.github.com/users/zachad/events{/privacy}","received_events_url":"https://api.github.com/users/zachad/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T15:53:07Z","updated_at":"2015-01-05T15:53:07Z","body":"Same goes for CentOS 6.x where you'll need to `yum install libffi-devel`"}}