(Answer) (Category) CGEN Faq-O-Matic :
I can't load "dev.scm" into guile
Trying to follow the basic steps to use guile development environment described in CGEN manual I get following error trying to load "dev.scm":
guile> (load "dev.scm") dev.scm:17:18: While evaluating arguments to cons in expression (cons srcdir %lo ad-path): dev.scm:17:18: Unbound variable: srcdir ABORT: (unbound-variable)
Type "(backtrace)" to get more information or "(debug)" to enter the debugger. guile> (backtrace)
Backtrace: 0* [primitive-load "dev.scm"] 1* (set! %load-path (cons srcdir %load-path)) 2* [cons ...
guile>

This error appears on both Solaris and Windows platforms.

This documented method of running cgen is actually a bit of a trap: it doesn't work, just wants to see whether you're reading it!
CGEN is best run using the batch methods encoded into the various makefiles that make up the binutils/sim/sid projects.
I load dev.scm a lot these days, so it's working now (aug/09) (for the things I've tried anyway).
[Append to This Answer]
pbaranov@ubicom.com, fche@redhat.com, dje@sebabeach.org
Previous: (Category) To-do items
Next: (Answer) Does CGEN run on guile 1.6?
This document is: http://sourceware.org/fom/cgen?file=13
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ...