LinuxSir.cn,穿越时空的Linuxsir!

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

第二遍安装 GCC-3.3.1时编译出错?请高手指教

[复制链接]
发表于 2004-11-18 10:59:56 | 显示全部楼层 |阅读模式
我是在源码目录进行编译的,./configure --prefix=/tools \
    --with-local-prefix=/tools \
    --enable-clocale=gnu --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-languages=c,c++
tlink.c: In function `scan_linker_output':
tlink.c:598: warning: comparison of unsigned expression < 0 is always false
tlink.c:614: warning: comparison of unsigned expression < 0 is always false
tlink.c:659: warning: comparison of unsigned expression < 0 is always false
gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o Tcollect2 \
        collect2.o tlink.o intl.o version.o   ../libiberty/libiberty.a
../libiberty/libiberty.a(cp-demangle.o)(.text+0xd51): In function `demangle_identifier':
/home/lfs/gcc-3.3.1/libiberty/cp-demangle.c:1489: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[1]: *** [collect2] Error 1
make[1]: Leaving directory `/home/lfs/gcc-3.3.1/gcc'
make: *** [all-gcc] Error 2
在make -k test时出错如下:
make do-check NOTPARALLEL=parallel-ok
make[1]: Entering directory `/home/lfs/gcc-3.3.1'
make[2]: Entering directory `/home/lfs/gcc-3.3.1/libiberty'
make[3]: Entering directory `/home/lfs/gcc-3.3.1/libiberty/testsuite'
gcc -DHAVE_CONFIG_H -g -O2 -I.. -I./../../include  -o test-demangle \
        ./test-demangle.c ../libiberty.a
../libiberty.a(cp-demangle.o)(.text+0xd51): In function `demangle_identifier':
/home/lfs/gcc-3.3.1/libiberty/cp-demangle.c:1489: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[3]: *** [test-demangle] Error 1
make[3]: Target `check' not remade because of errors.
make[3]: Leaving directory `/home/lfs/gcc-3.3.1/libiberty/testsuite'
make[2]: *** [check-subdir] Error 2
make[2]: Target `check' not remade because of errors.
make[2]: Leaving directory `/home/lfs/gcc-3.3.1/libiberty'
make[1]: *** [check-libiberty] Error 2
make[2]: Entering directory `/home/lfs/gcc-3.3.1/gcc'
发表于 2004-11-18 12:47:54 | 显示全部楼层
不要在源码目录编译,建立一个gcc-build
发表于 2004-11-18 19:12:08 | 显示全部楼层
查看一下是否有这个
/usr/include/xlocale.h
/usr/include/ctype.h
发表于 2004-11-18 19:33:44 | 显示全部楼层
/usr/include/xlocale.h 是给X的 locale吧?:)。
猜测而已。偶不会programming的。
发表于 2004-11-23 01:14:01 | 显示全部楼层
敢冒险的话你可以make install,继续.
我的gcc-3.4.3和你一样的错,但现在可以去行了~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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