public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Installation of gcc 4.3.0 on AIX
@ 2008-07-15 11:17 Vardhan, Sundara (GE Infra, Energy)
  2008-07-15 15:32 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Vardhan, Sundara (GE Infra, Energy) @ 2008-07-15 11:17 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Installation of gcc 4.3.0 on AIX
  2008-07-15 11:17 Installation of gcc 4.3.0 on AIX Vardhan, Sundara (GE Infra, Energy)
@ 2008-07-15 15:32 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-07-15 15:32 UTC (permalink / raw)
  To: Vardhan, Sundara (GE Infra, Energy); +Cc: gcc-help

"Vardhan, Sundara (GE Infra, Energy)" <sundara.vardhan@ge.com> writes:

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

Don't run "./configure".  Read the installation instructions.

> 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.

Did you ensure that gmp and mpfr were built in 32-bit mode?  See
http://gcc.gnu.org/install/specific.html#x-ibm-aix .

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-15 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15 11:17 Installation of gcc 4.3.0 on AIX Vardhan, Sundara (GE Infra, Energy)
2008-07-15 15:32 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).