@nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources @nix { "action": "setPhase", "phase": "patchPhase" } patching sources @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "configurePhase" } configuring no configure script, doing nothing @nix { "action": "setPhase", "phase": "buildPhase" } building libredirect.c:109:11: warning: incompatible function pointer types initializing 'int (*)(const char *, int, mode_t)' (aka 'int (*)(const char *, int, unsigned short)') with an expression of type 'int (*)(const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*open_real) (const char *, int, mode_t) = LOOKUP_REAL(open);  ^ ~~~~~~~~~~~~~~~~~ libredirect.c:114:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ libredirect.c:142:11: warning: incompatible function pointer types initializing 'int (*)(int, const char *, int, mode_t)' (aka 'int (*)(int, const char *, int, unsigned short)') with an expression of type 'int (*)(int, const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*openat_real) (int, const char *, int, mode_t) = LOOKUP_REAL(openat);  ^ ~~~~~~~~~~~~~~~~~~~ libredirect.c:147:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ 4 warnings generated. ld: warning: ignoring file /private/tmp/nix-build-libredirect-0.drv-0/libredirect-d70d99.o, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 libredirect.c:109:11: warning: incompatible function pointer types initializing 'int (*)(const char *, int, mode_t)' (aka 'int (*)(const char *, int, unsigned short)') with an expression of type 'int (*)(const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*open_real) (const char *, int, mode_t) = LOOKUP_REAL(open);  ^ ~~~~~~~~~~~~~~~~~ libredirect.c:114:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ libredirect.c:142:11: warning: incompatible function pointer types initializing 'int (*)(int, const char *, int, mode_t)' (aka 'int (*)(int, const char *, int, unsigned short)') with an expression of type 'int (*)(int, const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*openat_real) (int, const char *, int, mode_t) = LOOKUP_REAL(openat);  ^ ~~~~~~~~~~~~~~~~~~~ libredirect.c:147:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ 4 warnings generated. libredirect.c:109:11: warning: incompatible function pointer types initializing 'int (*)(const char *, int, mode_t)' (aka 'int (*)(const char *, int, unsigned short)') with an expression of type 'int (*)(const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*open_real) (const char *, int, mode_t) = LOOKUP_REAL(open);  ^ ~~~~~~~~~~~~~~~~~ libredirect.c:114:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ libredirect.c:142:11: warning: incompatible function pointer types initializing 'int (*)(int, const char *, int, mode_t)' (aka 'int (*)(int, const char *, int, unsigned short)') with an expression of type 'int (*)(int, const char *, int, ...)' [-Wincompatible-function-pointer-types] int (*openat_real) (int, const char *, int, mode_t) = LOOKUP_REAL(openat);  ^ ~~~~~~~~~~~~~~~~~~~ libredirect.c:147:27: warning: second argument to 'va_arg' is of promotable type 'mode_t' (aka 'unsigned short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] mode = va_arg(ap, mode_t);  ^~~~~~ /nix/store/n9rwf7h1sids29i0zl077jq8sd9nssp3-clang-13.0.0-lib/lib/clang/13.0.0/include/stdarg.h:19:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type)  ^~~~ 4 warnings generated. ld: warning: ignoring file /private/tmp/nix-build-libredirect-0.drv-0/libredirect-e9331c.o, building for macOS-arm64 but attempting to link with file built for macOS-arm64 fatal error: /nix/store/diz9chv9r9m3pv9rzi7g3p2iq8vgsmr3-cctools-binutils-darwin-949.0.1/bin/lipo: /private/tmp/nix-build-libredirect-0.drv-0/-771885.out and /private/tmp/nix-build-libredirect-0.drv-0/-cc083d.out have the same architectures (arm64) and can't be in the same fat output file clang-13: error: lipo command failed with exit code 1 (use -v to see invocation)