Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22150

Building gcc 8.3 [Makefile:955: all] Error 2

$
0
0

I've been trying to build a specific version of GCC (8.3.0) on a new Ubuntu 20.04 machine. However, when I follow the steps at the following link: https://gcc.gnu.org/wiki/InstallingGCC I run into a Makefile error.

Steps:

wget https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xztar xf gcc-8.3.0.tar.xzcd gcc-8.3.0./contrib/download_prerequisitescd .. ; mkdir build ; cd build../gcc-8.3.0/configure --prefix=/opt/gcc-8.3 --enable-languages=c,c++,fortran --disable-multilib

Config output:

checking build system type... x86_64-pc-linux-gnuchecking host system type... x86_64-pc-linux-gnuchecking target system type... x86_64-pc-linux-gnuchecking for a BSD-compatible install... /usr/bin/install -cchecking whether ln works... yeschecking whether ln -s works... yeschecking for a sed that does not truncate output... /usr/bin/sedchecking for gawk... nochecking for mawk... mawkchecking for libatomic support... yeschecking for libitm support... yeschecking for libsanitizer support... yeschecking for libvtv support... yeschecking for libmpx support... yeschecking for libhsail-rt support... yeschecking for gcc... gcc-7checking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc-7 accepts -g... yeschecking for gcc-7 option to accept ISO C89... none neededchecking whether we are using the GNU C++ compiler... yeschecking whether g++-7 accepts -g... yeschecking whether g++ accepts -static-libstdc++ -static-libgcc... yeschecking for gnatbind... nochecking for gnatmake... nochecking whether compiler driver understands Ada... nochecking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2checking for objdir... .libsconfigure: WARNING: using in-tree isl, disabling version check*** This configuration is not supported in the following subdirectories:     gnattools gotools target-libada target-libhsail-rt target-libgo target-libffi target-libobjc target-liboffloadmic    (Any other directories should still work fine.)checking for default BUILD_CONFIG... bootstrap-debugchecking for --enable-vtable-verify... nochecking for bison... nochecking for byacc... nochecking for yacc... nochecking for bison... nochecking for gm4... nochecking for gnum4... nochecking for m4... nochecking for flex... nochecking for lex... nochecking for flex... nochecking for makeinfo... no/home/ubuntu/gcc-8.3.0/missing: 81: makeinfo: not foundchecking for expect... expectchecking for runtest... nochecking for ar... archecking for as... aschecking for dlltool... nochecking for ld... ldchecking for lipo... nochecking for nm... nmchecking for ranlib... ranlibchecking for strip... stripchecking for windres... nochecking for windmc... nochecking for objcopy... objcopychecking for objdump... objdumpchecking for readelf... readelfchecking for cc... ccchecking for c++... c++checking for gcc... gccchecking for gfortran... nochecking for gccgo... nochecking for ar... nochecking for ar... archecking for as... nochecking for as... aschecking for dlltool... nochecking for dlltool... nochecking for ld... nochecking for ld... ldchecking for lipo... nochecking for lipo... nochecking for nm... nochecking for nm... nmchecking for objcopy... nochecking for objcopy... objcopychecking for objdump... nochecking for objdump... objdumpchecking for ranlib... nochecking for ranlib... ranlibchecking for readelf... nochecking for readelf... readelfchecking for strip... nochecking for strip... stripchecking for windres... nochecking for windres... nochecking for windmc... nochecking for windmc... nochecking where to find the target ar... host toolchecking where to find the target as... host toolchecking where to find the target cc... just compiledchecking where to find the target c++... just compiledchecking where to find the target c++ for libstdc++... just compiledchecking where to find the target dlltool... host toolchecking where to find the target gcc... just compiledchecking where to find the target gfortran... just compiledchecking where to find the target gccgo... host toolchecking where to find the target ld... host toolchecking where to find the target lipo... host toolchecking where to find the target nm... host toolchecking where to find the target objcopy... host toolchecking where to find the target objdump... host toolchecking where to find the target ranlib... host toolchecking where to find the target readelf... host toolchecking where to find the target strip... host toolchecking where to find the target windres... host toolchecking where to find the target windmc... host toolchecking whether to enable maintainer-specific portions of Makefiles... noconfigure: creating ./config.statusconfig.status: creating Makefile

Then finally, using make -j 8, and sifting through the enormous output, I get the following error:

make -j8.../bin/bash ./libtool --tag=CC   --mode=compile /home/ubuntu/build/./gcc/xgcc -B/home/ubuntu/build/./gcc/ -B/opt/gcc-8.3/x86_64-pc-linux-gnu/bin/ -B/opt/gcc-8.3/x86_64-pc-linux-gnu/lib/ -isystem /opt/gcc-8.3/x86_64-pc-linux-gnu/include -isystem /opt/gcc-8.3/x86_64-pc-linux-gnu/sys-include    -DHAVE_CONFIG_H -I../../../gcc-8.3.0/libatomic/config/x86 -I../../../gcc-8.3.0/libatomic/config/posix -I../../../gcc-8.3.0/libatomic -I.    -Wall -Werror   -pthread -g -O2 -MT fior_8_.lo -MD -MP -MF .deps/fior_8_.lo.Ppo -DN=8  -c -o fior_8_.lo ../../../gcc-8.3.0/libatomic/fior_n.cIn file included from ../../../../gcc-8.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:193:../../../../gcc-8.3.0/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:317:72: error: size of array 'assertion_failed__1152' is negative     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]                                                                        ^...make: *** [Makefile:955: all] Error 2

Any ideas? I've also tried configuring with CC=gcc-7 and CXX=g++-7 enviro variables and received the same result (it still uses xgcc). This seems to be an error with the cross compiler xgcc.


Viewing all articles
Browse latest Browse all 22150

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>