安装gcc5.3问题

druidCoder 2016-01-21 02:42:20
编译时出错,关键不知道哪错了,编译在楼下
是在新建的目录下编译的,
然后configure,查看config.log发现了这个错误:
g++: unrecognized option '-static-libstdc++'
conftest.cpp:11:2: error: #error -static-libstdc++ not implemented

isl装了:/usr/local/lib/libisl.so
/usr/local/lib/libisl.so.13
/usr/local/lib/libisl.so.13.1.0
/usr/local/lib/libisl.so.13.1.0-gdb.py

mpc装了:/usr/local/lib/libmpc.so
/usr/local/lib/libmpc.so.2
/usr/local/lib/libmpc.so.2.0.0

mpfr装了:/usr/lib64/libmpfr.so.1
/usr/lib64/libmpfr.so.1.2.0
/usr/local/lib/libmpfr.so
/usr/local/lib/libmpfr.so.1
/usr/local/lib/libmpfr.so.1.2.2

gmp装了:/usr/lib64/libgmp.so.3
/usr/lib64/libgmp.so.3.5.0
/usr/lib64/openssl/engines/libgmp.so
/usr/local/lib/libgmp.so
/usr/local/lib/libgmp.so.3
/usr/local/lib/libgmp.so.3.5.2


...全文
975 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_25472061 2016-02-01
  • 打赏
  • 举报
回复
u0_a100@lte26007:/ $ cd /data/local
u0_a100@lte26007:/data/local $ cd src
u0_a100@lte26007:/data/local/src $ cd *3.0
/system/bin/sh: cd: /data/local/src/*3.0: No such file or directory
2|u0_a100@lte26007:/data/local/src $ ls
gcc-5.2.0
gcc-5.3.0待处理
u0_a100@lte26007:/data/local/src $ cd *理
u0_a100@lte26007:/data/local/src/gcc-5.3.0待处理 $ make
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/data/local/src/gcc-5.3.0待处理'
make[2]: Entering directory '/data/local/src/gcc-5.3.0待处理'
make[3]: Entering directory '/data/local/src/gcc-5.3.0待处理'
rm -f stage_current
make[3]: Leaving directory '/data/local/src/gcc-5.3.0待处理'
make[2]: Leaving directory '/data/local/src/gcc-5.3.0待处理'
make[2]: Entering directory '/data/local/src/gcc-5.3.0待处理'
Configuring stage 1 in host-armv7l-unknown-linux-gnueabi/intl
configure: loading cache ./config.cache
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /system/sbin/install -c
checking whether NLS is requested... yes
Bad mode
checking for msgfmt... (cached) no
checking for gmsgfmt... (cached) :
Bad mode
checking for xgettext... (cached) no
Bad mode
checking for msgmerge... (cached) no
checking for armv7l-unknown-linux-gnueabi-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking build system type... (cached) armv7l-unknown-linux-gnueabi
checking host system type... (cached) armv7l-unknown-linux-gnueabi
checking for armv7l-unknown-linux-gnueabi-ranlib... (cached) ranlib
checking for library containing strerror... (cached) none required
checking how to run the C preprocessor... (cached) gcc -E
checking for grep that handles long lines and -e... (cached) /system/bin/grep
checking for egrep... (cached) /system/bin/grep -E
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) no
checking for working mmap... (cached) yes
checking whether we are using the GNU C Library 2.1 or newer... (cached) no
checking whether integer division by zero raises SIGFPE... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unsigned long long... (cached) yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... (cached) no
checking for ld used by GCC... (cached) /data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/5.2.0/../../../../arm-linux-androideabi/bin/ld
checking if the linker (/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/5.2.0/../../../../arm-linux-androideabi/bin/ld) is GNU ld... (cached) yes
checking for shared library run path origin... (cached) done
checking for argz.h... (cached) no
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) no
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... (cached) no
checking for fgets_unlocked... (cached) no
checking for getc_unlocked... (cached) yes
checking for getcwd... (cached) yes
checking for getegid... (cached) yes
checking for geteuid... (cached) yes
checking for getgid... (cached) yes
checking for getuid... (cached) yes
checking for mempcpy... (cached) no
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for stpcpy... (cached) no
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... (cached) no
checking for __argz_count... (cached) no
checking for __argz_stringify... (cached) no
checking for __argz_next... (cached) no
checking for __fsetlocking... (cached) no
checking for iconv... (cached) no, consider installing GNU libiconv
checking for nl_langinfo and CODESET... (cached) no
checking for LC_MESSAGES... (cached) yes
checking for bison... no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... (cached) no
checking for GNU gettext in libintl... (cached) no
checking whether to use NLS... yes
checking where the gettext function comes from... included intl directory
checking for aclocal... no
checking for autoconf... no
checking for autoheader... no
configure: creating ./config.status
Bad mode
configure: error: write failure creating ./config.status
Makefile:5787: recipe for target 'configure-stage1-intl' failed
make[2]: *** [configure-stage1-intl] Error 1
make[2]: Leaving directory '/data/local/src/gcc-5.3.0待处理'
Makefile:21764: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/data/local/src/gcc-5.3.0待处理'
Makefile:900: recipe for target 'all' failed
make: *** [all] Error 2
2|u0_a100@lte26007:/data/local/src/gcc-5.3.0待处理 $
这是什么错误啊 建立./config.status错误 明明存在的 执行./configure就有了
druidCoder 2016-01-21
  • 打赏
  • 举报
回复
引用 3 楼 q3733353520 的回复:
http://blog.csdn.net/joshuaxx316/article/details/45629539
首先 5.3 不需要自己下载那几个库,源码里有,而且在config.log里面也没提示缺少什么。 只有这个错误g++: unrecognized option '-static-libstdc++' conftest.cpp:11:2: error: #error -static-libstdc++ not implemented
  • 打赏
  • 举报
回复
http://blog.csdn.net/joshuaxx316/article/details/45629539
druidCoder 2016-01-21
  • 打赏
  • 举报
回复
/bin/grep -E checking for ANSI C header files... checking whether we are cross compiling... no checking for suffix of executables... checking for memory.h... checking for gawk... gawk checking whether make sets $(MAKE)... yes configure: error: source directory already configured; run "make distclean" there first yes checking for suffix of object files... checking for strings.h... make[2]: *** [configure-stage1-gmp] 错误 1 make[2]: *** 正在等待未完成的任务....
druidCoder 2016-01-21
  • 打赏
  • 举报
回复
checking for getpagesize... (cached) yes checking for working mmap... yes checking for working strncmp... yes configure: updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: executing default commands make[2]: Leaving directory `/root/gcc-5.3.0/build' make[1]: *** [stage1-bubble] 错误 2 make[1]: Leaving directory `/root/gcc-5.3.0/build' make: *** [all] 错误 2

19,619

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧