public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Problem in generating tools chain for M32R.
@ 2007-12-26 12:00 saankhya-gururaj
  0 siblings, 0 replies; only message in thread
From: saankhya-gururaj @ 2007-12-26 12:00 UTC (permalink / raw)
  To: cgen

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* [#<procedure #f ()>]
 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) #<procedure #f ()>]
In unknown file:
   ?:  6* [#<procedure #f (elm)> #<procedure #f ()>]
In ./utils.scm:
 403:  7* [for-each #<procedure #f #> #]
 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)
/*****************************************************************/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-26 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-26 12:00 Problem in generating tools chain for M32R saankhya-gururaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).