From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13699 invoked by alias); 6 Feb 2008 14:42:51 -0000 Received: (qmail 13689 invoked by uid 22791); 6 Feb 2008 14:42:50 -0000 X-Spam-Check-By: sourceware.org Received: from sd-11162.dedibox.fr (HELO sd-11162.dedibox.fr) (88.191.70.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Feb 2008 14:42:18 +0000 Received: from sd-11162.dedibox.fr (localhost.localdomain [127.0.0.1]) by sd-11162.dedibox.fr (Postfix) with ESMTP id 91B2C92E96 for ; Wed, 6 Feb 2008 15:42:16 +0100 (CET) Received: from [10.10.1.196] (pat35-4-88-164-240-85.fbx.proxad.net [88.164.240.85]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sd-11162.dedibox.fr (Postfix) with ESMTP id 4A92E92CB5 for ; Wed, 6 Feb 2008 15:42:16 +0100 (CET) Subject: cgen 'gas-test' errors From: Stelian Pop To: cgen@sourceware.org Content-Type: text/plain Date: Wed, 06 Feb 2008 14:42:00 -0000 Message-Id: <1202308936.6176.20.camel@galileo> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00004.txt.bz2 Hi all, I'm working on a new port for binutils/gcc for a custom microcontroller using CGEN (the latest snapshot version: 20080101). My host platform is a recent Ubuntu Linux system, with either guile 1.6 or guile 1.8 installed. When I launch 'make gas-test' (with xc16x in the example) as shown in the docs, the guile invocation fails with: cd build-cgen && make gas-test ARCH=xc16x make[1]: Entering directory `/tmp/build-cgen' "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l guile -s" ../cgen-20080101/cgen/cgen-gas.scm \ -s ../cgen-20080101/cgen \ -v \ -a ../cgen-20080101/cgen/../../cpu/xc16x.cpu \ -i "all" \ -m "all" \ -B gas-build.sh \ -E gas-allinsn.exp /bin/bash: guile -l guile -s: command not found make[1]: *** [gas-test] Error 127 This error comes from the invocation of guile in the Makefile, hopefuly the patch below fixes it. But even after applying the patch, it fails later with a runtime Scheme error: make[1]: Entering directory `/tmp/build-cgen' `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ../cgen-20080101/cgen/guile.scm -s ../cgen-20080101/cgen/cgen-gas.scm \ -s ../cgen-20080101/cgen \ -v \ -a ../cgen-20080101/cgen/cpu/xc16x.cpu \ -i "all" \ -m "all" \ -B gas-build.sh \ -E gas-allinsn.exp Skipping slib/sort, already loaded. Skipping slib/random, already loaded. cgen -s ../cgen-20080101/cgen/cgen-gas.scm -s ../cgen-20080101/cgen -v -a ../cgen-20080101/cgen/cpu/xc16x.cpu -i all -m all -B gas-build.sh -E gas-allinsn.exp Loading cpu description ../cgen-20080101/cgen/cpu/xc16x.cpu Including file ../cgen-20080101/cgen/cpu/simplify.inc ... Analyzing instruction set ... Done analysis. Generating gas-build.sh ... ERROR: In procedure string-append: ERROR: Wrong type argument (expecting STRINGP): dpp0 No backtrace available. make[1]: *** [gas-test] Error 1 This is probably related to my version of guile (1.6 instead of 1.4)... Can somebody please help me here ? My Scheme skills are very close to zero. If the changes required to the source are not trivial, I could install guile 1.4 . But I'd rather avoid it if possible. Thanks ! Stelian. diff --git a/cgen/Makefile.am b/cgen/Makefile.am index 0532ed7..a53f386 100644 --- a/cgen/Makefile.am +++ b/cgen/Makefile.am @@ -4,10 +4,10 @@ AUTOMAKE_OPTIONS = cygnus SUBDIRS = doc -GUILE = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l guile -s" +GUILE = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l $(srcdir)/guile.scm -s CGENFLAGS = -v ARCH = @arch@ -ARCHFILE = $(srcroot)/../cpu/$(ARCH).cpu +ARCHFILE = $(srcdir)/cpu/$(ARCH).cpu # for various utility rules MACHS = all -- Stelian Pop