Thread: BUG #1097: Make failure

BUG #1097: Make failure

From
"PostgreSQL Bugs List"
Date:
The following bug has been logged online:

Bug reference:      1097
Logged by:          Stewart McKenna

Email address:      stewart.mckenna@eds.com

PostgreSQL version: 7.4

Operating system:   Debian 'woody3' on Ultra Sparc

Description:        Make failure

Details:

Trying to 'make' the postgreSQL package. I got the following error. Is there
some way aroun this problem ?


ake -C access all
make[3]: Entering directory
`/home/jzbnvs/postgresql-7.4.1/src/backend/access'
make -C common SUBSYS.o
make[4]: Entering directory
`/home/jzbnvs/postgresql-7.4.1/src/backend/access/common'
/usr/bin/ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o printtup.o
scankey.o tupdesc.o
/usr/bin/ld: Relocatable linking with relocations from format elf64-sparc
(heaptuple.o) to format elf32-sparc (SUBSYS.o) is not supp
orted
make[4]: *** [SUBSYS.o] Error 1
make[4]: Leaving directory
`/home/jzbnvs/postgresql-7.4.1/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory
`/home/jzbnvs/postgresql-7.4.1/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/jzbnvs/postgresql-7.4.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jzbnvs/postgresql-7.4.1/src'
make: *** [all] Error 2

Re: BUG #1097: Make failure

From
Bruce Momjian
Date:
I have never seen that before.  Looks like there is a mix of 64-bit and
32-bit object files.  Not sure on the cause.

---------------------------------------------------------------------------

PostgreSQL Bugs List wrote:
>
> The following bug has been logged online:
>
> Bug reference:      1097
> Logged by:          Stewart McKenna
>
> Email address:      stewart.mckenna@eds.com
>
> PostgreSQL version: 7.4
>
> Operating system:   Debian 'woody3' on Ultra Sparc
>
> Description:        Make failure
>
> Details:
>
> Trying to 'make' the postgreSQL package. I got the following error. Is there
> some way aroun this problem ?
>
>
> ake -C access all
> make[3]: Entering directory
> `/home/jzbnvs/postgresql-7.4.1/src/backend/access'
> make -C common SUBSYS.o
> make[4]: Entering directory
> `/home/jzbnvs/postgresql-7.4.1/src/backend/access/common'
> /usr/bin/ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o printtup.o
> scankey.o tupdesc.o
> /usr/bin/ld: Relocatable linking with relocations from format elf64-sparc
> (heaptuple.o) to format elf32-sparc (SUBSYS.o) is not supp
> orted
> make[4]: *** [SUBSYS.o] Error 1
> make[4]: Leaving directory
> `/home/jzbnvs/postgresql-7.4.1/src/backend/access/common'
> make[3]: *** [common-recursive] Error 2
> make[3]: Leaving directory
> `/home/jzbnvs/postgresql-7.4.1/src/backend/access'
> make[2]: *** [access-recursive] Error 2
> make[2]: Leaving directory `/home/jzbnvs/postgresql-7.4.1/src/backend'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/jzbnvs/postgresql-7.4.1/src'
> make: *** [all] Error 2
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: BUG #1097: Make failure

From
Tom Lane
Date:
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> /usr/bin/ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o printtup.o
> scankey.o tupdesc.o
> /usr/bin/ld: Relocatable linking with relocations from format elf64-sparc
> (heaptuple.o) to format elf32-sparc (SUBSYS.o) is not supp
> orted

Hmm.  It sounds like your platform wants some special switches to ld to
enable building 64-bit stuff.  I have no idea what they are, however.
What were you using for CFLAGS to get 64-bit compilations?

            regards, tom lane

Re: BUG #1097: Make failure

From
Peter Eisentraut
Date:
PostgreSQL Bugs List wrote:
> /usr/bin/ld -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o
> printtup.o scankey.o tupdesc.o
> /usr/bin/ld: Relocatable linking with relocations from format
> elf64-sparc (heaptuple.o) to format elf32-sparc (SUBSYS.o) is not
> supported

You need to run

$ sparc32 make

64-bit sparc is not really supported on Debian yet.