Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Release binaries dynamically compiled for NixOS #133

Closed
namsral opened this issue Nov 30, 2015 · 5 comments
Closed

Release binaries dynamically compiled for NixOS #133

namsral opened this issue Nov 30, 2015 · 5 comments

Comments

@namsral
Copy link

namsral commented Nov 30, 2015

The acbuild binaries made available on the github release page fail to run:

$ curl -s -L -O https://github.com/appc/acbuild/releases/download/v0.2.1/acbuild.tar.gz
$ tar xzf acbuild.tar.gz 
$ ./acbuild 
-bash: ./acbuild: No such file or directory

The release binaries are dynamically compiled and will only run on Nix unless you symlink the interpreter.

$ file acbuild
acbuild: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped

I think it would be more useful to statically compile the binaries.

@namsral namsral changed the title Release binaries fail to run Release binaries dynamically compiled for NixOS Nov 30, 2015
@jonboulle
Copy link
Contributor

    /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000562407f91000)

gross!

It's unlikely we'll be able to fully statically compile since we need DNS (see e.g. rkt/rkt#1380 (comment)), but we should definitely be able to provide a more portable build.

@cgonyeo
Copy link
Member

cgonyeo commented Nov 30, 2015

My bad, forgot that nixos will result in binaries like that. I'll rebuild the release on a more normal distro.

On Nov 30, 2015, at 09:42, Jonathan Boulle [email protected] wrote:

/nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000562407f91000)

gross!

It's unlikely we'll be able to fully statically compile since we need DNS (see e.g. rkt/rkt#1380 (comment)), but we should definitely be able to provide a more portable build.


Reply to this email directly or view it on GitHub.

@cgonyeo
Copy link
Member

cgonyeo commented Nov 30, 2015

I just uploaded new binaries (still dynamically linked) that were compiled on an x86_64 machine running arch for the releases. Can you verify that the latest release runs on your system now?

I'll look into statically linking things that aren't related to DNS.

@namsral
Copy link
Author

namsral commented Nov 30, 2015

I can confirm the latest release now runs on my system.

@jonboulle
Copy link
Contributor

#86 would mitigate this :-)

On Mon, Nov 30, 2015 at 1:54 PM, Lars Wiegman [email protected]
wrote:

I can confirm the latest release now runs on my system.


Reply to this email directly or view it on GitHub
#133 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants