Closed mspanc closed 8 years ago
An attempt to compile certain libraries that rely on packages fetched by apt end up with /usr/bin/ld: final link failed: Bad value error.
/usr/bin/ld: final link failed: Bad value
It can be easily demonstrated on ffi gem if libffi is fetched by apt.
Steps to reproduce:
ffi
sqlite3
pg
.buildpacks
https://github.com/ddollar/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-ruby
Aptfile
libgirepository-1.0-1
libgirepository1.0-dev
Log:
https://gist.github.com/mspanc/8907747d7a85d3b6aa72
Test app:
https://www.sendspace.com/file/byenws
An attempt to compile certain libraries that rely on packages fetched by apt end up with
/usr/bin/ld: final link failed: Bad value
error.It can be easily demonstrated on ffi gem if libffi is fetched by apt.
Steps to reproduce:
ffi
gem to Gemfilesqlite3
withpg
to maintain compatibility with heroku.buildpacks
with two buildpacks:https://github.com/ddollar/heroku-buildpack-apt
,https://github.com/heroku/heroku-buildpack-ruby
Aptfile
, e.g.libgirepository-1.0-1
andlibgirepository1.0-dev
Log:
https://gist.github.com/mspanc/8907747d7a85d3b6aa72
Test app:
https://www.sendspace.com/file/byenws