make linux: collect2: fatal error: cannot find 'ld' compilation terminated.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

make linux: collect2: fatal error: cannot find 'ld' compilation terminated.

跳至解决方案
2,857 次查看
1475849560
Contributor II

SDK: V1.9

linux source : linux-fslc-5.4-x-fslc

Error:

root@ve:/home/nxp/SDK/linux-fslc-5.4.x-fslc# make -j4
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
VDSO32L arch/powerpc/kernel/vdso32/vdso32.so.dbg
collect2: fatal error: cannot find 'ld'
compilation terminated.
make[4]: *** [arch/powerpc/kernel/vdso32/vdso32.so.dbg] Error 1
make[3]: *** [arch/powerpc/kernel/vdso32] Error 2
make[2]: *** [arch/powerpc/kernel] Error 2
make[2]: *** Waiting for unfinished jobs....
CHK include/generated/compile.h
make[1]: *** [arch/powerpc] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

1475849560_0-1603635683390.png

 

标记 (2)
0 项奖励
1 解答
2,841 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

it looks that there is missing GNU linker (or path to it) on your system. I'm not familiar with this SW, did you follow build instructions (hope that there is such info as a part of package)? 

 

BR, 

Jiri 

在原帖中查看解决方案

0 项奖励
3 回复数
2,842 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

 

it looks that there is missing GNU linker (or path to it) on your system. I'm not familiar with this SW, did you follow build instructions (hope that there is such info as a part of package)? 

 

BR, 

Jiri 

0 项奖励
2,829 次查看
1475849560
Contributor II

Thanks,

my environment can compile uBoot, but it can't compile Linux.

0 项奖励
2,853 次查看
1475849560
Contributor II

I get linux code from :  https://github.com/Freescale/linux-fslc

1475849560_0-1603636245781.png

 

0 项奖励