From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23118 invoked by alias); 16 Oct 2003 07:55:01 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 23084 invoked from network); 16 Oct 2003 07:55:00 -0000 Received: from unknown (HELO sand2.gxn.net) (195.147.249.208) by sources.redhat.com with SMTP; 16 Oct 2003 07:55:00 -0000 Received: from ip02.quartzelec.adsl.gxn.net ([195.147.203.154] helo=server2000.Quartz.local) by sand2.gxn.net with esmtp (Exim 4.20) id 1AA3EW-0004f2-5r; Thu, 16 Oct 2003 09:11:44 +0100 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Thu, 16 Oct 2003 07:55:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "James Yates" To: "Gary Thomas" Cc: Subject: RE: [ECOS] Problems with var_mk_defs.c X-SW-Source: 2003-10/txt/msg00288.txt.bz2 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 thi= s with the following: sh-elf-gcc -mb -m2 -O2 -save-temps -Wall -Wpointer-arith -Wstrict-prototype= s -Winline -Wundef -Woverloaded-virtual -ggdb -ffunction-sections -fdata-se= ctions -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -Wa,-am -I/ec= os-d/Dev/eCos/builds/current/pc388_install/include -I/ecos-d/ecos/ecos/pack= ages/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_offs= ets.tmp -o var_mk_defs.tmp /ecos-d/ecos/ecos/packages/hal/sh/sh2/current/sr= c/var_mk_defs.c /opt/ecos_new/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../s= h-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 buil= ding 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. =09 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