Open joprice opened 4 years ago
Those linker messages look like they are from the macOS linker. What kind of system are you running the nix-build -A rpi.hello
command on?
It is osx. Is that unsupported? I had issues with the built in cross compilation as documented here https://nixos.wiki/wiki/Cross_Compiling, so I was trying this out.
Yeah, I have not tried to use nixcrpkgs on macOS, so there are probably some errors. That's why I mention twice in the README file that you need Linux. Since your error message mentions libiberty.a, I would guess you are having trouble building the GCC cross-compiler for the Raspberry Pi. If you want to dig into it and fix those errors, that would probably be useful. Or you could install a Linux virtual machine. We can leave this issue open as a reminder/confirmation that things do not work on macOS.
I'm trying to build for arm7, but started from the existing arm6 to validate that I can build it at all using:
nix-build -A rpi.hello
This fails with many linker errors starting with