Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static build #42

Open
ealione opened this issue Dec 6, 2024 · 3 comments
Open

Static build #42

ealione opened this issue Dec 6, 2024 · 3 comments

Comments

@ealione
Copy link

ealione commented Dec 6, 2024

I've been using Operon just fine on the machine that I compiled it using nix build, but when I decided to copy the entire results folder that contains

results:
|-bin
|-include
|-lib
|_share

to a different machine, I couldn't run it because a whole set of different libraries were missing. How can I statically compile Operon so I can use it everywhere, without having to re-compile every time I want to move to a different system?

@ealione
Copy link
Author

ealione commented Dec 6, 2024

Running ldd will report many missing dependencies but also version mismatches like:

linux-vdso.so.1 (0x00007ffd7a0fe000)
libscn.so.4 => not found
libxxhash.so.0 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f81d349c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f81d334d000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f81d3332000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f81d313e000)
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f81d389c000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f81d311b000)

since I'm assuming Operon was originally built on a computer with newer versions of the standard libraries.

@foolnotion
Copy link
Member

A fully static build is currently not supported. We will need to look into this.

@ealione
Copy link
Author

ealione commented Dec 10, 2024

I see, In that case I'll try to figure it out if I can. It would be nice to not have to build the cli apps multiple times.

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

No branches or pull requests

2 participants