Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id A20FC1EE3E82 for ; Mon, 12 Dec 2011 20:26:45 -0400 (AST) Received: from mail-yx0-f174.google.com ([209.85.213.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RaGCh-0007N9-U2 for pgsql-bugs@postgresql.org; Tue, 13 Dec 2011 00:26:45 +0000 Received: by yenm11 with SMTP id m11so4321990yen.19 for ; Mon, 12 Dec 2011 16:26:30 -0800 (PST) Received: by 10.236.73.230 with SMTP id v66mr433665yhd.61.1323735990676; Mon, 12 Dec 2011 16:26:30 -0800 (PST) Received: from [192.168.1.24] ([49.191.240.69]) by mx.google.com with ESMTPS id f17sm54586616ang.20.2011.12.12.16.26.27 (version=SSLv3 cipher=OTHER); Mon, 12 Dec 2011 16:26:29 -0800 (PST) Message-ID: <4EE69BA0.2020703@ringerc.id.au> Date: Tue, 13 Dec 2011 08:26:08 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: vbberdin@yahoo.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6331: Cross compile error/aborts. Works if '--disable-spinlock' is used References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/85 X-Sequence-Number: 31896 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