GCC 5.3在制造阶段失败

时间:2017-01-18 11:01:37

标签: linux gcc install ubuntu-16.04

目前我的Ubuntu 16.04.4机器上安装了GCC 5.4.0-6。但是nvcc要我使用5.3,所以我也试图安装该版本。我是这样做的:
1.下载gcc-5.3.0.tar.gz
2.将其提取到~/Documents/libraryDownloads/GCC-5/gcc-5.3.0
3.创建文件夹~/Documents/libraryDownloads/GCC-5/gcc-build
4.在~/Documents/libraryDownloads/GCC-5/gcc-5.3.0中,我使用了./contrib/download_prerequisites命令 5.在~/Documents/libraryDownloads/GCC-5/gcc-build中,我使用了./../gcc-5.3.0/configure --enable-multilib命令 6.最后在~/Documents/libraryDownloads/GCC-5/gcc-build我使用了命令make

make-process rand一会儿,然后以下列错误结束:

checking whether the gcc  -m32 linker (ld -m elf_x86_64 -m elf_i386) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Makefile:10699: recipe for target 'configure-stage1-zlib' failed
make[2]: *** [configure-stage1-zlib] Error 1
make[2]: Leaving directory '/home/myUser/Documents/libraryDownloads/GCC-5/gcc-build'
Makefile:22461: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/myUser/Documents/libraryDownloads/GCC-5/gcc-build'
Makefile:902: recipe for target 'all' failed
make: *** [all] Error 2

据我所知,我已经安装了所有先决条件,并且我在建议的单独构建文件夹中执行所有这些操作。我尝试搜索error: Link tests are not allowed after GCC_NO_EXECUTABLES.,但我找不到有类似问题的人。有谁知道这个错误的原因是什么?

0 个答案:

没有答案