红联Linux门户
Linux帮助

建立snapgear-linux映像中遇到的问题记录

发布时间:2007-09-24 00:20:38来源:红联作者:onquer
近日建立GCC Cross-Compiler ,用的是binutils-2.13.1

当make时,报告如下错误:
binutils-2.13.1/bfd/archures.c:463: undefined reference to '_bfd_i386_arch'
collect2: ld returned 1 exit status
make[3]; *** [size.exe] Error 1

依据帖子中提到:把 bfd/Makefile.in中 echo $$f > tofiles 修改为echo $$f ' ' > tofiles

configure ,make 成功......

至于原因不知........

用snapgerr的sparc-linux-toos.sh作cross tools:

编译安装boot-trap gcc时,记得configure加上--disable-threads --disable-shared --without-headers
否则,make gcc时会需要pthreadtypes.h等等文件,这些文件在uClibc/libc/sysdeps/linux/common/bits,也可以直接copy过去

编译c++程序,记得ulibc的make menuconfig中有个floating point support 要选中,否则会提示找不到一对文件,文件名字不记得了。

make xconfig配置linux内核时,提示wish can not find!

RE:wish is the tk shell. do you have tcl/tk installed?

执行:sudo apt-get install tclx8.4 sudo apt-get install tk8.4

然后make xconfig, OK!

make menuconfig配置linux内核时,需要用到Ncurses库。

Ncurses库提供了一个相当稳固的工作框架(Framework)可以在字符模式下产生漂亮的界面。

winXP下,cygwin环境,tar解压包时,出现下列类似错误:

tar: snapgear-p33a/linux-2.0.x/arch/sparcnommu/platform/LEON-2.x: time stamp 2007-05-31 19:41:33 is 54609679.207 s in the future
tar: snapgear-p33a/linux-2.0.x/arch/sparcnommu/platform: time stamp 2007-05-31 19:41:33 is 54609679.204 s in the future
tar: snapgear-p33a/linux-2.0.x/arch/sparcnommu/mm: time stamp 2007-05-31 19:41:34 is 54609680.195 s in the future
tar: snapgear-p33a/linux-2.0.x/arch/sparcnommu/config.in: time stamp 2007-05-15 20:06:24 is 53228770.19 s in the future

苦弄不清原因.....

然后赫然发现中了病毒,把我xp系统时间向前该了2年..... 修改,OK!
文章评论

共有 0 条评论