public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Claus Lensbøl" <cmol@cmol.dk>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Error compilling synth target
Date: Wed, 22 Apr 2015 17:50:00 -0000	[thread overview]
Message-ID: <CAAMe9vtGJmvKu6aAWcPRye4kYvJ=ga1OeEsHJ9gJwfG72hw13A@mail.gmail.com> (raw)

Hi

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'
make: Leaving directory
'/home/cmol/Dropbox/Documents/DTU/34299-Fagprojekt/eCos_synth_system_build'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:387:
Error: operand type mismatch for `pop'

/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:388:
Error: operand type mismatch for `push'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:388:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:389:
Error: operand type mismatch for `push'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:389:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:390:
Error: operand type mismatch for `push'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:390:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:391:
Error: operand type mismatch for `push'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:391:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:392:
Error: operand type mismatch for `push'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:392:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:393:
Error: operand type mismatch for `push'

........ loads more

/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:432:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:432:
Error: operand type mismatch for `pop'
/opt/ecos/ecos-3.0/packages/hal/synth/i386linux/v3_0/src/syscall-i386-linux-1.0.S:452:
Error: invalid instruction suffix for `pop'
/tmp/ccr4YNvl.s: Error: .size expression for __restore_rt does not
evaluate to a constant
/tmp/ccr4YNvl.s: Error: .size expression for __restore does not
evaluate to a constant
==================================================================

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
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.9.1-16ubuntu6'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64
--with-arch-directory=amd64
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)

ld -v
GNU ld (GNU Binutils for Ubuntu) 2.24.90.20141014


Any clue as to what goes wrong?

-- 
Kind regards
Claus Lensbøl

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2015-04-22 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22 17:50 Claus Lensbøl [this message]
2015-04-26 13:48 ` [ECOS] " John Dallaway

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAMe9vtGJmvKu6aAWcPRye4kYvJ=ga1OeEsHJ9gJwfG72hw13A@mail.gmail.com' \
    --to=cmol@cmol.dk \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).