在Debian Jessie 8中从零开始构建GCC 7.1

时间:2018-10-17 09:57:22

标签: linux gcc debian debian-jessie

我正在尝试从头开始构建gcc 7.1.0,以避免针对本https://wiki.ubuntu.com/SecurityTeam/PIE问题的默认--enable-default-pie没有它的情况下进行构建。我已经有了gcc-8.2.0的版本,但是启用了默认的pie,当我尝试构建时,config.log中出现错误。我正在粘贴config.log文件。

configure:4314: $? = 0
 configure:4303: gcc -V >&5
 gcc: error: unrecognized command line option '-V'
 gcc: fatal error: no input files
 compilation terminated.
 configure:4314: $? = 1
 configure:4303: gcc -qversion >&5
 gcc: error: unrecognized command line option '-qversion'; did you mean '-- 
 version'?
gcc: fatal error: no input files
compilation terminated.

configure:4314: $? = 1
configure:4334: checking for C compiler default output file name
configure:4356: gcc -fPIC  -shared conftest.c  >&5
configure:4360: $? = 0

configure:4413: checking whether the C compiler works
configure:4422: ./a.out

../configure: line 4424: 23730 Segmentation fault      ./$ac_file

configure:4426: $? = 139 configure:4433: error: in `/home/admin/gcc-7.1.0/build'

configure:4437: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

0 个答案:

没有答案