Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1D62E9F9D8B for ; Fri, 31 Aug 2007 12:42:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50575-06 for ; Fri, 31 Aug 2007 12:42:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from EXCHANGE.wsicorp.com (wsi-135-26.wsi.com [8.8.135.26]) by postgresql.org (Postfix) with ESMTP id F21A99F9E1F for ; Fri, 31 Aug 2007 12:42:40 -0300 (ADT) Received: from [10.142.113.33] ([10.142.113.33]) by EXCHANGE.wsicorp.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 31 Aug 2007 11:42:39 -0400 Subject: Re: Forcing a 32 bit build on a 64 bit system From: Doug Knight To: pgsql-admin@postgresql.org In-Reply-To: <24149.1188571609@sss.pgh.pa.us> References: <1188570077.2131.289.camel@arc-dknightlx.wsicorp.com> <24149.1188571609@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="=-nhUA/h4fltvdoitR/Bxs" Date: Fri, 31 Aug 2007 11:42:39 -0400 Message-Id: <1188574959.2131.298.camel@arc-dknightlx.wsicorp.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.0.1.el5) X-OriginalArrivalTime: 31 Aug 2007 15:42:39.0962 (UTC) FILETIME=[9004CBA0:01C7EBE5] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/421 X-Sequence-Number: 26752 --=-nhUA/h4fltvdoitR/Bxs Content-Type: text/plain Content-Transfer-Encoding: 7bit OK. I ran configure as: setarch i386 ./configure In the config.log both build and host now say i686-pc-linux-gnu. However, under "checking for C compiler version" I see "Target: x86_64-redhat-linux". Should I be concerned about this wrt building a pure 32 bit postgreSQL? Also, later in the log, there are references to Perl archlibexp and embedded Perl referencing the /usr/lib64 location. Should I be concerned about using the 64 bit perl libs? My goal is to create a pure 32 bit version for some testing we're doing. We ran into some issues with LISTEN/NOTIFY (will be a separate topic), and wanted to confirm or deny that the 64 bit version was the issue. BTW, setarch i386 make built with no errors. Thanks, Doug On Fri, 2007-08-31 at 10:46 -0400, Tom Lane wrote: > Doug Knight writes: > > I am running RHEL5 on a 64 bit platform. We want to test with a 32 bit > > version of PostgreSQL. Can someone point me to the configure switches > > needed to force a 32 bit build? > > "setarch i386" will help. > > regards, tom lane > --=-nhUA/h4fltvdoitR/Bxs Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit OK. I ran configure as:

setarch i386 ./configure

In the config.log both build and host now say i686-pc-linux-gnu. However, under "checking for C compiler version" I see "Target: x86_64-redhat-linux". Should I be concerned about this wrt building a pure 32 bit postgreSQL? Also, later in the log, there are references to Perl archlibexp and embedded Perl referencing the /usr/lib64 location. Should I be concerned about using the 64 bit perl libs? My goal is to create a pure 32 bit version for some testing we're doing. We ran into some issues with LISTEN/NOTIFY (will be a separate topic), and wanted to confirm or deny that the 64 bit version was the issue.

BTW, setarch i386 make built with no errors.

Thanks,
Doug

On Fri, 2007-08-31 at 10:46 -0400, Tom Lane wrote:
Doug Knight <dknight@wsi.com> writes:
> I am running RHEL5 on a 64 bit platform. We want to test with a 32 bit
> version of PostgreSQL. Can someone point me to the configure switches
> needed to force a 32 bit build?

"setarch i386" will help.

			regards, tom lane

--=-nhUA/h4fltvdoitR/Bxs--