Skip site navigation (1) Skip section navigation (2)

s_lock.h problem on S/Linux

From: Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>
To: hackers(at)postgresql(dot)org
Subject: s_lock.h problem on S/Linux
Date: 1998-06-20 13:06:30
Message-ID: 199806201306.OAA17936@mtcc.demon.co.uk (view raw or flat)
Thread:
Lists: 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(at)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(at)sparclinux pgsql]$

Keith.


Responses

pgsql-hackers by date

Next:From: David GouldDate: 1998-06-21 01:07:27
Subject: Re: [HACKERS] s_lock.h problem on S/Linux
Previous:From: Bruce MomjianDate: 1998-06-20 03:01:21
Subject: Re: [BUGS] Re: [HACKERS] pg_dump error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group