安装 GCC-4.4.1 出错,
RedHat AS5上安装 GCC-4.4.1 出错:
已经安装了 gmp 及 mpfr,均已make check过,在gcc make 时报错,如下:应该是没链到mpfr库吧,
gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp
libbackend.a(builtins.o): In function `fold_builtin_1':
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10291: undefined reference to `mpfr_j0'
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10297: undefined reference to `mpfr_j1'
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10303: undefined reference to `mpfr_y0'
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10309: undefined reference to `mpfr_y1'
libbackend.a(builtins.o): In function `fold_builtin_2':
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10430: undefined reference to `mpfr_jn'
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10436: undefined reference to `mpfr_yn'
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:10444: undefined reference to `mpfr_remainder'
libbackend.a(builtins.o): In function `do_mpfr_remquo':
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:13344: undefined reference to `mpfr_remquo'
libbackend.a(builtins.o): In function `do_mpfr_lgamma_r':
/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc/../.././gcc/builtins.c:13422: undefined reference to `mpfr_lgamma'
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory `/usr/src/gcc4/gcc-4.4.1/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/usr/src/gcc4/gcc-4.4.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/src/gcc4/gcc-4.4.1'
make: *** [all] Error 2
[ 本帖最后由 kgd7558 于 2009-8-30 09:54 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
mpfr-dev
另外,如果链接不上configure的时候可以指定参数
自己去gcc网站上找安装指南去吧
直接把gmp 及 mpfr解压到gcc目录下,再./configure和make就可以了,详情可参考lfs 6.5