LinuxSir.cn,穿越时空的Linuxsir!

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

第二次编译BINUTILS出错,能否再次解压编译?

[复制链接]
发表于 2005-4-19 08:54:10 | 显示全部楼层 |阅读模式
出错信息如下:
touch stamp-lib
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/opcodes'
Configuring in binutils
loading cache .././config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
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 strerror in -lcposix... (cached) no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) ld
checking if the linker (ld) is GNU ld... (cached) yes
checking for ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) nm
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache .././config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC...  -fPIC -DPIC
checking if gcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 49153
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse nm output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache .././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for bison... bison -y
checking how to run the C preprocessor... (cached) gcc -E
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for ranlib... (cached) ranlib
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for values.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for gettext in libc... (cached) yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  fr tr ja es sv da zh_CN
checking whether to enable maintainer-specific portions of Makefiles... no
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for sbrk... (cached) yes
checking for utimes... yes
checking for setmode... no
checking for getc_unlocked... yes
checking for strcoll... yes
checking for fopen64... yes
checking for library containing frexp... none required
checking for time_t in time.h... yes
checking for time_t in sys/types.h... yes
checking for utime.h... yes
checking whether fprintf must be declared... no
checking whether strstr must be declared... (cached) no
checking whether sbrk must be declared... no
checking whether getenv must be declared... (cached) no
checking whether environ must be declared... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating po/Makefile.in
creating config.h
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
make  all-recursive
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
Making all in doc
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/doc'
if test -f cxxfilt.man; then \
  man=cxxfilt.man; \
else \
  man=../../../binutils-2.14/binutils/doc/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
    -e 's/cxxfilt/c++filt/' < $man \
        > c++filt.1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/doc'
Making all in po
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/binutils/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils/po'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/binutils'
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.14/binutils -I../bfd -I../../binutils-2.14/binutils/../bfd -I../../binutils-2.14/binutils/../include -I../../binutils-2.14/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.14/binutils/size.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.14/binutils -I../bfd -I../../binutils-2.14/binutils/../bfd -I../../binutils-2.14/binutils/../include -I../../binutils-2.14/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.14/binutils/bucomm.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.14/binutils -I../bfd -I../../binutils-2.14/binutils/../bfd -I../../binutils-2.14/binutils/../include -I../../binutils-2.14/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.14/binutils/version.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.14/binutils -I../bfd -I../../binutils-2.14/binutils/../bfd -I../../binutils-2.14/binutils/../include -I../../binutils-2.14/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.14/binutils/filemode.c
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -o size  size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o .libs/size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.so -L/mnt/lfs/sources/binutils-build/libiberty/pic -liberty ../libiberty/libiberty.a -Wl,--rpath -Wl,/tools/lib
bucomm.o(.text+0x8ce): In function `make_tempname':
../../binutils-2.14/binutils/bucomm.c:441: the use of `mktemp' is dangerous, better use `mkstemp'
/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_tls_symaddr@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[3]: *** [size] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
发表于 2005-4-19 11:23:41 | 显示全部楼层
你把第一遍建立的目录删除,然后重新解压再创建新的目录编译,试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-19 16:07:26 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-4-20 12:33:07 | 显示全部楼层
your glibc may not be compiled or installed properly.

before you compile your binutils second pass,the original binutils directory should be removed.

In the 5.9 adjusting the toolchains,LFS6.0 says:" Now that the adjusted linker is installed, the Binutils build and source directories should be removed."
回复 支持 反对

使用道具 举报

发表于 2005-4-20 14:05:49 | 显示全部楼层
Post by robustboy
your glibc may not be compiled or installed properly.

before you compile your binutils second pass,the original binutils directory should be removed.

In the 5.9 adjusting the toolchains,LFS6.0 says:" Now that the adjusted linker is installed, the Binutils build and source directories should be removed."


这句话太隐蔽了...................
回复 支持 反对

使用道具 举报

发表于 2005-5-20 21:01:04 | 显示全部楼层
上面几位大佬,要是能翻译成汉语就更好了,毕竟来这里的兄弟的E文(包括我)大多都不够好,甚至一点都不好.
要是E文好的话,就上E文BBS了.
回复 支持 反对

使用道具 举报

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

本版积分规则

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