0xKyran / nixos-mobile

MIT License
3 stars 0 forks source link

Dying to Try #1

Open Myrkskog opened 1 week ago

Myrkskog commented 1 week ago

Helpless at times; I admit this is above my head. Sincerely, I hope to receive a wee-bit in the way of help.

I cloned your repo and followed build instructions. Where I hit a wall is this:

t/t5531-deep-submodule-push.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/a7f7xfp9wyghf44yv6l6fv9dfw492hd3-bash-5.2-p15/bin/sh" common.mk:24: forbuild.mk: No such file or directory make: *** No rule to make target 'forbuild.mk'. Stop.

I will attach the log

to build, I added to my configuration.nix

boot.binfmt.emulatedSystems = [ "aarch64-linux" ];

I am attempting to build in nixos and added this bit to my configuration.nix

    programs.nix-ld.enable = true;
    programs.nix-ld.libraries = with pkgs; [
      stdenv.cc.cc.lib
      coreboot-toolchain.aarch64
      libgcc
    ];

Any help is much appreciated My apologies in advance for my inexperience

config.log

0xKyran commented 1 week ago

There were some issues with Cross compiling, and I didnt get it to work. I'd recommend compiling from ARM hardware, the log seems to indicate it didnt find a compatible c compiler

Let me know if you need help with anything ^^

Myrkskog commented 1 week ago

Thank you for the quick reply and advice. I'll see if I can borrow an ARM system from a friend or do as you suggest in the readme. Gotta put the second one off for a bit.

I appreciate the help and the availability of this repo and your brain.