我正在重新编译内核,在使用 make 命令时出现此错误
/usr/src/linux-3.10.48/arch/x86/Makefile:113: CONFIG_X86_X32 enabled but no binutils support
/usr/src/linux-3.10.48/scripts/gcc-goto.sh: line 5: cannot create temp file for here-document: No space left on device
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
sh: echo: I/O error
make: *** [include/config/kernel.release] Error 1
#df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda9 488640 292758 195882 60% /
none 494764 2 494762 1% /sys/fs/cgroup
udev 492079 564 491515 1% /dev
tmpfs 494764 601 494163 1% /run
none 494764 3 494761 1% /run/lock
none 494764 7 494757 1% /run/shm
none 494764 26 494738 1% /run/user
/dev/sda2 0 0 0 - /boot/efi
/dev/sda6 142417204 98313 142318891 1% /media/lenovo/New Volume
/dev/sda5 134108900 414306 133694594 1% /media/lenovo/Windows8_OS
/dev/sda7 14504940 22200 14482740 1% /media/lenovo/LENOVO
/dev/sda3 0 0 0 - /media/lenovo/LRS_ESP
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 7.3G 7.2G 0 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 387M 1.2M 386M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 544K 1.9G 1% /run/shm
none 100M 40K 100M 1% /run/user
/dev/sda2 256M 31M 226M 13% /boot/efi
/dev/sda6 150G 15G 136G 10% /media/lenovo/New Volume
/dev/sda5 223G 95G 128G 43% /media/lenovo/Windows8_OS
/dev/sda7 25G 12G 14G 45% /media/lenovo/LENOVO
/dev/sda3 996M 497M 500M 50% /media/lenovo/LRS_ESP
请检查一下并尽快答复我。运行 make 命令时,我还收到一个错误,提示剩余约 326 MB。
答案1
因为 make 错误提示No space left on device
你磁盘空间不足。看起来你有一个 8GB 的磁盘。
您需要释放一些磁盘空间或使用更大的硬盘。
如果您以虚拟机形式运行此程序,则需要确保指定更大的磁盘。虚拟盒默认选择 8GB。