- 论坛徽章:
- 0
|
本帖最后由 coldfire12 于 2012-02-21 17:54 编辑
使用的GMP、MPFR、MPC这三个库分别为gmp-5.0.2,mpc-0.9,mpfr-3.1.0。
自己写了一个sh文件,内容如下:
export LD_RUN_PATH=/usr/local/lib:/usr/local/mpfr/lib:/usr/local/gmp/lib:/usr/local/mpc/lib
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mpfr/lib:/usr/local/gmp/lib:/usr/local/mpc/lib
../configure --prefix=/usr/bin/gcc-4.6 --enable-languages=c,c++ --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --with-mpc=/usr/local/mpc --enable-libgomp
输出的错误信息如下:
build/gengtype.o: In function `create_optional_field_':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:853: undefined reference to `lexer_line'
build/gengtype.o: In function `adjust_field_rtx_def':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:989: undefined reference to `lexer_line'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:1045: undefined reference to `lexer_line'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:1055: undefined reference to `lexer_line'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:1121: undefined reference to `lexer_line'
build/gengtype.o:/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype.c:1160: more undefined references to `lexer_line' follow
build/gengtype-parse.o: In function `token':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:53: undefined reference to `yylex'
build/gengtype-parse.o: In function `parse_error':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:142: undefined reference to `lexer_line'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:142: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `struct_field_seq':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:692: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `type':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:726: undefined reference to `lexer_line'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:758: undefined reference to `lexer_line'
build/gengtype-parse.o:/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:758: more undefined references to `lexer_line' follow
build/gengtype-parse.o: In function `parse_file':
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:951: undefined reference to `yybegin'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:986: undefined reference to `lexer_toplevel_done'
/usr/src/gcc/host-i686-pc-linux-gnu/gcc/../.././gcc/gengtype-parse.c:991: undefined reference to `yyend'
collect2: ld returned 1 exit status
make[3]: *** [build/gengtype] Error 1
make[3]: Leaving directory `/usr/src/gcc/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/usr/src/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/src/gcc'
make: *** [all] Error 2
有没有高手帮一下,难道我下载的gcc源代码中有错误?
|
|