[Solved] Problems building GCC from source
Posted: Sat Dec 29, 2018 11:08 am
Hello,
(I hope this is the right place to ask this question)
I am trying to build GCC as a native system C/C++ compiler from source.
For some reason I'm facing errors that don't give very much information about what I'm doing wrong.
My system is Debian Stretch.
The GCC version I'm trying to build is 6.4.0.
The source is contained in ~/opt/gcc-6.4.0
The output is to be placed in ~/opt/build-gcc
What I have done so far:
1. Excexuted in source directory.
2. Switched to "build-gcc"
3. Configured GCC like that:
After that, running "make" inside of "build-gcc" aborts like this:
I'm stucked at this point. What am I doing wrong?
(I hope this is the right place to ask this question)
I am trying to build GCC as a native system C/C++ compiler from source.
For some reason I'm facing errors that don't give very much information about what I'm doing wrong.
My system is Debian Stretch.
The GCC version I'm trying to build is 6.4.0.
The source is contained in ~/opt/gcc-6.4.0
The output is to be placed in ~/opt/build-gcc
What I have done so far:
1. Excexuted
Code: Select all
contrib/download_prerequisites
2. Switched to "build-gcc"
3. Configured GCC like that:
Code: Select all
../gcc-6.4.0/configure \
--prefix=$HOME/opt/gcc-6.4.0/ \
--enable-languages=c,c++ \
--disable-nls \
--disable-werror \
--with-gmp \
--enable-multilib
Code: Select all
make[2]: Leaving directory '/home/userid/opt/build-gcc'
Makefile:23999: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/userid/opt/build-gcc'
Makefile:921: recipe for target 'all' failed
make: *** [all] Error 2