I'm trying to build sad into a RPM package. I am not using the distros rust as some distros rust package is too old. That means I have to download and install rust/cargo. Here is the portion of the code:
The build on x86_64 succeeds but because the config.toml contains cross-compilation for aarch64 the build fails to compile on actual aarch64 with the error below:
Compiling unicode-ident v1.0.12
Compiling rustix v0.38.32
Compiling autocfg v1.1.0
error: linker `aarch64-linux-gnu-gcc` not found
|
= note: No such file or directory (os error 2)
I see that there is a line in BUILD/sad-0.4.28/.cargo/config.toml that needs to be deleted if building on aarch64. The same issue is being referenced here for NixOS:
https://github.com/NixOS/nixpkgs/issues/145726
I'm trying to build sad into a RPM package. I am not using the distros rust as some distros rust package is too old. That means I have to download and install rust/cargo. Here is the portion of the code:
The build on
x86_64
succeeds but because the config.toml contains cross-compilation foraarch64
the build fails to compile on actual aarch64 with the error below:I see that there is a line in BUILD/sad-0.4.28/.cargo/config.toml that needs to be deleted if building on
aarch64
. The same issue is being referenced here for NixOS: https://github.com/NixOS/nixpkgs/issues/145726I've built a RPM for a couple of distros in COPR here: https://copr.fedorainfracloud.org/coprs/faramirza/sad/ I'll check if they work and will revert back here.