-
Notifications
You must be signed in to change notification settings - Fork 14
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
Adding native libraries as dependencies #250
Comments
Hey Kirans, thx for creating this issue. You're doing it right, the dependencies are defined correctly. I tried to setup a very basic rust project using cargo 1.60.0 & serde on linux, though i couldn't reproduce the error. Guess my project was too basic to reproduce. This is the build:
build:
cmd: |
cd hello_cargo && cargo run
rebuild: always
dependencies:
- cargo And it worked out well, here is the output.
You can compare environments directly by adding Can you give me some more information to reproduce your issue? |
Hi I'm on a Macbook M1. I'm trying to reproduce this issue step by step with a small project and documenting below bob.yaml
Cargo.toml
src/main.rs
With the above basic setup, the first error I get is
I add clang_13 and rebuild, which gives me
I add libiconv and rebuild. It gives me the same error as above. I'm wondering if its because I'm on M1? This is my final bob.yaml
|
Thx, we could reproduce the issue on another M1. It doesn't appear on Linux. Looks like there is indeed a difference between using |
@kirans-bp the 0.6.3 release should fix your issue. We are now making sure the environment is similar to the one genrated by nix-shell, introduced in #251 . Can you double check if the fix works for you? |
Thanks for the quick fix @Equanox. It works now |
I have a rust project with
serde
as a dependency. When I tried to use bob to build it, I got the following errorI tried to add
libiconv
to the dependencies in bob.yaml but the error remainedHowever, I could compile it successfully with
nix-shell -p cargo clang_13 libiconv
.How do I add these native libraries so that bob can find them?
The text was updated successfully, but these errors were encountered: