Open benjaminmordaunt opened 1 year ago
Reproducer
pkgs.pkgsCross.aarch64-embedded.hello.override { stdenv = pkgs.pkgsCross.aarch64-embedded.llvmPackages_16.stdenv; }
with --keep-failed
config.log
shows
clang-16: error: unable to execute command: Executable "ld.lld" doesn't exist!
clang-16: error: ld.lld command failed with exit code 1 (use -v to see invocation)
{ pkgs ? import ./. { }, }:
let
lStdenv = pkgs.pkgsCross.aarch64-embedded.llvmPackages_16.stdenv;
llvmStdenvWithBintools = pkgs.overrideCC lStdenv (lStdenv.cc.override {
bintools = pkgs.pkgsCross.aarch64-embedded.buildPackages.llvmPackages_16.bintools;
});
in
pkgs.pkgsCross.aarch64-embedded.hello.override { stdenv = llvmStdenvWithBintools; }
Using llvm bintools gets us ld.lld
.
the build still fails with a unrelated error lib/getprogname.c:287:4: error: "getprogname module not ported to this OS"
Steps To Reproduce
Steps to reproduce the behaviour:
default.nix
that tries to use cross LLVM 16 for aarch64:Build log
Additional context
Seems that it cannot find ld.lld?
Notify maintainers
@dtzWill @Ericson2314 @lovek323
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.