From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17404 invoked by alias); 26 Dec 2007 12:00:52 -0000 Received: (qmail 17394 invoked by uid 22791); 26 Dec 2007 12:00:51 -0000 X-Spam-Check-By: sourceware.org Received: from 216-55-132-48.dedicated.cedant.com (HELO maila.captain-mail.net) (216.55.132.48) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Dec 2007 12:00:44 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by maila.captain-mail.net (Postfix) with ESMTP id DA11D175809E for ; Wed, 26 Dec 2007 04:27:43 -0800 (PST) Received: from maila.captain-mail.net ([127.0.0.1]) by localhost (mail1.captain-mail.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rkMxXwmqN4Dl for ; Wed, 26 Dec 2007 04:27:34 -0800 (PST) Received: from enpaq.hq.saankhyalabs.com (unknown [125.22.4.51]) by maila.captain-mail.net (Postfix) with ESMTP id 3C07417580BB for ; Wed, 26 Dec 2007 04:27:01 -0800 (PST) Received: from [192.168.10.37] (unknown [192.168.10.37]) by enpaq.hq.saankhyalabs.com (Postfix) with ESMTP id D48F810370 for ; Wed, 26 Dec 2007 17:30:00 +0530 (IST) Message-ID: <47724351.5000908@saankhyalabs.com> Date: Wed, 26 Dec 2007 12:00:00 -0000 From: saankhya-gururaj User-Agent: Mozilla Thunderbird 1.0.6-1.4.1 (X11/20050719) MIME-Version: 1.0 To: cgen@sourceware.org Subject: Problem in generating tools chain for M32R. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2007-q4/txt/msg00002.txt.bz2 Hi All, we are trying to build the tools chain for "m32r" architecture with "cgen-20070901.tar.bz2" release. I am following the instruction given in the "5.4.14 Interactive development" of the Porting section of the html help manual . 1. Run |guile|. 2. |(load "dev.scm")| 3. Load application, e.g. |(load-opc)| or |(load-sim)| 4. Load CPU description file, e.g. |(cload #:arch "m32r")| 5. Run generators until output looks reasonable, e.g. |(cgen-opc.c)| In step 5 i am getting following error. will any one please help me in generating tool chains(simulator and assembler) for "m32r"? /**********************************************/ guile> (cgen-opc.c) Generating m32r-opc.c ... /* Instruction opcode table for @arch@. THIS FILE IS MACHINE GENERATED WITH CGEN. Copyright 1996-2007 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include "sysdep.h" #include "ansidecl.h" #include "bfd.h" #include "symcat.h" #include "@prefix@-desc.h" #include "@prefix@-opc.h" #include "libiberty.h" Backtrace: In ./opc-itab.scm: 724: 0* (opc-file-path) 724: 1 [gen-extra-opc.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-itab.scm: 712: 9 [string-write "/* Instruction opcode table for @arch@. THIS FILE IS MACHINE GENERATED WITH CGEN. Copyright 1996-2007 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ " ...] In standard input: 4: 10* [cgen-opc.c] ./opc-itab.scm:724:32: In expression (opc-file-path): ./opc-itab.scm:724:32: Unbound variable: opc-file-path ABORT: (unbound-variable) /*****************************************************************/