hanatos / vkdt

raw photography workflow that sucks less
https://jo.dreggn.org/vkdt
BSD 2-Clause "Simplified" License
388 stars 35 forks source link

vulkan-headers hard coded to x86_64? #147

Open paperdigits opened 1 week ago

paperdigits commented 1 week ago

Howdy, we're trying to build for aarch64 linux for NixOS, and we're currently getting this error:

Running phase: unpackPhase
unpacking source archive /nix/store/60iiaia0vbgl09ynhvbf7rk55sc17gxq-vkdt-0.9.0.tar.xz
source root is vkdt-0.9.0
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
setting SOURCE_DATE_EPOCH to timestamp 1728121206 of file vkdt-0.9.0/src/core/version.h
Running phase: patchPhase
Executing cargoSetupPostPatchHook
Validating consistency between /build/vkdt-0.9.0/src/pipe/modules/i-raw/rawloader-c/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
build flags: SHELL=/nix/store/j5z5pvvahd58k9ffy6v74m9rkbi9nqqh-bash-5.2p37/bin/bash DESTDIR=\$\(out\) prefix=
/nix/store/j5z5pvvahd58k9ffy6v74m9rkbi9nqqh-bash-5.2p37/bin/bash: line 1: ffmpeg: command not found
/nix/store/j5z5pvvahd58k9ffy6v74m9rkbi9nqqh-bash-5.2p37/bin/bash: line 1: [: -gt: unary operator expected
/nix/store/j5z5pvvahd58k9ffy6v74m9rkbi9nqqh-bash-5.2p37/bin/bash: line 1: git: command not found
/nix/store/j5z5pvvahd58k9ffy6v74m9rkbi9nqqh-bash-5.2p37/bin/bash: line 1: git: command not found
make -C src/
make[1]: Entering directory '/build/vkdt-0.9.0/src'
clang -Wall -pipe -I. -D_GNU_SOURCE -std=c11 -fPIC -Wall -pipe -O3 -march=x86-64 -DNDEBUG -I/nix/store/bfr3dgks18kzgbv8d9dc09vs9mvjzq5z-vulkan-headers-1.3.296.0/include  -c cli/main.c -o cli/main.o
clang: error: unsupported argument 'x86-64' to option '-march='
make[1]: *** [Makefile:94: cli/main.o] Error 1
make[1]: Leaving directory '/build/vkdt-0.9.0/src'
make: *** [Makefile:108: src] Error 2
hanatos commented 1 week ago

ah nice!

okay let's see:

about the build error above: