LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-29-2011, 04:08 PM   #1
zoya2385
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Errors when installing gcc 4.7


Hello,

I use ubunto 10.04, by default the version of gcc is 4.4.3.
I need to upgrade it to the version 4.7.
So, i install the following software :

gmp 4.3.2
mpfr 2.3.2
mpc 0.9
bison 2.4
flex 2.5.35

I download gcc 4.7 from the following link :

http://gcc.gnu.org/git/?p=gcc.git;a=...9581074;sf=tgz

I execute this commands :

./configure --with-gmp=FOLDER --with-mpfr=FOLDET --with-mpc=FOLDER
make

*FOLDER means the path of gmp, mpfr and mpc install folder

I have errors when executing make :

configure:3560: /home/amina/Bureau/logiciels/gcc-4.7-20110709/host-i686-pc-linux-gnu/gcc/xgcc -B/home/amina/Bureau/logiciels/gcc-4.7-20110709/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
....
configure:3734: /home/amina/Bureau/logiciels/gcc-4.7-20110709/host-i686-pc-linux-gnu/gcc/xgcc -B/home/amina/Bureau/logiciels/gcc-4.7-20110709/host-i686-pc-linux-gnu/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -c -g -O2 conftest.c >&5
conftest.c:9:6: error: fixed-point types not supported for this target

Have you a fix for this ?

May be, i didn't know how to install it.

Thank you,
 
Old 10-30-2011, 02:37 PM   #2
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
make sure you have glibc-devel and linux-kernel-headers

but the bottom line is that that configure error is correct and expected
and isn't your real problem if you have one i don't think
 
Old 10-30-2011, 02:56 PM   #3
zoya2385
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hello,

The problem is fixed by executing the command ldconfig.

Now i have others errors :

configure:4969: gcc -c conftest.c >&5
conftest.c:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:4969: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "the Parma Polyhedra Library"
| #define PACKAGE_TARNAME "ppl"
| #define PACKAGE_VERSION "0.11.2"
| #define PACKAGE_STRING "the Parma Polyhedra Library 0.11.2"
| #define PACKAGE_BUGREPORT "ppl-devel@cs.unipr.it"
| #define PACKAGE_URL ""
| #define PPL_CONFIGURE_OPTIONS ""
| /* end confdefs.h. */
|
| #ifndef __INTEL_COMPILER
| choke me
| #endif
|
configure:4974: result: no

....

configure:5394: g++ -c conftest.cpp >&5
conftest.cpp:12: error: 'choke' does not name a type
configure:5394: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "the Parma Polyhedra Library"
| #define PACKAGE_TARNAME "ppl"
| #define PACKAGE_VERSION "0.11.2"
| #define PACKAGE_STRING "the Parma Polyhedra Library 0.11.2"
| #define PACKAGE_BUGREPORT "ppl-devel@cs.unipr.it"
| #define PACKAGE_URL ""
| #define PPL_CONFIGURE_OPTIONS ""
| /* end confdefs.h. */
|
| #ifndef __INTEL_COMPILER
| choke me
| #endif

Have you any idea for this problem ?

Thank you in advance.
 
Old 10-30-2011, 09:34 PM   #4
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
again i don't think this config.log output is the or a problem
"choke me" in the conftest.c file is just a joke

what's actually happening with the configure?
 
  


Reply



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
[SOLVED] errors when installing gcc 4.2.4 zoya2385 Linux - Software 11 10-29-2011 03:53 PM
[SOLVED] Installing gcc 3.2 make errors mukund91 Linux - Newbie 4 06-03-2011 12:35 PM
Installing gcc 3.2 make errors mukund91 Linux Mint 1 06-02-2011 06:32 AM
Errors installing gcc on RHEL 4 Isuru Divarathne Linux - Software 3 10-22-2009 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

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
Open Source Consulting | Domain Registration