From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28990 invoked by alias); 15 Jul 2008 11:10:13 -0000 Received: (qmail 28977 invoked by uid 22791); 15 Jul 2008 11:10:11 -0000 X-Spam-Check-By: sourceware.org Received: from Ext-cn0ut-8.online-age.net (HELO ext-cn0ut-8.online-age.net) (63.210.253.238) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Jul 2008 11:09:45 +0000 Received: from int-cn0ut-5.online-age.net (int-cn0ut-5.online-age.net [3.159.252.74]) by ext-cn0ut-8.online-age.net (8.13.6/8.13.6/20051114-SVVS-TLS-DNSBL) with ESMTP id m6FB9hXS025213 for ; Tue, 15 Jul 2008 07:09:43 -0400 Received: from cinmlef12.e2k.ad.ge.com (int-cn0ut-5.online-age.net [3.159.252.74]) by int-cn0ut-5.online-age.net (8.13.6/8.13.6/20050510-SVVS) with ESMTP id m6FB9hDW032355 for ; Tue, 15 Jul 2008 07:09:43 -0400 Received: from ALPMLVEM08.e2k.ad.ge.com ([3.159.17.71]) by cinmlef12.e2k.ad.ge.com with Microsoft SMTPSVC(6.0.3790.2499); Tue, 15 Jul 2008 07:09:43 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Installation of gcc 4.3.0 on AIX Date: Tue, 15 Jul 2008 11:17:00 -0000 Message-ID: <8E460D1B58F94945A20AA70D4D41430D052DEA65@ALPMLVEM08.e2k.ad.ge.com> From: "Vardhan, Sundara (GE Infra, Energy)" To: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00178.txt.bz2 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 e= rrors. Please see below: ./configure --prefix=3D/usr/local --with-gmp=3D/usr/local --with-mpfr=3D/u= sr/local --enable-languages=3Dc,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 '=3D', ',', ';', 'asm' or '__attribute__' bef= ore 'me' configure:3636: $? =3D 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: $? =3D 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 insid= e '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: er= ror: declaration of 'void std::exit(int)' throws different exceptions conftest.cc:9: error: from previous declaration 'void std::exit(int) throw = ()' configure:4043: $? =3D 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 | 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 insid= e 'std' configure:4043: $? =3D 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 | 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: er= ror: declaration of 'void exit(int)' throws different exceptions conftest.cc:9: error: from previous declaration 'void exit(int) throw ()' configure:4043: $? =3D 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 | 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/in= clude 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 informati= on. collect2: ld returned 8 exit status configure:4579: $? =3D 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 | #include | 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 m= ail. With Regards Vardhan