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

Error Encountered with x86_64-unknown-linux-gnu Cross Compile Tool: Cannot Find -lc++ #7

Open
0xtyls opened this issue Oct 25, 2023 · 1 comment

Comments

@0xtyls
Copy link

0xtyls commented Oct 25, 2023

Hello,

I am utilizing your x86_64-unknown-linux-gnu cross-compile tool for Rust projects, and I've encountered an error during the process. Here's the error message I received:

note: /opt/homebrew/Cellar/x86_64-unknown-linux-gnu/0.1.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/11.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld.bfd: cannot find -lc++
          collect2: error: ld returned 1 exit status

Upon further investigation, I searched the directory /opt/homebrew/Cellar/x86_64-unknown-linux-gnu, but could not find any files matching libc++*.

I am interested in understanding the creation process of these cross-compile tools, which might provide insight into solving the issue. Would you be able to share some details on how these tools are created? Additionally, any advice on resolving the aforementioned error would be highly appreciated.

Thank you for your time and assistance.

@benesch
Copy link
Member

benesch commented Oct 25, 2023

Would you be able to share some details on how these tools are created?

The script used to build them is public in this repository! https://github.com/MaterializeInc/homebrew-crosstools/blob/main/lib/toolchain.rb

Additionally, any advice on resolving the aforementioned error would be highly appreciated.

I'm not sure anyone's ever tried to use these binutils to build C++. There may be an additional crosstool flag we need to enable to build libc++.

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