LinuxSir.cn,穿越时空的Linuxsir!

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

编译gcc-3.4.1出现错误

[复制链接]
发表于 2004-12-4 02:15:54 | 显示全部楼层 |阅读模式
使用的lfs6.0
编译binutils-2.15.91.0.2 没有出现错误
但是编译gcc-3.4.1时就出现错误了。

make[2]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS="-static" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long -Wold-style-definition " libdir=/tools/lib LANGUAGES="c gcov gcov-dump " MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
         CFLAGS="-g -O2" WERROR=""
make[2]: Entering directory `/mnt/LFS/sources/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include  ../../gcc-3.4.1/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include  ../../gcc-3.4.1/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
/usr/lib/crt1.o(.text+0xc): In function `_start':
../sysdeps/i386/elf/start.S:92: undefined reference to `__libc_csu_fini'
/usr/lib/crt1.o(.text+0x11):../sysdeps/i386/elf/start.S:93: undefined reference to `__libc_csu_init'
/usr/lib/crt1.o(.text+0x1d):../sysdeps/i386/elf/start.S:102: undefined reference to `__libc_start_main'
errors.o(.text+0x67): In function `warning':
/usr/include/bits/stdio.h:77: undefined reference to `__overflow'
errors.o(.text+0xe2): In function `error':
/usr/include/bits/stdio.h:77: undefined reference to `__overflow'
errors.o(.text+0x15d): In function `fatal':
/usr/include/bits/stdio.h:77: undefined reference to `__overflow'
errors.o(.text+0x1dd): In function `internal_error':
/usr/include/bits/stdio.h:77: undefined reference to `__overflow'
collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2


主系统使用的gcc-3.4.1,glibc-devel-2.3.3-21mdk

刚如LFS,步步为艰,望各位前辈不吝赐教,十分感谢!



:help :help :help
 楼主| 发表于 2004-12-4 13:25:36 | 显示全部楼层
问题解决了,编译glibc中...
发表于 2004-12-4 19:42:08 | 显示全部楼层
可否说说是怎么解决滴?

偶译不过去就是用gcc-3.3.3替代的!
 楼主| 发表于 2004-12-4 23:06:09 | 显示全部楼层
我是安装了glibc-static-devel-2.3.3-21mdk
glibc-utils-2.3.3-21mdk
解决的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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