Installation of gcc 4.3.0 on AIX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

I am trying to install gcc 4.3.0 on an AIX 5.3 machine and have troubles. I installed GMP 4.2 and MFPR 2.3.1, but when I try to run configure, I get errors. Please see below:

 ./configure --prefix=/usr/local --with-gmp=/usr/local --with-mpfr=/usr/local --enable-languages=c,c++,fortran,java


The error :

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.

Checking config.log

configure:3630: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3636: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

configure:4082: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:4088: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4037: g++ -c -g -O2  conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
In file included from conftest.cc:10:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/stdlib.h:268: error: declaration of 'void std::exit(int)' throws different exceptions
conftest.cc:9: error: from previous declaration 'void std::exit(int) throw ()'
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| extern "C" void std::exit (int) throw (); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4037: g++ -c -g -O2  conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| extern "C" void std::exit (int); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4037: g++ -c -g -O2  conftest.cc >&5
In file included from conftest.cc:10:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/stdlib.h:268: error: declaration of 'void exit(int)' throws different exceptions
conftest.cc:9: error: from previous declaration 'void exit(int) throw ()'
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| extern "C" void exit (int) throw ();
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:4542: checking for correct version of mpfr.h
configure:4573: gcc -o conftest -g -O2 -I/usr/local/include -I/usr/local/include   conftest.c  -L/usr/local/lib -L/usr/local/lib -lmpfr -lgmp >&5
ld: 0711-317 ERROR: Undefined symbol: .mpfr_init
ld: 0711-317 ERROR: Undefined symbol: .mpfr_atan2
ld: 0711-317 ERROR: Undefined symbol: .mpfr_erfc
ld: 0711-317 ERROR: Undefined symbol: .mpfr_subnormalize
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
configure:4579: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C" void exit (int);
| #endif
| /* end confdefs.h.  */
| #include <gmp.h>
|     #include <mpfr.h>
| int
| main ()
| {
||
|     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
|     choke me
|     #endif
|     mpfr_t n;
|     mpfr_t x;
|     int t;
|     mpfr_init (n);
|     mpfr_init (x);
|     mpfr_atan2 (n, n, x, GMP_RNDN);
|     mpfr_erfc (n, x, GMP_RNDN);
|     mpfr_subnormalize (x, t, GMP_RNDN);
|
|   ;
|   return 0;
| }
configure:4652: result: no
configure:4662: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.


Your help and advice will be greatly appreciated. Apologizes for the huge mail.

With Regards

Vardhan



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux