pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: vbberdin@yahoo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6331: Cross compile error/aborts. Works if '--disable-spinlock' is used
Date: Tue, 13 Dec 2011 08:26:08 +0800
Message-ID: <4EE69BA0.2020703@ringerc.id.au> (raw)
In-Reply-To: <E1Ra1sk-0000Pq-EL@wrigleys.postgresql.org>
References: <E1Ra1sk-0000Pq-EL@wrigleys.postgresql.org>

On 12/12/2011 5:09 PM, vbberdin@yahoo.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      6331
> Logged by:          Victor Berdin
> Email address:      vbberdin@yahoo.com
> PostgreSQL version: 8.4.9
> Operating system:   Linux (Ubuntu/Linaro 4.5.2-8ubuntu4)
> Description:
>
> arm-linux-gnueabi-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
> -I../../../../src/include -D_GNU_SOURCE   -c -o xlog.o xlog.c
> /tmp/cclQLJ69.s: Assembler messages:
> /tmp/cclQLJ69.s:645: Error: selected processor does not support Thumb mode
> `swpb r3,r3,[r0]'
> /tmp/cclQLJ69.s:6821: Error: selected processor does not support Thumb mode
> `swpb r2,r2,[r0]'
>

Are you sure you're using the correct assembler?

Try tweaking your PATH so that symlinked names for the ARM toolchain are 
all on your PATH before your host toolchain.

If that's not the issue then its presumably an issue with Pg's configure 
script/Makefiles invoking the wrong tool in a cross-compile situation, 
because AFAIK there's no ARM asm code or ARM gcc intrinsics hidden away 
in Pg, and that'd be the only other way to get those kinds of errors.

--
Craig Ringer



view thread (4+ messages)  latest in thread

Message-ID: <4EE69BA0.2020703@ringerc.id.au>
Permalink:  ../4EE69BA0.2020703@ringerc.id.au/
Also on:    postgresql.org/message-id/4EE69BA0.2020703@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ringerc@ringerc.id.au, vbberdin@yahoo.com
  Subject: Re: BUG #6331: Cross compile error/aborts. Works if '--disable-spinlock' is used
  In-Reply-To: <4EE69BA0.2020703@ringerc.id.au>
  References: <E1Ra1sk-0000Pq-EL@wrigleys.postgresql.org> <4EE69BA0.2020703@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox