some env setups CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="-mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d" CXXFLAGS="${CFLAGS}"
Created attachment 891764 [details] riscv64-linux-musl-gcc-stage1 build log
Came up on the forums at https://forums.gentoo.org/viewtopic-t-1168767.html. riscv@: please take a look.
I think I found the reason I set CC=clang;CXX=clang++ in a gcc compiler profile