From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10145 invoked by alias); 14 Dec 2011 11:29:44 -0000 Received: (qmail 10127 invoked by uid 22791); 14 Dec 2011 11:29:43 -0000 X-SWARE-Spam-Status: No, hits=-2.3 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-ey0-f175.google.com (HELO mail-ey0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 11:29:30 +0000 Received: by eaal1 with SMTP id l1so643212eaa.20 for ; Wed, 14 Dec 2011 03:29:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.133.213 with SMTP id g21mr513270bkt.126.1323862168580; Wed, 14 Dec 2011 03:29:28 -0800 (PST) Received: by 10.205.122.141 with HTTP; Wed, 14 Dec 2011 03:29:28 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Dec 2011 11:29:00 -0000 Message-ID: Subject: Re: aix cross(?)compiler From: =?UTF-8?Q?J=C4=99drzej_Dudkiewicz?= To: Jonathan Wakely 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/msg00118.txt.bz2 2011/12/14 Jonathan Wakely : > 2011/12/14 J=C4=99drzej Dudkiewicz: >> 2011/12/14 Jonathan Wakely : >>> 2011/12/14 J=C4=99drzej Dudkiewicz: >>>> >>>> 1) Am I building everything the right way, >>> >>> The process is much simpler if you let GCC build the GMP, MPFR and MPC >>> libs, instead of installing them separately. See >>> http://advogato.org/person/redi/diary/253.html >> >> It's simpler, but results in errors. On AIX, by default, GCC is built >> as 32-bit binary but aforementioned libraries are built in 64-bit >> mode. Most probably it's possible to do everything in one shot, but I >> have a habit of scripting everything, so building these libraries in >> 32-bit mode is as easy as running one script. > > If you put the libraries in the GCC source tree they should be built > for the same architecture as GCC, if they are not, please report a > bug. 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. On the other hand it seems that not only gfortran requires them, so maybe this whole part is wrong. > 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". --=20 J=C4=99drzej Dudkiewicz I really hate this damn machine, I wish that they would sell it. It never does just what I want, but only what I tell it.