Skip to content
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

compile from source fails on aarch64 #319

Open
daniejstriata opened this issue May 13, 2024 · 2 comments
Open

compile from source fails on aarch64 #319

daniejstriata opened this issue May 13, 2024 · 2 comments

Comments

@daniejstriata
Copy link

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:

# Install Rust using curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
export PATH="$PATH:$HOME/.cargo/bin"
$HOME/.cargo/bin/cargo build --release --all-features

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:
NixOS/nixpkgs#145726

I'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.

@daniejstriata
Copy link
Author

So far the COPR builds I've tested works fine. Will need to install some VM's for Magia and OpenMandriva to test them on.

@daniejstriata
Copy link
Author

daniejstriata commented May 27, 2024

sad works as expected on Magia and OpenMandriva.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant