From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9016 invoked by alias); 16 Oct 2003 12:04:23 -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 9008 invoked from network); 16 Oct 2003 12:04:23 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 16 Oct 2003 12:04:23 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id E69B850E0FC; Thu, 16 Oct 2003 06:04:22 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id EDE2550E0FB; Thu, 16 Oct 2003 06:04:21 -0600 (MDT) From: Gary Thomas To: James Yates Cc: ecos-discuss@sources.redhat.com In-Reply-To: References: Content-Type: text/plain Organization: MLB Associates Message-Id: <1066305861.32461.127.camel@hermes> Mime-Version: 1.0 Date: Thu, 16 Oct 2003 12:04:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: RE: [ECOS] Problems with var_mk_defs.c X-SW-Source: 2003-10/txt/msg00301.txt.bz2 On Thu, 2003-10-16 at 01:56, James Yates wrote: > 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. > Try running this command manually, and add the "-v" and "-save-temps" options. The expanded output may provide some clues. -- Gary Thomas MLB Associates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss