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
ARMv7 Build Failure: undefined reference to __atomic_fetch_add_8 #3113
Comments
I've seen this before too and I think adding https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/package-management/nix/default.nix#L59-L60 But it would be nice to figure out the right way to fix this so that bootstrapping Nix from source works correctly. The question is when does Boost need libatomic to work? I've only seen the error on arm32 but probably boost knows when this is necessary. |
Wow, thank you very much for the quick help. Best, |
Hi, I have checked out the Nix git repository and pulled the change from your branch. According to the Nix manual I need to run
I am not too familiar with the GNU autotools -- am I missing some obvious dependency here or is the documentation incomplete? I have found some references to similar issues via Google, but nothing that really helped me figure out the missing piece. This failure is independent from your change it seems. Shall I create a separate issue for this? Thanks for your help, |
@mtesseract I just encountered the same problem. In case it's still giving you grief, I was able to fix it by installing autoconf-archive. Autoconf-archive is probably available through whatever package manager you use. A bit more detail: Autoreconf is bonkers-terrible when it comes to error messages. You really can't trust anything it tells you. (This is because it is supposed to be run very rarely, so every autotools-based project only needs one expert, and most contributors never have to run autoreconf.) In this case, the error is reported at the first occurrence of
Furthermore, |
Thank you very muvh @Calvin-L, also for the background information. |
Fixes NixOS#3113 (cherry picked from commit 74b4737)
I am following the instructions documented here:
https://nixos.org/nix/manual/#ch-installing-source
Building of nix-2.3 on armv7 (Raspbian) fails:
The
configure
script was run asSystem
This is a Raspbian distribution, specifically
The following packages have been installed:
Furthermore libeditline has been installed manually from
https://github.com/troglobit/editline/releases/download/1.16.1/editline-1.16.1.tar.xz
The text was updated successfully, but these errors were encountered: