Open vortexilation opened 1 month ago
Possible fixes, after applied the following in rust-values.mk (line 14) :
CARGO_HOME:=$(STAGING_DIR)/host/cargo
Compilation going again.
I wonder when that variable went away...
target-x86_64_musl_custom
OpenWrt does not have such "custom" target, so I think this is the main cause.
I wonder when that variable went away...
FYI 853c9c9e8625c54a2c3214b2ef770ffc76bd3495
That should still work, the cargo home should be empty when you start...
@1715173329 It's just "CONFIG_BUILD_SUFFIX" in OpenWrt config
With "CARGO_HOME:=$(DL_DIR)/cargo" above error happened.
This doesn't happened anymore after I delete dl directory and start over, could it be because it was "$(DL_DIR)/cargo" previously used for "glibc" and now used for "musl"?
could it be because it was "$(DL_DIR)/cargo" previously used for "glibc" and now used for "musl"?
That would make sense. The log above showed rust failed to find glibc toolchain.
So the temporary solution would be deleting $(DL_DIR)/cargo (or dl/cargo in OpenWrt root dir) if you switch from glibc to musl or vice versa.
Looks like so
Maintainer: @lu-zero , @1715173329 Environment: x86_64, musl libc
Description:
Getting the following when trying to compile rust for x86_64 (musl libc)
host : debian sid x86_64