On my mac I need a certain version of the GCC other than the one that
comes with XCode. Therefore I decided to compile a version for my mac. I
downloaded mpfr and gmp and compiled those in order to get the
compilation process for the gcc running. After that I did the following:
./configure --prefix=/Users/toom/gcc4.3.5/
--with-mpfr=/Users/toom/gcc4.3.5/requiredLibs/mpfr-3.0.0/
--with-gmp=/Users/toom/gcc4.3.5/requiredLibs/gmp-5.0.1/
Configure runs through without any problems so typed
make
After a while I get the following error message:
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
I had a look at config.log but I do not know what to look for. So I
search the file for the word error and found the following logs
...
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'me'
...
conftest.cc:13: error: 'exit' was not declared in this scope
...
conftest.cc:9: error: 'void std::exit(int)' should have been declared
inside 'std'
...
/usr/include/stdlib.h:159: error: declaration of 'void std::exit(int)'
throws different exceptions
...
conftest.cc:9: error: 'void std::exit(int)' should have been declared
inside 'std'
...
/usr/include/stdlib.h:159: error: declaration of 'void exit(int)' throws
different exceptions
conftest.cc:9: error: from previous declaration 'void exit(int) throw ()'
I'm not shure if these line represent the reason for the failing of
compilation. Has anyone an idea what might go wrong here?