Closed emalpb closed 2 years ago
Hi!
How can I compile the application? I change in build.rs to -march=native but have this error when compiling...
Thank you
error: failed to run custom build command for engraver v2.4.0 (/home/ubuntu/Downloads/engraver)
engraver v2.4.0 (/home/ubuntu/Downloads/engraver)
Caused by: process didn't exit successfully: /home/ubuntu/Downloads/engraver/target/debug/build/engraver-5e685c8c0b60b480/build-script-build (exit code: 101) --- stdout TARGET = Some("aarch64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("aarch64-unknown-linux-gnu") CC_aarch64-unknown-linux-gnu = None CC_aarch64_unknown_linux_gnu = None HOST_CC = None CC = None CFLAGS_aarch64-unknown-linux-gnu = None CFLAGS_aarch64_unknown_linux_gnu = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/sph_shabal.o" "-c" "src/c/sph_shabal.c" exit code: 0 running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/noncegen_32.o" "-c" "src/c/noncegen_32.c" exit code: 0 running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/common.o" "-c" "src/c/common.c" exit code: 0 AR_aarch64-unknown-linux-gnu = None AR_aarch64_unknown_linux_gnu = None HOST_AR = None AR = None running: "ar" "crs" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/libshabal.a" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/sph_shabal.o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/noncegen_32.o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/common.o" exit code: 0 cargo:rustc-link-lib=static=shabal cargo:rustc-link-search=native=/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-march=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/mshabal_128_sse2.o" "-c" "src/c/mshabal_128_sse2.c" cargo:warning=src/c/mshabal_128_sse2.c:19:10: fatal error: emmintrin.h: No such file or directory cargo:warning= 19 | #include cargo:warning= | ^~~~~ cargo:warning=compilation terminated. exit code: 1
/home/ubuntu/Downloads/engraver/target/debug/build/engraver-5e685c8c0b60b480/build-script-build
--- stderr thread 'main' panicked at '
Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-march=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/mshabal_128_sse2.o" "-c" "src/c/mshabal_128_sse2.c" with args "cc" did not execute successfully (status code exit code: 1).
', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.28/src/lib.rs:2314:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
RUST_BACKTRACE=1
warning: build failed, waiting for other jobs to finish... error: build failed
what is your cargo line to start the compile? We never looked into plotting on a pi as it will be terribly slow...
got the same problem here. maybe it is possible to add NEON support for ARM CPUs?
Hi!
How can I compile the application? I change in build.rs to -march=native but have this error when compiling...
Thank you
error: failed to run custom build command for
engraver v2.4.0 (/home/ubuntu/Downloads/engraver)
Caused by: process didn't exit successfully:
cargo:warning= | ^
/home/ubuntu/Downloads/engraver/target/debug/build/engraver-5e685c8c0b60b480/build-script-build
(exit code: 101) --- stdout TARGET = Some("aarch64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("aarch64-unknown-linux-gnu") CC_aarch64-unknown-linux-gnu = None CC_aarch64_unknown_linux_gnu = None HOST_CC = None CC = None CFLAGS_aarch64-unknown-linux-gnu = None CFLAGS_aarch64_unknown_linux_gnu = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/sph_shabal.o" "-c" "src/c/sph_shabal.c" exit code: 0 running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/noncegen_32.o" "-c" "src/c/noncegen_32.c" exit code: 0 running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/common.o" "-c" "src/c/common.c" exit code: 0 AR_aarch64-unknown-linux-gnu = None AR_aarch64_unknown_linux_gnu = None HOST_AR = None AR = None running: "ar" "crs" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/libshabal.a" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/sph_shabal.o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/noncegen_32.o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/common.o" exit code: 0 cargo:rustc-link-lib=static=shabal cargo:rustc-link-search=native=/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-march=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/mshabal_128_sse2.o" "-c" "src/c/mshabal_128_sse2.c" cargo:warning=src/c/mshabal_128_sse2.c:19:10: fatal error: emmintrin.h: No such file or directory cargo:warning= 19 | #include~~~~ cargo:warning=compilation terminated. exit code: 1--- stderr thread 'main' panicked at '
Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-Wall" "-Wextra" "-std=c99" "-mtune=native" "-march=native" "-o" "/home/ubuntu/Downloads/engraver/target/debug/build/engraver-ac3acd9fa67ed69a/out/src/c/mshabal_128_sse2.o" "-c" "src/c/mshabal_128_sse2.c" with args "cc" did not execute successfully (status code exit code: 1).
', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.28/src/lib.rs:2314:5 note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish... error: build failed