-
Notifications
You must be signed in to change notification settings - Fork 24
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
Incorrect library path for MacOS tools? #141
Comments
(I've copied the files over myself and have working cargo, but this could possibly block others) |
Hi @tschundler! Thanks for reporting this issue, could you try the installation with the PR branch to verify that it solves the issue?
|
oops. I probably should have been more specific about running cargo. I create a new esp32s3 project, eg
then run
and that's what isn't statically linked, when it uses cargo in
(on an M1 mac, it's fine. ...digging more, /usr/local/opt/lib seems to be a homebrew thing, so I tried I'm not sure who owns building that special nightly rust toolchain - maybe this bug should be in a different place? |
Sorry, is this the output of testing the |
After updating to
|
The problem isn't with espup itself, but with the rust-nightly that espup installs. That cargo, that it puts in ~/.rustup/toolchains/esp/bin/cargo is what doesn't have openssl static linked. The location it expects is where http://brew.sh puts it, not a standard MacOS location. I have no problem otherwise with Is there somewhere better for the bug to be? |
Probably, could you open up an issue in https://github.com/esp-rs/rust-build with your conclusions? I will still merge #153 as I think its an improvement |
Ack, found existing bug esp-rs/rust-build#157 For @paazmaya , using homebrew to install openssl is a work-around that is working for me. (All the LLVM stuff for xtensa is resole, right? So we shouldn't need a special toolchain much longer?) |
Sorry I completely forgot about that issue, where I also participated
Yes, the first 10 patches have now been accepted, hopefully, we will have Xtensa support in LLVM and Rust in the future! |
Bug description
espup on MacOS is looking for libraries in an incorrect place for my system.
To Reproduce
Given install:
I get an error running cargo:
my libssl.3.dylib & libcrypto.3.dylib live in
/opt/local/lib/
Expected behavior
cargo works
Environment
Additional context
Maybe they could be statically linked? Or shipped with the binary and put in ~/.rustup/toolchains/esp/lib/ ?
The text was updated successfully, but these errors were encountered: