Thread: problems compiling in 64 bits

problems compiling in 64 bits

From
"Gerardo Antonio"
Date:
Hi there,

I am trying to compile Postgres 8.1.9 in the following Linux version:

Linux version 2.6.9-34.EL (bhcompile@altix2.build.redhat.com) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2))

but I get a bunch of errors saying " <!-- @page { size: 8.27in 11.69in; margin: 0.79in } P { margin-bottom: 0.08in }-->

i386 architecture of input file `../../src/port/libpgport_srv.a(pgstrcasecmp_srv.o)' is incompatible with ia64-elf64 output"

I followed the installation instructions that come with the product, and configure.sh detected it was a 64-bit arch.

Does this mean that you must use 64-bit-oriented source files?  Please advise,

Thanks,



Gerardo Campos

Attachment

Re: problems compiling in 64 bits

From
Tom Lane
Date:
"Gerardo Antonio" <oyogimalandro@gmail.com> writes:
> I am trying to compile Postgres 8.1.9 in the following Linux version:

>  Linux version 2.6.9-34.EL (bhcompile@altix2.build.redhat.com) (gcc version
> 3.4.5 20051201 (Red Hat 3.4.5-2))

> but I get a bunch of errors saying "

> i386 architecture of input file
> `../../src/port/libpgport_srv.a(pgstrcasecmp_srv.o)' is incompatible with
> ia64-elf64 output"

There's something screwed up about your build environment.  You might
want to check that you do not have values for CFLAGS, LDFLAGS, CPPFLAGS
etc in your environment variables (if you do, get rid of them and
restart from the configure step).  The only other cause I can think of
offhand is having the wrong compile/link toolchain installed.

It might be helpful for you to compare your build logs with those
from a similar machine in our buildfarm, eg
http://www.pgbuildfarm.org/cgi-bin/show_history.pl?nm=dungbeetle&br=REL8_1_STABLE
Look for differences in the flags that the compiler/linker get
invoked with.

            regards, tom lane