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

Unable to find library -lgcc #4

Open
xnull opened this issue Jul 16, 2022 · 0 comments
Open

Unable to find library -lgcc #4

xnull opened this issue Jul 16, 2022 · 0 comments

Comments

@xnull
Copy link

xnull commented Jul 16, 2022

Hi, I've been trying to use your docker image to build my project, and I get an error:

debug/deps/libsolana_program-5157481aeabacb81.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-nodefaultlibs"
  = note: ld: error: unable to find library -lgcc
          clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `solana-program` due to previous error
[2022-07-16T18:15:49Z INFO  cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2022-07-16T18:15:49Z INFO  cargo_ndk::cli] 
[2022-07-16T18:15:49Z INFO  cargo_ndk::cli]     rustup target install x86_64-linux-android

I tried to install lgcc manually. Dockerfile:

FROM instrumentisto/cargo-ndk:2.8.0
RUN apt-get update && apt-get install -y gcc-multilib

And it didn't work.

I will create an example for you soon on Github with a build that fails

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

1 participant