Skip to content

libredirect failing to build with clang 16 #259156

@viraptor

Description

@viraptor

Steps To Reproduce

Steps to reproduce the behavior:
Build libredirect from reckenrode/nixpkgs/9ed7bfe46bf193e55a6fd8ae89dfe54b4dca2c18 (clang 16

Build log

...
nix/store/ymn78m6a3sgc8sja9j221s8ifaxzmymg-clang-16.0.6-lib/lib/clang/16/include/stdarg.h:36:50: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                                                 ^~~~
2 warnings generated.
ld: warning: object file /private/tmp/nix-build-libredirect-0.drv-0/libredirect-17ba7a/libredirect-arm64e.o was built with an incompatible arm64e ABI compiler
@nix { "action": "setPhase", "phase": "installPhase" }
installing
install: creating directory '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0'
install: creating directory '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib'
'libredirect.dylib' -> '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib'
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
checking for references to /private/tmp/nix-build-libredirect-0.drv-0/ in /nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0...
patching script interpreter paths in /nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0
checking for references to /private/tmp/nix-build-libredirect-0.drv-0/ in /nix/store/x57vg821mgz9p6nmbppgyigqr1vqm4da-libredirect-0-hook...
patching script interpreter paths in /nix/store/x57vg821mgz9p6nmbppgyigqr1vqm4da-libredirect-0-hook
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
dyld[56565]: terminating because inserted dylib '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' could not be loaded: tried: '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64,arm64e', need '')), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (no such file), '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64,arm64e', need ''))
dyld[56565]: tried: '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64,arm64e', need '')), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (no such file), '/nix/store/lvshf2cdsip1bpcc9m702ysl9z5v8qpw-libredirect-0/lib/libredirect.dylib' (fat file, but missing compatible architecture (have 'x86_64,arm64,arm64e', need ''))
Assertion failed: (system(TESTPATH) == 0), function test_system, file test.c, line 41.
/nix/store/5pppil6mnwrnvpfhsqlwabw1plw2kx7l-stdenv-darwin/setup: line 1608: 56562 Abort trap: 6           ( source "$hook/nix-support/setup-hook"; NIX_REDIRECTS="/foo/bar/test=/nix/store/h04p46axj6gkc6x31fd2fzayj4bv9ngx-coreutils-9.3/bin/true:/bar/baz=$(mktemp -d)" ./test )

Additional context

SIP disabled (I believe there were some SIP specific issues in #243558)

Notify maintainers

@reckenrode

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.3`
 - channels(viraptor): `"home-manager-22.11.tar.gz, nixpkgs-22.11"`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/Users/viraptor/.nix-defexpr/channels/nixpkgs`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions