LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-11-2011, 06:31 AM   #1
om_ji
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
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')
 
Old 11-11-2011, 03:15 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
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

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc-4.4.3 make error - failed to build gcc-4.4.3--please help aayu09 Fedora 4 03-05-2010 10:20 AM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 09:47 AM
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 05:29 AM
help: failed build of GCC 4.3 on SLES 10/gcc 4.1 ia64 ron7000 Programming 6 05-28-2008 12:24 AM
kernel build from gcc 3.3.2 to gcc 3.4.1 alcarbone Linux - Software 1 09-13-2004 09:19 AM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration