LinuxSir.cn,穿越时空的Linuxsir!

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

编译LFS6.1到5.12. Binutils-2.15.94.0.2.2 - Pass 2时出错

[复制链接]
发表于 2005-8-7 12:33:57 | 显示全部楼层 |阅读模式
当我编译LFS6.1到5.12. Binutils-2.15.94.0.2.2 - Pass 2时出错,内容如下:
lfs://mnt/lfs/sources/binutils-2.15.94.0.2.2$ mkdir ../binutils-build
mkdir: cannot create directory `../binutils-build': File exists
lfs://mnt/lfs/sources/binutils-2.15.94.0.2.2$ cd ../binutils-build
lfs://mnt/lfs/sources/binutils-build$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls --enable-shared --with-lib-path=/tools/lib
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... (cached) gnatbind
checking whether compiler driver understands Ada... (cached) yes
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure
*** removing opcodes/Makefile to force reconfigure
*** removing bfd/Makefile to force reconfigure
*** removing binutils/Makefile to force reconfigure
*** removing gas/Makefile to force reconfigure
*** removing ld/Makefile to force reconfigure
*** removing gprof/Makefile to force reconfigure
*** removing etc/Makefile to force reconfigure
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... (cached) /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
lfs://mnt/lfs/sources/binutils-build$ make
Configuring in libiberty
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -g -O2
configure: current value: -g -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make: *** [configure-libiberty] Error 1
lfs://mnt/lfs/sources/binutils-build$
谢谢各位帮忙看一下
发表于 2005-8-7 15:42:35 | 显示全部楼层
你要先将PASS1中留下来的binutils-build删除.再重新建立.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-7 16:07:08 | 显示全部楼层
首先谢谢jackycxh的回复,但我些不明白在LFS6.1文档中提到:
After installing each package, delete its source and build directories, unless specifically instructed otherwise. Deleting the sources saves space and prevents mis-configuration when the same package is reinstalled later. Only three of the packages need to retain the source and build directories in order for their contents to be used by later commands. Pay special attention to these reminders.
在5.3. Binutils-2.15.94.0.2.2 - Pass 1中有个warning写到:

Warning

Do not remove the Binutils build and source directories yet. These will be needed again in their current state later in this chapter.
回复 支持 反对

使用道具 举报

发表于 2005-8-7 21:02:59 | 显示全部楼层
别改变CFLAG里边的东西。。。(提示是这么说的)。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-7 22:43:23 | 显示全部楼层
首先谢谢黯然销魂版主回复,它是否提示我在运行先前的步骤后`CFLAGS'已经改变。接下来我该如果做呢?谢谢版主帮忙。
回复 支持 反对

使用道具 举报

发表于 2005-8-8 09:55:10 | 显示全部楼层
Post by timwong
首先谢谢jackycxh的回复,但我些不明白在LFS6.1文档中提到:
After installing each package, delete its source and build directories, unless specifically instructed otherwise. Deleting the sources saves space and prevents mis-configuration when the same package is reinstalled later. Only three of the packages need to retain the source and build directories in order for their contents to be used by later commands. Pay special attention to these reminders.
在5.3. Binutils-2.15.94.0.2.2 - Pass 1中有个warning写到:

Warning

Do not remove the Binutils build and source directories yet. These will be needed again in their current state later in this chapter.


1. Binutils Pass 1   (Do not remove the build and source)
2. Adjusting Toolchain ( the Binutils Pass 1 build directory is needed at here)
3. remove the build directory
4. Binutils Pass2  (Do not remove the build and source)
5. Re-adjusting the Toolchain (the Binutils Pass2 build directory is needed at here)
6. remove the build directory
7. install the Binutils Final Pass.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-8 10:25:01 | 显示全部楼层
hi jackycxh
谢谢你的回复,我再重新看了一遍5.7. Adjusting the Toolchain里面果然提到:
Now that the adjusted linker is installed, the Binutils build and source directories should be removed.
wow thanks a lot.
回复 支持 反对

使用道具 举报

发表于 2005-8-8 10:47:09 | 显示全部楼层
还是没仔细看book,不然不会犯这些错误的。。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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