Cargo puts the library in target/x86_64-unknown-linux-gnu/release/ instead of target/release/ where Perry expects it #560
-
|
My AI is facing a problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks for reporting this — it is a real bug in Perry, not a misuse on your end. Filed and fixed as #564 (commit Root cause: when something pins a default target on your machine — Two ways forward:
Hope this unblocks you — please reopen if anything still bites after upgrading. |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this — it is a real bug in Perry, not a misuse on your end. Filed and fixed as #564 (commit
acaa8ea9onmain).Root cause: when something pins a default target on your machine —
[build] target = "..."in.cargo/config.toml,CARGO_BUILD_TARGETenv var, or arust-toolchain.tomlwithtargets = [...]— cargo writes artifacts totarget/<host-triple>/release/instead oftarget/release/. Three sites in Perry only probedtarget/release/for native builds, so the link/validate/companion-copy step couldn't find the library. The fix probes both layouts (baretarget/release/andtarget/<host-triple>/release/derived fromrustc -vV'shost:line).Two ways forward:
Wait for the n…