本文介绍了链接失败 [ld 找不到库]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过 make menuconfig
配置 Linux 内核 [Angstrom 发行版],但是我收到了这些错误.
I am trying to configure Linux kernel [Angstrom distribution] via make menuconfig
, but I get these errors.
make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has modification time 11511 s in the future
make[1]: Warning: File `scripts/Makefile.host' has modification time 11393 s in the future
HOSTCC scripts/basic/fixdep
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
据我所知,ld 找不到库 lgcc_s.我怎样才能解决这个问题?任何帮助将不胜感激.
As far I know, ld cannot find library lgcc_s. How can i fix this? Any help would really be appreciated.
推荐答案
在内核配置期间,链接器正在寻找 libgcc_s.so
.然而,取而代之的是libgcc_s.so.1
.通过运行以下命令在两个文件之间创建链接,链接成功:
During kernel configuration, the linker is looking for libgcc_s.so
. However, instead this file, there is libgcc_s.so.1
. Linking succeeds by creating a link between the two files by running:
ln –s libgcc_s.so.1 libgcc_s.so
这篇关于链接失败 [ld 找不到库]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!