public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "James Yates" <j.yates@quartzuk.com>
To: "Gary Thomas" <gary@mlbassoc.com>
Cc: <ecos-discuss@sources.redhat.com>
Subject: RE: [ECOS] Problems with var_mk_defs.c
Date: Thu, 16 Oct 2003 07:55:00 -0000	[thread overview]
Message-ID: <CB39E7B8FC98924D85DFBED207E4CC9834420E@ip02.quartzelec.adsl.gxn.net> (raw)

I tried removing the hash, as a temporary fix i change DEFINE to:

#define DEFINE(sym, val) \
        asm volatile("\n\t.equ\t" #sym ",0" : : "i" (val))

Which effectively then outputs :

 .equ	HAL_UCACHE_SIZE, 0
 .loc 1 82 0

However, this seemed to cause other problems. The compiler bombed after this with the following:

sh-elf-gcc -mb -m2 -O2 -save-temps -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -ggdb -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -Wa,-am  -I/ecos-d/Dev/eCos/builds/current/pc388_install/include -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current/tests -I. -Wp,-MD,sh2_offsets.tmp -o var_mk_defs.tmp /ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src/var_mk_defs.c
/opt/ecos_new/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf/bin/ld: cannot find -
make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build/hal/sh/sh2/current'
lc
make: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build'
collect2: ld returned 1 exit status
make[1]: *** [/ecos-d/Dev/eCos/builds/current/pc388_install/include/cyg/hal/sh2_offsets.inc] Error 1
make: *** [build] Error 2

I can only assume that this must be a compiler problem. I am currently building the latest gcc v3.3.1 for the sh-elf platform to see if this fixes the problem. Apart from that I am completely stuck.

	
		James Yates

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

             reply	other threads:[~2003-10-16  7:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16  7:55 James Yates [this message]
2003-10-16 12:04 ` Gary Thomas
  -- strict thread matches above, loose matches on Subject: below --
2003-10-15 15:45 James Yates
2003-10-15 15:50 ` Gary Thomas
2003-10-15 15:02 James Yates
2003-10-15 15:09 ` Gary Thomas
2003-10-15 14:34 James Yates
2003-10-15 14:41 ` Gary Thomas

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=CB39E7B8FC98924D85DFBED207E4CC9834420E@ip02.quartzelec.adsl.gxn.net \
    --to=j.yates@quartzuk.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=gary@mlbassoc.com \
    /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).