s_lock.h problem on S/Linux - Mailing list pgsql-hackers

From Keith Parks
Subject s_lock.h problem on S/Linux
Date
Msg-id 199806201306.OAA17936@mtcc.demon.co.uk
Whole thread Raw
Responses Re: [HACKERS] s_lock.h problem on S/Linux  (dg@illustra.com (David Gould))
List pgsql-hackers
Hi hackers.

I am having problems with the new spinlock code on the SPARC linux
platform. (Latest CVSup)

The compiler doesn't seem to like the "asm" part of s_lock.h for (sparc)

Here's one of the compiles that fails.

make[3]: Entering directory `/usr/local/pgsql/src/backend/storage/ipc'
gcc -I../../../include -I../../../backend   -O2  -Wall -Wmissing-prototypes
-I../..   -c spin.c -o spin.o
../../../include/storage/s_lock.h: In function `SpinAcquire':
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
../../../include/storage/s_lock.h: In function `SpinRelease':
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
../../../include/storage/s_lock.h:131: inconsistent operand constraints in an
`asm'
make[3]: *** [spin.o] Error 1

Th ccsym information may be useful.

[postgres@sparclinux pgsql]$ src/tools/ccsym
__GNUC__=2
__GNUC_MINOR__=7
__ELF__
unix
sparc
linux
__ELF__
__unix__
__sparc__
__linux__
__unix
__sparc
__linux
system=unix
system=posix
cpu=sparc
machine=sparc
[postgres@sparclinux pgsql]$

Keith.


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] Re: [HACKERS] pg_dump error
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] s_lock.h problem on S/Linux