Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GLIBC linking issues #1531

Unanswered
Raj2032 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /