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

Port Bug Report: PostgreSQL does not compile on ARM systems

From: Unprivileged user <nobody>
To: pgsql-ports(at)postgresql(dot)org
Subject: Port Bug Report: PostgreSQL does not compile on ARM systems
Date: 1999-03-29 12:39:19
Message-ID: 199903291239.HAA78413@hub.org (view raw or flat)
Thread:
Lists: pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name		: Andrew McMurry
Your email address	: a(dot)mcmurry1(at)physics(dot)ox(dot)ac(dot)uk

Category		: install: compile
Severity		: critical

Summary: PostgreSQL does not compile on ARM systems

System Configuration
--------------------
  Operating System   : NetBSD/arm32 1.3-current

  PostgreSQL version : 6.4.2

  Compiler used      : ecgs-1.1.1

Hardware:
---------
CATS (StrongARM 110 processor), 128MB RAM

Versions of other tools:
------------------------


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

Problem Description:
--------------------
The PostgreSQL sources fail to compile on NetBSD/arm32
systems due to the lack of a TAS function.

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

Test Case:
----------


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

Solution:
---------
I am sorry that this isn't a proper patch.
Add the following into src/include/storage/s_lock.h:

#if defined(__arm32__)
#define TAS(lock) tas(lock)

static __inline__ int
tas(volatile slock_t *lock)
{
        register slock_t _res = 1;
 
__asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
        return (int) _res;
}       
        
#endif   /* __arm32__ */


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


Responses

pgsql-ports by date

Next:From: Thomas LockhartDate: 1999-03-29 15:57:41
Subject: Re: [PORTS] Port Bug Report: Will not compile under SCO OSR 5.0.5
Previous:From: Unprivileged userDate: 1999-03-29 12:00:40
Subject: Port Bug Report: Postmaster fails to compile-gettimeofday

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