I built binutils and added variables AR , etc. for configuring Configured with ./configure --target=riscv64-unknown-elf make Gives g++: fatal error: Killed signal terminated program cc1plus compilation terminated make[2]: *** [Makefile:1143: gimple-match.o] Error 1 make[2]: Leaving directory '/path/to/gcc-12.2.0/host-aarch64-unknown-linux-musl/gcc' make[1]: *** [Makefile:4610: all-gcc] Error 2 make[1]: Leaving directory 'gcc-12.2.0’ make: *** [Makefile:1028: all] Error 2 I already have a preinstalled package aarch64-linux-musl-gcc . Kindly help. Thanking you Sagar Acharya https://designman.org