| 2 Jul 2026 |
emily | Myria: re the wrapped Swift, does that mean that Swift itself fails to link programs, not just Swift itself fails to link? | 13:59:46 |
emily | maybe we should just be introducing an ld64-fixed and using that where necessary :/ | 14:00:04 |
emily | will merge for now and we can figure out Swift later | 14:01:20 |
emily | I've hit the button, so should be able to get more Darwin work with an eval. Swift will still block stuff it sounds like though. I will hopefully have some more time to look at aarch64-darwin later tonight | 14:02:24 |
emily | maybe should add some stuff to ld64 passthru tests that would have caught this regression… but I guess if we're switching to LLD anyway it won't be relevant for long | 14:02:55 |
emily | do we know what's up with ffmpeg? | 14:04:07 |
emily | I can spend maybe 15 minutes looking at that now if not | 14:04:21 |
hexa |
ERROR: gmp not found\
| 14:07:27 |
hexa | Redacted or Malformed Event | 14:07:29 |
hexa | https://hydra.nixos.org/build/334103643/nixlog/2 | 14:07:41 |
emily | yeah, I mean… what's actually up :) | 14:07:53 |
emily | since it is getting gmp as a build input | 14:07:59 |
emily | I'm looking now | 14:08:01 |
hexa | hah, no :D | 14:08:05 |
hexa | I can quickly try to repro outside build infra | 14:08:35 |
hexa | repros on community builder | 14:09:23 |
emily | require gmp gmp.h mpz_export -lgmp
check_lib gmp gmp.h mpz_export -lgmp
check_func_headers gmp.h mpz_export -lgmp
test_ld cc -lgmp
test_cc
BEGIN /nix/var/nix/b/2jhhaiigz9c8m64wblda3zpr95/ffconf.tcUHOpjW/test.c
1 #include <gmp.h>
2 #include <stdint.h>
3 long check_mpz_export(void) { return (long) mpz_export; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_mpz_export) & 0xFFFF;
6 return ret; }
END /nix/var/nix/b/2jhhaiigz9c8m64wblda3zpr95/ffconf.tcUHOpjW/test.c
clang -D_ISOC11_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -std=c17 -Werror=partial-availability -fno-common -fomit-frame-pointer -fPIC -pthread -I/nix/store/mvi0pf50rpq1qcwv8alh9hsrsa86xwxj-zlib-1.3.2-dev/include -c -o /nix/var/nix/b/2jhhaiigz9c8m64wblda3zpr95/ffconf.tcUHOpjW/test.o /nix/var/nix/b/2jhhaiigz9c8m64wblda3zpr95/ffconf.tcUHOpjW/test.c
/nix/var/nix/b/2jhhaiigz9c8m64wblda3zpr95/ffconf.tcUHOpjW/test.c:1:10: fatal error: 'gmp.h' file not found
1 | #include <gmp.h>
| ^~~~~~~
1 error generated.
ERROR: gmp not found
| 14:09:40 |
emily | that sure does look like gmp.h isn't present | 14:09:50 |
emily | and yet | 14:10:00 |
emily | /nix/store/z7qzk6341cl0rdxa3p040fd35gxwa77w-gmp-with-cxx-6.3.0-dev is in build inputs, and /nix/store/z7qzk6341cl0rdxa3p040fd35gxwa77w-gmp-with-cxx-6.3.0-dev/include/gmp.h exists | 14:10:08 |
emily | so what the hell | 14:10:14 |
hexa | yeah | 14:10:20 |
emily | uhhh | 14:18:00 |
emily | it seems to be using an unwrapped clang | 14:18:04 |
emily | oh. | 14:18:07 |
emily | this is going to be Randy's fix isn't it | 14:18:10 |
emily | https://github.com/NixOS/nixpkgs/pull/531960 | 14:18:29 |
emily | tbh this seems like it'll break compiling FFmpeg with LLVM on Linux too | 14:18:49 |
emily | Sergei Zimmerman (xokdvium): ^ | 14:19:04 |
emily | https://github.com/NixOS/nixpkgs/pull/518519/changes/817b0e1338faca6deebeb9fca8beeef8409dbeea clobbers wrapped clang in FFmpeg build env | 14:19:25 |