LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 979|回复: 3

I got 2 errors in compiling binutils, how to solve it?

[复制链接]
发表于 2005-11-12 00:15:27 | 显示全部楼层 |阅读模式
Hi, all,

I got 2 errors when I compiling binutils this evening. I google it but did not get the solution. Who can help me?

Here is the error message below:
...
./elf32-target.h:605: warning: (near initialization for 'elf32_bed.want_dynbss')
./elf32-target.h:731: error: 'SEC_ARCH_BIT_0' undeclared here (not in a function)
./elf32-target.h:790: error: 'bfd_elf_discard_group' undeclared here (not in a function)
In file included from ../../binutils-2.16.1/bfd/elf32-i386.c:3383:
./elf32-target.h:523: warning: initialization makes integer from pointer without a cast
./elf32-target.h:530: warning: initialization from incompatible pointer type
./elf32-target.h:536: warning: initialization from incompatible pointer type
...

My system is SuSe 10. The lfs packages I downloaded is version 6.1. But I can not compile binutils-2.15.94.0.2.2. So that I tried to binutils-2.16.1.
My compile command is:
../binutils-2.16.1/configure --prefix=/tools --disable-nls && make && make install && make -C ld clean && make -C ld LIB_PATH=/tools/lib
发表于 2005-11-12 03:42:09 | 显示全部楼层
i believe it's the problem of SUSE 10.
Have you tried livecd?
回复 支持 反对

使用道具 举报

发表于 2005-11-12 05:26:27 | 显示全部楼层
Default compiler in SuSE10 is 4.0.x.  You may need many patches, which are gcc-4 specific, in order to build your LFS successfully.

Highly recommend to use the official LFS LiveCD as your host.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-12 20:59:47 | 显示全部楼层
I tried again in vmware installed suse 10 today and it work well. Then I don't think it's problem of gcc-4.x.
I will try to install a gcc-3.x and retry LFS later.
Also, I will try liveCD when I solve this problem.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表