Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-17 compile error #450

Open
gf91597 opened this issue Jan 31, 2023 · 1 comment
Open

clang-17 compile error #450

gf91597 opened this issue Jan 31, 2023 · 1 comment

Comments

@gf91597
Copy link

gf91597 commented Jan 31, 2023

mkdir -p benchmarks
make -C benchmarks -f /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/Makefile src_dir=/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks XLEN=64
make[1]: Entering directory '/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks'
riscv64-unknown-elf-gcc -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/../env -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/common -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/median -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/qsort -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/rsort -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/towers -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/vvadd -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/multiply -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/mm -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/dhrystone -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/spmv -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/mt-vvadd -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/mt-matmul -I/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o median.riscv /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/median/median_main.c /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/median/median.c /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/common/syscalls.c /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T /home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/common/test.ld
clang-17: error: unknown argument: '-fno-tree-loop-distribute-patterns'
/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks/Makefile:54: recipe for target 'median.riscv' failed
make[1]: *** [median.riscv] Error 1
make[1]: Leaving directory '/home/gaofeng2/mySrc/RISCV/riscv-tests/benchmarks'
Makefile:24: recipe for target 'benchmarks' failed
make: *** [benchmarks] Error 2

@widlarizer
Copy link

If you set RISCV_GCC_OPTS in your make invocation by removing that flag from the default value of RISCV_GCC_OPTS in benchmarks/Makefile, this error should go away. It might break the tests since they come with their own string.h function implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants