Error creating and compiling GCC 5.2.0 from scratch on Vortex86DX

To update the custom linux VortexDX86 using the compiler gcc 3.2.3, I am trying to create a GCC 5.2.0 compiler to support the latest C ++ 11 standard.

I downloaded its source code from gcc.gnu.org and made a standard linux package builder based on this link .

$ mkdir ../gcc-build
$ cd    ../gcc-build
$ ../gcc-5.2.0/configure --prefix=/usr --disable-multilib --with-system-zlib --enable-languages=c,c++

The configuration is working fine. I do:

$ make

And I get the following error:

    make[3]: Entering directory `/home/ftp/pub/gcc-5.2.0/host-i586-pc-linux-gnu/gcc'
g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include  -I../.././gcc/../libcpp/include  \
    -o build/genmddeps.o ../.././gcc/genmddeps.c
cc1plus: warning: -Wmissing-format-attribute ignored without -Wformat
In file included from ../../gcc/genmddeps.c:19:
../../gcc/system.h:201:19: string: No such file or directory
../../gcc/system.h:218:22: algorithm: No such file or directory
../../gcc/system.h:219:20: cstring: No such file or directory
../../gcc/system.h:220:20: utility: No such file or directory
../../gcc/system.h:249:19: cstdlib: No such file or directory
make[3]: *** [build/genmddeps.o] Error 1
make[3]: Leaving directory `/home/ftp/pub/gcc-5.2.0/host-i586-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/ftp/pub/gcc-5.2.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/ftp/pub/gcc-5.2.0'
make: *** [all] Error 2

After this, the procedure makeis interrupted. I installed all the dependencies ( tcl, expect, dejagnu, perl, m4, gmp, mpfrand mpc), and I do not know what is missing.

As said, the original Vortex linux has a gcc 3.2.3compiler version .

, , . gcc....

.

+1
2

++ GCC, , , ( GCC 3.2.3, , ++).

GCC 4.7.4 ( C), ++. GCC 4.7.4 GCC 5.2

0

Bad. ... , ...

, , gcc

GCC-5.2.0 Ubuntu.

1)

mkdir $HOME/gcc-5.2.0

2)

cd gcc-5.2.0/

3)

sudo apt-get install libmpfr-dev libgmp3-dev libmpc-dev flex bison gcc-multilib texinfo

4)

wget http://ftp.gnu.org/gnu/gcc/gcc-5.2.0/gcc-5.2.0.tar.gz

5)

tar -xzvf gcc-5.2.0.tar.gz

6)

cd gcc-5.2.0/

7)

mkdir build

8)

cd build/

9)

../configure --enable-multilib --disable-checking --enable-languages=c,c++ \
  --enable-multiarch --enable-shared --enable-threads=posix \
  --program-suffix=5.2 --with-gmp=/usr/local/lib --with-mpc=/usr/lib \
  --with-mpfr=/usr/lib --without-included-gettext --with-system-zlib \
  --with-tune=generic \
  --prefix=$HOME/install/gcc-5.2.0

10)

make -j4

11)

make install
-1

Source: https://habr.com/ru/post/1654575/


All Articles