!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1180 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org194 Servers

Load older messages


SenderMessageTime
15 Jan 2026
@emilazy:matrix.orgemilyouch, okay03:58:48
@glepage:matrix.orgGaétan Lepage

What should we do about compiler-rt-libc-20.1.8-x86_64-darwin who has been failing since the staging-next merge in late December?

Should we mark it as broken?

12:45:19
@reckenrode:matrix.orgRandy EckenrodeI thought there was a PR to fix it.14:30:28
@reckenrode:matrix.orgRandy EckenrodeMaybe it was just discussed ….14:31:39
@emilazy:matrix.orgemily @ihar.hrachyshka:matrix.org was looking at it 16:02:47
17 Jan 2026
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaehm... previous attempt to build with probable fix failed on unrelated package and I forgot about it. https://github.com/NixOS/nixpkgs/pull/480889 will run the build through the night again and report back on the PR how it went.02:59:43
@reckenrode:matrix.orgRandy Eckenrode This is annoying. Swift uses getMainExecutable from LLVM to get the location of the compiler binary, which resolves symlinks. That means swiftc symlinked into the swift package will look for the stdlib in the swiftc package instead where it doesn’t exist. 😓 03:58:27
@folliehiyuki:envs.net@folliehiyuki:envs.net left the room.09:11:47
@robbie-w:matrix.orgrobbie-w joined the room.15:22:29
@reckenrode:matrix.orgRandy Eckenrodehttps://forums.swift.org/t/zlib-support-in-the-swift-ecosystem/83792/1115:38:22
@alexfmpe:matrix.orgalexfmpe

can one use gcc instead of clang on aarch64-darwin?
tried nix-build -E "with import ./. {}; pkgs.hello.override { stdenv = pkgs.gccStdenv; }" which fails with

configure:5654: checking whether the C compiler works
configure:5676: gcc    conftest.c  >&5
ld: library not found for -liconv
collect2: error: ld returned 1 exit status
...
configure:5728: error: C compiler cannot create executables
See 'config.log' for more details
16:35:46
@k900:0upti.meK900Not well16:36:00
@reckenrode:matrix.orgRandy EckenrodeDoes the GCC stdenv not include the SDK? It should, and libiconv should be propagated.16:38:25
@reckenrode:matrix.orgRandy EckenrodeBut using GCC is a bad idea unless you have no choice. It doesn’t support availability annotations. It’s not set up to use libc++, which everything C++ on Darwin is linked against. (GCC can use it, but we don’t support that AFAIK.)16:40:05
@alexfmpe:matrix.orgalexfmpehmm I mainly wanted it to test some stuff that is currently broken ish with clang and didn't want to investigate/fix right now16:41:39
@alexfmpe:matrix.orgalexfmpeit's more of a "would unlock progress on current task immediately" rather than a "I'll actually rely on this for anything"16:42:31
@alexfmpe:matrix.orgalexfmpeat any rate, the libiconv error seems odd16:43:06
@alexfmpe:matrix.orgalexfmpeis the expression even right? should I be overriding stdenv for hello only?16:44:12
@reckenrode:matrix.orgRandy EckenrodeThe expression seems right.16:47:04
@reckenrode:matrix.orgRandy Eckenrode Can you nix develop (or whatever the equivalent is for the old CLI) the failing drv to check that the path to libiconv is there and that ld is wrapped? 16:48:00
@alexfmpe:matrix.orgalexfmpe
$ nix-shell -E "with import ./. {}; pkgs.hello.override { stdenv = pkgs.gccStdenv; }"
Using versionCheckHook

# echo $NIX_LDFLAGS
-liconv

# which ld
/nix/store/cjkf5fm587xv34pz9zfs3q2qpvij61fz-gcc-wrapper-15.2.0/bin/ld
16:54:10
@alexfmpe:matrix.orgalexfmpe fwiw, with gnuStdenv I get /usr/bin/ld 16:56:43
@alexfmpe:matrix.orgalexfmpe *
$ nix-shell -E "with import ./. {}; pkgs.hello.override { stdenv = pkgs.gccStdenv; }"
Using versionCheckHook

# echo $NIX_LDFLAGS
-liconv

# which ld
/nix/store/cjkf5fm587xv34pz9zfs3q2qpvij61fz-gcc-wrapper-15.2.0/bin/ld

# ld
ld: library not found for -liconv
16:57:25
@alexfmpe:matrix.orgalexfmpe *
$ nix-shell -E "with import ./. {}; pkgs.hello.override { stdenv = pkgs.gccStdenv; }"
Using versionCheckHook

# env | grep iconv
NIX_LDFLAGS=-liconv

# which ld
/nix/store/cjkf5fm587xv34pz9zfs3q2qpvij61fz-gcc-wrapper-15.2.0/bin/ld

# ld
ld: library not found for -liconv
16:59:57
@alexfmpe:matrix.orgalexfmpe * fwiw, with gnuStdenv I get /usr/bin/ld (or rather, it's unchanged) 17:01:19
@reckenrode:matrix.orgRandy EckenrodeThat’s definitely not right.17:13:04
@alexfmpe:matrix.orgalexfmpeno clue how to debug/fix this, but up for legwork if that helps17:22:37
@alexfmpe:matrix.orgalexfmpeI'm waiting for builds anyway on the next best thing to work on17:23:38
@reckenrode:matrix.orgRandy Eckenrode SDKROOT is missing, which means there is no SDK. Hmm. 17:45:22
@reckenrode:matrix.orgRandy Eckenrode

gccStdenv =
  if stdenv.cc.isGNU then
    stdenv
  else
    stdenv.override {
      cc = buildPackages.gcc;
      allowedRequisites = null;
      # Remove libcxx/libcxxabi, and add clang for AS if on darwin (it uses
      # clang's internal assembler).
      extraBuildInputs = lib.optional stdenv.hostPlatform.isDarwin clang.cc;
    };
17:46:16

Show newer messages


Back to Room ListRoom Version: 6