no rule to make target kernel/bounds.c

环境:ubuntu9.10

 

今天在更新升级之后,无线网卡不能使用。hardware driver 也没找到,于是,重新编译驱动。

sudo make 成功

make install 失败,错误提示:no rule to make target kernel/bounds.c 。。。。。

 

经网络搜索发现原因:

参考:http://ubuntuforums.org/showthread.php?s=b45cbbed61b642f41afac67c19b1e6f4&t=1047374&page=2

 

Guys, please read the thread more carefully!

bounds.c is in the file /usr/src/linux-source-2.6.31.tar.bz2 (hint: This version number applies to 9.10) which is only there if you have the package linux-source installed AND extracted (see above on how to do this).

Furthermore you've already been given another hint: Try compiling and installing using sudo -s instead of sudo. Using sudo -s you'll become superuser aka root so you have to use this command only once:

Code:
$ sudo -s
# a_command_to_be_executed <- executed with full priviledges - please be careful!
# another_command_with_root_rights
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:40: LSE atomics not supported by binutils scripts/kconfig/conf --syncconfig Kconfig arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:40: LSE atomics not supported by binutils CC kernel/bounds.s arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' Kbuild:21: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 make[1]: *** 正在等待未完成的任务.... Makefile:1245: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 make: *** 正在等待未完成的任务.... CC scripts/mod/empty.o CC scripts/mod/devicetable-offsets.s arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' scripts/Makefile.build:333: recipe for target 'scripts/mod/empty.o' failed make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** 正在等待未完成的任务.... arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' scripts/Makefile.build:131: recipe for target 'scripts/mod/devicetable-offsets.s' failed make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1 scripts/Makefile.build:637: recipe for target 'scripts/mod' failed make[1]: *** [scripts/mod] Error 2 make[1]: *** 正在等待未完成的任务.... Makefile:1211: recipe for target 'scripts' failed make: *** [scripts] Error 2
最新发布
11-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值