help: cross compiling PG7.4.1 on IA64 from IA32

From: "Andrew Hall" <temp02(at)bluereef(dot)com(dot)au>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: help: cross compiling PG7.4.1 on IA64 from IA32
Date: 2004-03-23 03:50:07
Message-ID: 091c01c41089$eee49be0$2601010a@bluereef.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Hello,

I have been trying unsuccessfully to get PG 7.4.1 built for an IA64
environment using the following:

Redhat Taroon (IA64) beta headers and libs installed in
/usr/local/ia64-linux
Build host: Redhat 9 I386
Build Target: ia64-linux
binutils: 2.14 built using IA64 headers (as above)
gcc:3.3.3 built using IA64 headers and binutils above, built using --sysroot
to /usr/local/ia64-linux

Configure script for PG7.4.1:
./configure \
--prefix=/opt/sonar/DB64 \
--with-java \
--enable-thread-safety \
--build=i686-pc-linux-gnu \
--host=ia64-linux \
--with-libraries=/usr/local/ia64-linux/lib \
--with-libs=/usr/local/ia64-linux/include \
LDFLAGS=-L/usr/local/ia64-linux/lib \
CPPFLAGS=-I/usr/local/ia64-linux/include

What I get when compiling PG is the following error trying to find
/lib/libpthread.so.0. It doesn't seem to be able to find my IA64 version of
this library, even though all the other libraries seems to be found okay.
The IA64 version of this libaries is definately there
(/usr/local/ia64-linux/lib).

Any ideas appreciated.

--snip of compile output --

ia64-linux-gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing
-declarations -fpic -shared -Wl,-soname,libpq.so.3 fe-auth.o fe-connect.o
fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o
pqexpbuffer.o pqsignal.o fe-secure.o dllist.o md5.o ip.o wchar.o encnames.o
path.o
thread.o -L../../../src/port -L/usr/local/ia64-linux/lib -L/usr/local/ia64-l
inux/include -lcrypt -lresolv -lnsl -lpthread -Wl,-rpath,/opt/sonar/DB64/lib
-o libpq.so.3.1
/usr/local/lib/gcc-lib/ia64-linux/3.3.3/../../../../ia64-linux/bin/ld:
skipping incompatible /lib/libpthread.so.0 when searching for
/lib/libpthread.so.0
/usr/local/lib/gcc-lib/ia64-linux/3.3.3/../../../../ia64-linux/bin/ld:
cannot find /lib/libpthread.so.0
collect2: ld returned 1 exit status
gmake[3]: *** [libpq.so.3.1] Error 1
gmake[3]: Leaving directory
`/development/3.0.0/BUILD-IA64/postgresql-7.4.1/src/interfaces/libpq'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/development/3.0.0/BUILD-IA64/postgresql-7.4.1/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/development/3.0.0/BUILD-IA64/postgresql-7.4.1/src'
gmake: *** [all] Error 2

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2004-03-23 06:11:11 Re: help: cross compiling PG7.4.1 on IA64 from IA32
Previous Message Lamar Owen 2004-03-09 16:28:36 Re: [HACKERS] Need packaging help for RPMs.