From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7633 invoked by alias); 26 Apr 2015 13:48:28 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 7624 invoked by uid 89); 26 Apr 2015 13:48:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: tetra.codeconfidence.com Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 26 Apr 2015 13:48:25 +0000 Received: from cog.dallaway.org.uk (cpc1-cmbg1-0-0-cust759.5-4.cable.virginm.net [82.21.98.248]) by tetra.codeconfidence.com (Postfix) with ESMTP id 95E76234C042; Sun, 26 Apr 2015 14:48:22 +0100 (BST) Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id t3QDmIZY017581; Sun, 26 Apr 2015 14:48:21 +0100 Message-ID: <553CECA2.30909@dallaway.org.uk> Date: Sun, 26 Apr 2015 13:48:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: =?UTF-8?B?Q2xhdXMgTGVuc2LDuGw=?= CC: eCos Discussion References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: [ECOS] Re: Error compilling synth target X-SW-Source: 2015-04/txt/msg00009.txt.bz2 Hi Claus On 22/04/15 18:50, Claus Lensbøl wrote: > I'm trying to compile a synth target with eCos. > I downloaded using the tcl-script, and are running the configtool to > select the target. > I have set CYGBLD_GLOBAL_COMMAND_PREFIX to empty, to use the system > stack, however I cannot get it to compile due to "loss of precision" > errors. If I add -fpermissive to the compile I get further but end up > with a lot of: > > > ================================================================== > /opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:387: > Error: operand type mismatch for `push' [ snip ] > I'm running on a ubuntu 14.10 system wit gcc: > > gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper > Target: x86_64-linux-gnu [ snip] The eCos synthetic (linux) target does not support 64-bit compilation at present. Try adding the "-m32" switch to the following eCos configuration options: CYGBLD_GLOBAL_CFLAGS CYGBLD_GLOBAL_LDFLAGS in order to force 32-bit compilation and linking on your 64-bit Linux host. I hope this helps... John Dallaway eCos maintainer http://www.dallaway.org.uk/john -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss