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

Failure building rpi.hello on macOS #5

Open
joprice opened this issue Oct 5, 2020 · 3 comments
Open

Failure building rpi.hello on macOS #5

joprice opened this issue Oct 5, 2020 · 3 comments

Comments

@joprice
Copy link

joprice commented Oct 5, 2020

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

ld: warning: ignoring file ../libiberty/libiberty.a, file was built for archive which is not the architecture being linked (x86_64): ../libiberty/libiberty.a
ld: warning: ignoring file ./../intl/libintl.a, file was built for archive which is not the architecture being linked (x86_64): ./../intl/libintl.a
Undefined symbols for architecture x86_64:
  "__hex_value", referenced from:
      _integer_constant in expr.o
      _hex_float in read.o
  "__obstack_begin", referenced from:
      _hash_new_sized in hash.o
      _read_begin in read.o
      _subseg_set_rest in subsegs.o
      _subsegs_begin in subsegs.o
@DavidEGrayson
Copy link
Member

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?

@joprice
Copy link
Author

joprice commented Oct 6, 2020

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.

@DavidEGrayson DavidEGrayson changed the title Failure building rpi.hello Failure building rpi.hello on macOS Oct 6, 2020
@DavidEGrayson
Copy link
Member

DavidEGrayson commented Oct 7, 2020

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.

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

2 participants