-
Notifications
You must be signed in to change notification settings - Fork 455
GLIBC linking issues
#1531
-
On Windows I installed cross and docker and managed to compile my project just fine using this command:
cross build --target i686-unknown-linux-gnu --release
However when running this on a 32bit linux operating system I get the following error
./updatesql_email_err ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.29' not found (required by ./updatesql_email_err) ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.9' not found (required by ./updatesql_email_err) ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.16' not found (required by ./updatesql_email_err) ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./updatesql_email_err) ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.28' not found (required by ./updatesql_email_err) ./updatesql_email_err: /lib/libc.so.6: version `GLIBC_2.18' not found (required by ./updatesql_email_err)
I want to link all this inside the binary itself.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I want to link all this inside the binary itself.
So you probably want to use the i686-unknown-linux-musl target. But it seems that it is not supported by cross-rs. You could build a new image for it. But this target seems to have some problems in general. See here.
Another option is to set the glibc version, so that it is compatible with your target system. See here for more details.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment