我正在最新的 Arch Linux 上构建 riscv-gnu-toolchain。 https://github.com/riscv-collab/riscv-gnu-toolchain像这样:
sudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat
cd /tmp
git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
mkdir build
cd build
../configure --prefix=${HOME}/riscv64_github
make -j$(nproc)
在 gcc 构建期间进行编译时,我收到此错误:
/tmp/riscv-gnu-toolchain/gcc/gcc/fold-const.cc:16842:1: fatal error: error writing to /tmp/ccNNtXpB.s: No space left on device
16842 | }
| ^
compilation terminated.
make[2]: *** [Makefile:1143: fold-const.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[2]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1/gcc'
make[1]: *** [Makefile:4607: all-gcc] Error 2
make[1]: Leaving directory '/tmp/riscv-gnu-toolchain/build/build-gcc-newlib-stage1'
make: *** [Makefile:552: stamps/build-gcc-newlib-stage1] Error 2
我该怎么办?
进入您首先构建的目录,例如 cd riscv-gnu-toolchain 并运行以下命令:
2)sudo make distclean