LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Build fails for gcc 4.4.2 (http://www.linuxquestions.org/questions/linux-software-2/build-fails-for-gcc-4-4-2-a-912986/)

om_ji 11-11-2011 05:31 AM

Build fails for gcc 4.4.2
 
I've downloaded tar-ball for gcc 4.4.2 from gcc GNU mirror sites.
Configured and built as follows on :

<./configure ./configure --prefix=$HOME/install/dir/ --enable-languages=c++>
<make bootsrap>


I'm getting following error.
Any suggestions will be highly appreciated.

gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/usr/intel/pkgs/libgmp/4.3.0/include -I/usr/intel/pkgs/libgmp/4.3.0/include -I/usr/intel/pkgs/libmpfr/2.4.1/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -o build/gencondmd.o build/gencondmd.c
../.././gcc/config/i386/sse.md:11515: error: 'OPTION_ISA_AES' undeclared here (not in a function)
../.././gcc/config/i386/sse.md:11516: warning: missing initializer
../.././gcc/config/i386/sse.md:11516: warning: (near initialization for 'insn_conditions[0].value')
../.././gcc/config/i386/i386.md:2457: error: 'OPTION_ISA_64BIT' undeclared here (not in a function)
../.././gcc/config/i386/i386.md:2458: warning: missing initializer
../.././gcc/config/i386/i386.md:2458: warning: (near initialization for 'insn_conditions[1].value')
../.././gcc/config/i386/sse.md:4013: error: 'OPTION_ISA_SSE3' undeclared here (not in a function)
../.././gcc/config/i386/sse.md:4014: warning: missing initializer
../.././gcc/config/i386/sse.md:4014: warning: (near initialization for 'insn_conditions[4].value')
../.././gcc/config/i386/sse.md:205: error: 'OPTION_ISA_SSE' undeclared here (not in a function)
../.././gcc/config/i386/sse.md:208: warning: missing initializer
../.././gcc/config/i386/sse.md:208: warning: (near initialization for 'insn_conditions[7].value')
../.././gcc/config/i386/sse.md:591: error: 'OPTION_ISA_AVX' undeclared here (not in a function)
../.././gcc/config/i386/sse.md:593: warning: missing initializer
../.././gcc/config/i386/sse.md:593: warning: (near initialization for 'insn_conditions[8].value')
../.././gcc/config/i386/sse.md:343: warning: missing initializer
../.././gcc/config/i386/sse.md:343: warning: (near initialization for 'insn_conditions[9].value')
../.././gcc/config/i386/i386.md:4757: error: 'OPTION_ISA_SSE2' undeclared here (not in a function)
../.././gcc/config/i386/i386.md:4758: warning: missing initializer
../.././gcc/config/i386/i386.md:4758: warning: (near initialization for 'insn_conditions[10].value')
../.././gcc/config/i386/i386.md:7579: warning: missing initializer
../.././gcc/config/i386/i386.md:7579: warning: (near initialization for 'insn_conditions[11].value')
../.././gcc/config/i386/sse.md:10818: error: 'OPTION_ISA_SSE5' undeclared here (not in a function)
../.././gcc/config/i386/sse.md:10821: warning: missing initializer
../.././gcc/config/i386/sse.md:10821: warning: (near initialization for 'insn_conditions[12].value')
../.././gcc/config/i386/i386.md:18808: error: 'TARGET_USE_FANCY_MATH_387' undeclared here (not in a function)
../.././gcc/config/i386/i386.md:18811: error: 'flag_unsafe_math_optimizations' undeclared here (not in a function)
../.././gcc/config/i386/i386.md:18812: warning: missing initializer
../.././gcc/config/i386/i386.md:18812: warning: (near initialization for 'insn_conditions[13].value')
../.././gcc/config/i386/i386.md:5988: warning: missing initializer
../.././gcc/config/i386/i386.md:5988: warning: (near initialization for 'insn_conditions[15].value')
../.././gcc/config/i386/i386.md:16252: warning: missing initializer
../.././gcc/config/i386/i386.md:16252: warning: (near initialization for 'insn_conditions[16].value')
../.././gcc/config/i386/sse.md:5985: warning: missing initializer
../.././gcc/config/i386/sse.md:5985: warning: (near initialization for 'insn_conditions[17].value')
../.././gcc/config/i386/mmx.md:715: error: 'OPTION_ISA_MMX' undeclared here (not in a function)
../.././gcc/config/i386/mmx.md:717: warning: missing initializer
../.././gcc/config/i386/mmx.md:717: warning: (near initialization for 'insn_conditions[18].value')

knudfl 11-11-2011 02:15 PM

GCC : A build directory outside the gcc-4.4.2/ source folder is required.
And : gmp , mpfr , mpc unpacked into gcc-4.4.2/.

Your configure line will be like :
../gcc-4.4.2/configure --prefix=$HOME/install/dir/ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs

http://www.linuxquestions.org/questi...-1-a-842567/#2

.


All times are GMT -5. The time now is 09:31 AM.