From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1750 invoked by alias); 24 Oct 2005 06:01:58 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 1741 invoked by uid 22791); 24 Oct 2005 06:01:55 -0000 Received: from agahsura.ksc.kwansei.ac.jp (HELO agahsura.ksc.kwansei.ac.jp) (210.81.216.72) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 24 Oct 2005 06:01:55 +0000 Received: from hera.ksc.kwansei.ac.jp (hera.ksc.kwansei.ac.jp [172.29.0.22]) by agahsura.ksc.kwansei.ac.jp with ESMTP id j9O61pqI022357 for ; Mon, 24 Oct 2005 15:01:51 +0900 (JST) Received: from kscmail.ksc.kwansei.ac.jp (localhost [127.0.0.1]) by hera.ksc.kwansei.ac.jp (8.12.10/8.12.10) with ESMTP id j9O61o1Y019104 for ; Mon, 24 Oct 2005 15:01:51 +0900 (JST) Received: from orange.colors.myhome.cx (sstg58.ksc.kwansei.ac.jp [210.81.220.58]) (authenticated bits=0) by kscmail.ksc.kwansei.ac.jp (8.12.10/8.12.10) with ESMTP id j9O61koM019021 for ; Mon, 24 Oct 2005 15:01:50 +0900 (JST) Date: Mon, 24 Oct 2005 06:01:00 -0000 Message-ID: <87vezna1wn.wl%ml@colors.myhome.cx> From: blue To: cgen@sources.redhat.com Subject: [Q] how can i run cgen interactively? User-Agent: User-Agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2005-q4/txt/msg00020.txt.bz2 hi, i'm a student of graduated school of Univ. in japan. i'm trying to port gnu tool-chain to our new processor with cgen. but i cannot run cgen interactively. how can i run it? i'm trying to port Binutils-2.16.1 and GDB-6.2. my environment is OS: Debian GNU/Linux 3.1 sarge (stable) CGEN: cgen-20051015 Guile: guile-1.6 i run cgen as following. now i run with m32r. $ tar xjf cgen-20051015.tar.bz2 $ cd cgen-20051015/cgen/ $ guile guile> (load "dev.scm") ... guile> (load-opc) ... guile> (cload #:arch "m32r") ... guile> (cgen-desc.h) ... and ... extern const CGEN_HW_ENTRY @arch@_cgen_hw_table[]; Backtrace: In ./desc-cpu.scm: 1002: 0* (opc-file-path) 1002: 1 [gen-extra-cpu.h ... In ./utils.scm: 414: 2* [#] 414: 3 [-string-write #(print-state 0) ... 412: 4* (cond ((string? expr) (display expr)) ((symbol? expr) (display expr)) ...) 403: 5* [-string-write #(print-state 0) #] In unknown file: ?: 6* [# #] In ./utils.scm: 403: 7* [for-each # #] 401: 8 (let ((pstate (make-print-state))) (set! -current-print-state pstate) ...) In ./desc-cpu.scm: 966: 9 [string-write "/* CPU data header for @arch@. THIS FILE IS MACHINE GENERA$ In standard input: 4: 10* [cgen-desc.h] ./desc-cpu.scm:1002:32: In expression (opc-file-path): ./desc-cpu.scm:1002:32: Unbound variable: opc-file-path ABORT: (unbound-variable) guile> could you please tell me how to run cgen interactively. i found that opc-file-path is defined in cgen-opc.scm, so i tried to load it. but i cannot load it. -- blue