ld: /ubuntu/omnibook/sections.lds: No such file: No such file or directory解决

ld: /ubuntu/omnibook/sections.lds: No such file: No such file or directory解决

Luo Weifeng 2011-5-1

 

今天编译2.6.38内核,make的时候出现了如下错误:

ld: /ubuntu/omnibook/sections.lds: No such file: No such file or directory

分析原因:编译出来的路径没有找到,出现混乱,基于网络上有牛人找到了。

解决:

$pwd /usr/src/mylinux-source-2.6.38 $sudo vim +160 ubuntu/omnibook/Makefile  

原来的是:

160 #EXTRA_LDFLAGS += $(src)/sections.lds 161 EXTRA_LDFLAGS += $(PWD)/ubuntu/omnibook/sections.lds  

方法一:

160 #EXTRA_LDFLAGS += $(src)/sections.lds 161 PWD = $(shell pwd) 162 EXTRA_LDFLAGS += $(PWD)/ubuntu/omnibook/sections.lds  

方法二:

160 EXTRA_LDFLAGS += $(src)/sections.lds 161 #EXTRA_LDFLAGS += $(PWD)/ubuntu/omnibook/sections.lds  

再make ,OK!

 

你可能感兴趣的:(shell,网络,File,vim)