!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

324 Members
96 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
25 Aug 2025
@marie:marie.cologneMarie So I tried to build gcc with our flags outside of nix, which resulted in
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find -lc: No such file or directory
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
When I apply the same hack as we do here (https://github.com/NixOS/nixpkgs/blob/dbfdaa1a1cef034a790d0287bdd885ee78ecb11c/pkgs/development/compilers/gcc/common/libgcc-buildstuff.nix#L6-L37), it results in the same error.
I was also to reproduce the same thing in a podman container running arch linux.
18:38:21
@k900:0upti.meK900Yeah not going to happen, you need cc-wrapper for this18:38:44
@marie:marie.cologneMarie you mean to compile gcc? 18:40:46
@marie:marie.cologneMarie So I tried to build gcc with our flags outside of nix, which resulted in
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find -lc: No such file or directory
/home/marie/arch-build/compiler/powerpc-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
When I apply the same hack as we do here (https://github.com/NixOS/nixpkgs/blob/dbfdaa1a1cef034a790d0287bdd885ee78ecb11c/pkgs/development/compilers/gcc/common/libgcc-buildstuff.nix#L6-L37), it results in the same error as in the nix build.
I was also to reproduce the same thing in a podman container running arch linux.
18:42:09
@marie:marie.cologneMarie I just used a nix-shell -p to try to build a cross binutils and gcc 18:43:47
@marie:marie.cologneMariethat hack seems to work for ppc64 but not for 3218:44:16
@marie:marie.cologneMariei think i found a way to make it work, no idea if it makes stuff explode, but it makes stuff compile, will have another look tomorrow 22:03:06

Show newer messages


Back to Room ListRoom Version: 6