LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errors when installing gcc 4.7 (https://www.linuxquestions.org/questions/linux-software-2/errors-when-installing-gcc-4-7-a-910850/)

zoya2385 10-29-2011 04:08 PM

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,

gary185 10-30-2011 02:37 PM

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

zoya2385 10-30-2011 02:56 PM

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.

gary185 10-30-2011 09:34 PM

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?


All times are GMT -5. The time now is 09:42 PM.