From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24042 invoked by alias); 14 Dec 2011 12:07:43 -0000 Received: (qmail 24017 invoked by uid 22791); 14 Dec 2011 12:07:37 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 12:07:24 +0000 Received: by faaa20 with SMTP id a20so1157214faa.20 for ; Wed, 14 Dec 2011 04:07:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.105.131 with SMTP id gm3mr4085142wib.50.1323864442891; Wed, 14 Dec 2011 04:07:22 -0800 (PST) Received: by 10.216.69.7 with HTTP; Wed, 14 Dec 2011 04:07:22 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Dec 2011 12:07:00 -0000 Message-ID: Subject: Re: aix cross(?)compiler From: Jonathan Wakely To: =?ISO-8859-2?Q?J=EAdrzej_Dudkiewicz?= Cc: gcc-help Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2011-12/txt/msg00120.txt.bz2 2011/12/14 J=C4=99drzej Dudkiewicz : > > I can try it, but last time I tried it wasn't working. Note that here: > > http://gcc.gnu.org/install/specific.html#x-ibm-aix > > it is written: > > Because GCC on AIX is built as a 32-bit executable by default, > (although it can generate 64-bit programs) the GMP and MPFR libraries > required by gfortran must be 32-bit libraries. Building GMP and MPFR > as static archive libraries works better than shared libraries. > > My impression is that if you were right, this wouldn't be mentioned. Well that text is necessary if you build those libs yourself. If you let GCC build them it should do the right thing automatically. If it doesn't that's a bug. > On the other hand it seems that not only gfortran requires them, so > maybe this whole part is wrong. It's certainly out of date as not only gfortran needs them, and MPC is also needed now. >> Are you installing dynamic libraries for gmp, mpfr and mpc? =C2=A0If you >> are, it's not as simple as running one script, because you need to >> ensure they can be found by the dynamic linker at runtime. > > No, as in quoted text above: "Building GMP and MPFR as static archive > libraries works better than shared libraries". OK, by only building static libs you avoid the main problems caused by building them separately from GCC.