构建 Virtualbox Linux 头文件

构建 Virtualbox Linux 头文件

我正在尝试使用 Ubuntu 13.04 在我的 Acer C7 上运行 Virtualbox。我运行了发布的脚本这里但在脚本中的这一点之后我收到以下错误。

# make-kpkg kernel_image kernel_headers

make[2]: Entering directory `/usr/src/kernel' SYSHDR
arch/x86/syscalls/../include/generated/asm/unistd_32.h SYSHDR 
arch/x86/syscalls/../include/generated/asm/unistd_64.h SYSHDR 
arch/x86/syscalls/../include/generated/asm/unistd_x32.h SYSTBL   
arch/x86/syscalls/../include/generated/asm/syscalls_32.h HOSTCC 
arch/x86/tools/relocs CHK include/linux/version.h UPD 
include/linux/version.h CHK include/generated/utsrelease.h UPD 
include/generated/utsrelease.h CC kernel/bounds.s cc1: error: unrecognized command line option '-fstack-protector-strong'


make[3]: * [kernel/bounds.s] Error 1 make[2]: [prepare0] Error 2 make[2]: 
Leaving directory /usr/src/kernel' make[1]: *** [debian/stamp/conf/kernel-conf] 
Error 2 make[1]: Leaving directory/usr/src/kernel' make: ** 
[debian/stamp/conf/minimal_debian] 
Error 2 Failed to create a ./debian directory: No such file or directory at /usr/bin/make-kpkg line 984.

答案1

国旗-fstack-protector-strong相当新。您可能需要升级 gcc。以 root 身份运行以下命令。 (看这个问题了解更多信息。)

apt-get update
apt-get --only-upgrade install gcc

相关内容