As of now, my archlinux system require current version of gcc (8.3) along with gcc 7.2 and gcc 5.5 (in some other path).
I am trying to compile the source code as below:
$ ./contrib/download-prerequisites
In build dir:
$ ../gcc-5.5.0/configure --prefix=/home/mjonyh/bin/gcc/5.5.0 --disable-multilib --enable-languages=c,c++,fortran
than found the error
sys/ustat.h: no such file or directory
Already installed: binutils gcc-libs libmpc gcc-ada libmpc dejagnu inetutils lib32-gcc-libs doxygen gcc-ada lib32-glibc
Update: I resolve the problem by manually comment out the ustat.h in gcc-x.x.x/libsanitizer/sanitizer-common/sanitizer-platform-limits-posix.cc (line number 157 and 250). Because archlinux deprecated the ustat.h in glibc.
make
to report an error. There should be an error message further back showing directly what failed.make
, notconfigure
, and you didn't show us themake
command. Runningmake
is going to produce a lot of output, including error messages. Save that output to a file, and then look for error messages in that file.make
) in your question. On my system, that file is provided by thelibc6-dev
package. The name might be different on Arch Linux.