From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19977 invoked by alias); 11 Nov 2008 05:18:50 -0000 Received: (qmail 19865 invoked by uid 22791); 11 Nov 2008 05:18:48 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-kukur.atl.sa.earthlink.net (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Nov 2008 05:18:14 +0000 Received: from [209.128.140.171] (helo=[10.0.1.16]) by elasmtp-kukur.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1Kzldi-0000QL-N3; Tue, 11 Nov 2008 00:18:12 -0500 Message-Id: From: Alan Lehotsky To: cgen@sourceware.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: opcodes port instructions in cgen.info yield "unbound variable: opc-file-path " Date: Tue, 11 Nov 2008 05:18:00 -0000 Cc: Alan Lehotsky X-Mailer: Apple Mail (2.929.2) X-ELNK-Trace: 9e0cfd4f457cc6ab94f5150ab1c16ac0eafd45f126befae241e2303028279d2c838010cb196ac575350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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-q4/txt/msg00009.txt.bz2 I've done two cgen machines (but it's been years since the last time I worked with this. I've really tried hard to exactly follow the steps in Section 5.5 of the cgen.info file. I tried Fche's suggestion of doing a (set! .... ), and had no success. There are at least 3-4 people who've encountered this problem (as far back as 2002) and I don't see any indication in the mailing-list archives that a solution has been posted... - I've got a TARGET.cpu and TARGET.opc file. - I've done cd src/cgen guile guile> (load "dev.scm") guile> (load-opc) guile> (cload #:arch "TARGET") ...... ;; no errors or warnings here guile> (cgen-asm.in) (cgen-asm.in) Generating atdsp-asm.in ... Backtrace: In ./opc-asmdis.scm: 89: 0* (opc-file-path) 89: 1 [gen-extra-asm.c ... 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 ./opc-asmdis.scm: 86: 9 [string-write " " # ...] In standard input: 5: 10* [cgen-asm.in] ./opc-asmdis.scm:89:32: In expression (opc-file-path): ./opc-asmdis.scm:89:32: Unbound variable: opc-file-path ABORT: (unbound-variable) I get that unbound variable complaint for ALL the file generation