免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3606 | 回复: 0
打印 上一主题 下一主题

[VMware] 诚心请教一个Linux Redhat 64位下GCC 4.8 安装问题 bug 已经困扰我很久了。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-02 18:08 |只看该作者 |倒序浏览
你好,麻烦请教个问题,困扰了我很久了。。
我想在linux Redhat 64 位系统上安装 GCC-4.8.2,出现了如下bug:
g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace ../.././gcc/diagnostic.c -o diagnostic.o
g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace ../.././gcc/pretty-print.c -o pretty-print.o
g++ -c-DLOCALEDIR=\/home/LUC/bin/share/locale\ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace ../.././gcc/intl.c -o intl.o
g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace ../.././gcc/input.c -o input.o
g++ -c-DBASEVER=\4.8.2\ -DDATESTAMP=\\ -DREVISION=\\ -DDEVPHASE=\\ -DPKGVERSION=\(GCC) \ -DBUGURL=\http://gcc.gnu.org/bugs.html\ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace ../.././gcc/version.c -o version.o
rm -rf libcommon.a
ar rc libcommon.a diagnostic.o pretty-print.o intl.o input.o version.o
ranliblibcommon.a
build/genchecksum c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o glibc-c.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a \
checksum-options cc1-checksum.c.tmp && \
../.././gcc/../move-if-change cc1-checksum.c.tmp cc1-checksum.c
g++ -c-DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/LUC/local/gmp-4.3.2/include -I/home/LUC//local/mpfr-2.4.2/include -I/home/LUC//local/mpc-0.8.1/include-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace cc1-checksum.c -o cc1-checksum.o
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common-DHAVE_CONFIG_H-o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o glibc-c.o \
cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/home/LUC/local/gmp-4.3.2/lib -L/home/LUC//local/mpfr-2.4.2/lib -L/home/LUC//local/mpc-0.8.1/lib -lmpc -lmpfr -lgmp -rdynamic -ldl-L../zlib -lz
c/c-decl.o: In function `tree_check(tree_node*, char const*, int, char const*, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3684: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `tree_check2(tree_node*, char const*, int, char const*, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3703: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `tree_not_check2(tree_node*, char const*, int, char const*, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3713: undefined reference to `tree_not_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `tree_check3(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3724: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `tree_not_check3(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3735: undefined reference to `tree_not_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `tree_check5(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3775: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-decl.o: In function `contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3798: undefined reference to `tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*)'
c/c-decl.o: In function `tree_class_check(tree_node*, tree_code_class, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3807: undefined reference to `tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c/c-decl.o: In function `expr_check(tree_node*, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3853: undefined reference to `tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c/c-decl.o: In function `non_type_check(tree_node*, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3863: undefined reference to `tree_not_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c/c-decl.o: In function `tree_class_check(tree_node const*, tree_code_class, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4017: undefined reference to `tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c/c-decl.o: In function `tree_operand_check(tree_node*, int, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4119: undefined reference to `tree_operand_check_failed(int, tree_node const*, char const*, int, char const*)'
c/c-typeck.o: In function `omp_clause_subcode_check(tree_node*, omp_clause_code, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3826: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3828: undefined reference to `omp_clause_check_failed(tree_node const*, char const*, int, char const*, omp_clause_code)'
c/c-typeck.o: In function `omp_clause_range_check(tree_node*, omp_clause_code, omp_clause_code, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3839: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3842: undefined reference to `omp_clause_range_check_failed(tree_node const*, char const*, int, char const*, omp_clause_code, omp_clause_code)'
c/c-typeck.o: In function `omp_clause_elt_check(tree_node*, int, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3883: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3885: undefined reference to `omp_clause_operand_check_failed(int, tree_node const*, char const*, int, char const*)'
c/c-typeck.o: In function `tree_check(tree_node const*, char const*, int, char const*, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3894: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-typeck.o: In function `tree_check2(tree_node const*, char const*, int, char const*, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3913: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-typeck.o: In function `tree_check3(tree_node const*, char const*, int, char const*, tree_code, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3934: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-typeck.o: In function `tree_not_check3(tree_node const*, char const*, int, char const*, tree_code, tree_code, tree_code)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3945: undefined reference to `tree_not_check_failed(tree_node const*, char const*, int, char const*, ...)'
c/c-typeck.o: In function `contains_struct_check(tree_node const*, tree_node_structure_enum, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4008: undefined reference to `tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*)'
c/c-typeck.o: In function `expr_check(tree_node const*, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4061: undefined reference to `tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c/c-typeck.o: In function `tree_operand_check(tree_node const*, int, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4140: undefined reference to `tree_operand_check_failed(int, tree_node const*, char const*, int, char const*)'
c/c-parser.o: In function `tree_vec_elt_check(tree_node*, int, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3872: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:3874: undefined reference to `tree_vec_elt_check_failed(int, int, char const*, int, char const*)'
c-family/c-common.o: In function `non_type_check(tree_node const*, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4069: undefined reference to `tree_not_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)'
c-family/c-gimplify.o: In function `gimple_bind_block':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gimple.h:2906: undefined reference to `gimple_check_failed(gimple_statement_d const*, char const*, int, char const*, gimple_code, tree_code)'
c-family/c-omp.o: In function `tree_operand_check_code(tree_node*, tree_code, int, char const*, int, char const*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4128: undefined reference to `tree_check_failed(tree_node const*, char const*, int, char const*, ...)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/tree.h:4130: undefined reference to `tree_operand_check_failed(int, tree_node const*, char const*, int, char const*)'
libbackend.a(gtype-desc.o): In function `gt_ggc_mx_rtx_def(void*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/gtype-desc.c:2090: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(gtype-desc.o): In function `gt_pch_nx_rtx_def(void*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/gtype-desc.c:5017: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(gtype-desc.o): In function `gt_pch_p_7rtx_def(void*, void*, void (*)(void*, void*), void*)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/gtype-desc.c:8331: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(i386.o): In function `gimple_call_set_lhs':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gimple.h:2134: undefined reference to `gimple_check_failed(gimple_statement_d const*, char const*, int, char const*, gimple_code, tree_code)'
libbackend.a(i386.o): In function `gimple_call_fn':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gimple.h:2190: undefined reference to `gimple_check_failed(gimple_statement_d const*, char const*, int, char const*, gimple_code, tree_code)'
libbackend.a(i386.o): In function `gimple_call_arg':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gimple.h:2331: undefined reference to `gimple_check_failed(gimple_statement_d const*, char const*, int, char const*, gimple_code, tree_code)'
libbackend.a(i386.o): In function `setup_incoming_varargs_64':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:7732: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:7770: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(i386.o): In function `setup_incoming_varargs_ms_64':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:7799: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(i386.o): In function `ix86_check_movabs(rtx_def*, int)':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:8287: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(i386.o): In function `ix86_emit_save_regs':
/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:9292: undefined reference to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)'
libbackend.a(i386.o):/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/config/i386/i386.c:9313: more undefined references to `rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*)' follow
collect2: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[3]: Leaving directory `/home/LUC/local/gcc-4.8.2/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/LUC/local/gcc-4.8.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/LUC/local/gcc-4.8.2'
make: *** [all] Error 2
在此之前,mpc mpfr gmc 都已安装
只是我的configure:
cd ..
cd gcc-4.8.2
$ ./configure --prefix=/home/LUC/bin --enable-threads=posix --enable-checking=release --disable-multilib --enable-languages=c,c++ --with-gmp=/home/LUC/local/gmp-4.3.2 --with-mpfr=/home/LUC//local/mpfr-2.4.2 --with-mpc=/home/LUC//local/mpc-0.8.1
谢谢 谢谢了啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP