免费注册 查看新帖 |

Chinaunix

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

Ubuntu10.04 安装MPC-0.8.1报错,各位高手快来帮帮吧~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-20 11:52 |只看该作者 |倒序浏览
本帖最后由 wang_nets 于 2011-09-20 11:56 编辑

想要手动编译GCC,根据网上查的资料,安装到MPC的时候报错,之前在Fedora12上也试过很顺利,不知道Ubuntu问什么就报错了,google也找不到合适的解决办法。

  1. root@wangshuo-desktop:~/mpc-build# ../mpc-0.8.1/configure --prefix=/usr/local/mpc-0.8.1 --with-gmp=/usr/local/gmp-5.0.2 --with-mpfr=/usr/local/mpfr-3.0.1
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for a thread-safe mkdir -p... /bin/mkdir -p
  5. checking for gawk... gawk
  6. checking whether make sets $(MAKE)... yes
  7. checking whether to enable maintainer-specific portions of Makefiles... no
  8. checking build system type... i686-pc-linux-gnu
  9. checking host system type... i686-pc-linux-gnu
  10. checking for gcc... gcc
  11. checking for C compiler default output file name... a.out
  12. checking whether the C compiler works... yes
  13. checking whether we are cross compiling... no
  14. checking for suffix of executables...
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ISO C89... none needed
  19. checking for style of include used by make... GNU
  20. checking dependency style of gcc... gcc3
  21. checking how to run the C preprocessor... gcc -E
  22. checking for grep that handles long lines and -e... /bin/grep
  23. checking for egrep... /bin/grep -E
  24. checking for a sed that does not truncate output... /bin/sed
  25. checking for CC and CFLAGS in gmp.h... yes CC=gcc -std=gnu99 CFLAGS=-m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4 -march=pentium4
  26. checking for CC=gcc -std=gnu99 and CFLAGS=-m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4 -march=pentium4... yes
  27. checking for a sed that does not truncate output... (cached) /bin/sed
  28. checking for fgrep... /bin/grep -F
  29. checking for ld used by gcc -std=gnu99... /usr/bin/ld
  30. checking if the linker (/usr/bin/ld) is GNU ld... yes
  31. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  32. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  33. checking whether ln -s works... yes
  34. checking the maximum length of command line arguments... 1572864
  35. checking whether the shell understands some XSI constructs... yes
  36. checking whether the shell understands "+="... yes
  37. checking for /usr/bin/ld option to reload object files... -r
  38. checking for objdump... objdump
  39. checking how to recognize dependent libraries... pass_all
  40. checking for ar... ar
  41. checking for strip... strip
  42. checking for ranlib... ranlib
  43. checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
  44. checking for ANSI C header files... yes
  45. checking for sys/types.h... yes
  46. checking for sys/stat.h... yes
  47. checking for stdlib.h... yes
  48. checking for string.h... yes
  49. checking for memory.h... yes
  50. checking for strings.h... yes
  51. checking for inttypes.h... yes
  52. checking for stdint.h... yes
  53. checking for unistd.h... yes
  54. checking for dlfcn.h... yes
  55. checking for objdir... .libs
  56. checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
  57. checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
  58. checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
  59. checking if gcc -std=gnu99 static flag -static works... yes
  60. checking if gcc -std=gnu99 supports -c -o file.o... yes
  61. checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
  62. checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
  63. checking whether -lc should be explicitly linked in... no
  64. checking dynamic linker characteristics... GNU/Linux ld.so
  65. checking how to hardcode library paths into programs... immediate
  66. checking whether stripping libraries is possible... yes
  67. checking if libtool supports shared libraries... yes
  68. checking whether to build shared libraries... yes
  69. checking whether to build static libraries... yes
  70. checking for __gmpz_init in -lgmp... yes
  71. checking for MPFR... yes
  72. checking for recent GMP... yes
  73. checking for recent MPFR... yes
  74. checking for ANSI C header files... (cached) yes
  75. checking locale.h usability... yes
  76. checking locale.h presence... yes
  77. checking for locale.h... yes
  78. checking for inttypes.h... (cached) yes
  79. checking limits.h usability... yes
  80. checking limits.h presence... yes
  81. checking for limits.h... yes
  82. checking for unistd.h... (cached) yes
  83. checking sys/time.h usability... yes
  84. checking sys/time.h presence... yes
  85. checking for sys/time.h... yes
  86. checking for an ANSI C-conforming const... yes
  87. checking for size_t... yes
  88. checking whether time.h and sys/time.h may both be included... yes
  89. checking for gettimeofday... yes
  90. checking for localeconv... yes
  91. checking for setlocale... yes
  92. checking for dup... yes
  93. checking for dup2... yes
  94. checking for fileno... yes
  95. configure: creating ./config.status
  96. config.status: creating Makefile
  97. config.status: creating src/Makefile
  98. config.status: creating tests/Makefile
  99. config.status: creating doc/Makefile
  100. config.status: creating config.h
  101. config.status: config.h is unchanged
  102. config.status: executing depfiles commands
  103. config.status: executing libtool commands
复制代码

论坛徽章:
0
2 [报告]
发表于 2011-09-20 11:56 |只看该作者


  1. root@wangshuo-desktop:~/mpc-build# make
  2. make  all-recursive
  3. make[1]: Entering directory `/root/mpc-build'
  4. Making all in src
  5. make[2]: Entering directory `/root/mpc-build/src'
  6. /bin/bash ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpc-0.8.1/src -I..   -I/usr/local/gmp-5.0.2/include -I/usr/local/mpfr-3.0.1/include   -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c -o acos.lo ../../mpc-0.8.1/src/acos.c
  7. libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpc-0.8.1/src -I.. -I/usr/local/gmp-5.0.2/include -I/usr/local/mpfr-3.0.1/include -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c ../../mpc-0.8.1/src/acos.c  -fPIC -DPIC -o .libs/acos.o
  8. ../../mpc-0.8.1/src/acos.c: In function mpc_acos:
  9. ../../mpc-0.8.1/src/acos.c:192: error: GMP_RNDA undeclared (first use in this function)
  10. ../../mpc-0.8.1/src/acos.c:192: error: (Each undeclared identifier is reported only once
  11. ../../mpc-0.8.1/src/acos.c:192: error: for each function it appears in.)
  12. make[2]: *** [acos.lo] Error 1
  13. make[2]: Leaving directory `/root/mpc-build/src'
  14. make[1]: *** [all-recursive] Error 1
  15. make[1]: Leaving directory `/root/mpc-build'
  16. make: *** [all] Error 2
复制代码

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2011-09-20 13:53 |只看该作者
用最新版本的mpc-0.9 试试。

论坛徽章:
0
4 [报告]
发表于 2011-09-20 16:17 |只看该作者
用最新版本的mpc-0.9 试试。
dooros 发表于 2011-09-20 13:53

汗~  0.9没有问题,谢谢LS了~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP