From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31101 invoked by alias); 14 Dec 2011 11:09:13 -0000 Received: (qmail 31083 invoked by uid 22791); 14 Dec 2011 11:09:12 -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-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 11:08:52 +0000 Received: by wgbdr1 with SMTP id dr1so1348535wgb.8 for ; Wed, 14 Dec 2011 03:08:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.197.70 with SMTP id ej6mr1708562wbb.13.1323860931177; Wed, 14 Dec 2011 03:08:51 -0800 (PST) Received: by 10.216.69.7 with HTTP; Wed, 14 Dec 2011 03:08:51 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Dec 2011 11:09: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=ISO-8859-2 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/msg00116.txt.bz2 2011/12/14 J=EAdrzej Dudkiewicz: > 2011/12/14 Jonathan Wakely : >> 2011/12/14 J=EAdrzej 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. Are you installing dynamic libraries for gmp, mpfr and mpc? If 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.