public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Re: make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load   path
@ 2009-04-02 22:02 Martin Walter
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Walter @ 2009-04-02 22:02 UTC (permalink / raw)
  To: cgen

> ...
> ERROR: In procedure primitive-load-path:
> ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path
> ...

This patch to opcodes/configure.in should help:

#
--- configure.in	2009-04-01 23:46:30.000000000 +0200
+++ configure.in	2009-04-01 23:47:11.000000000 +0200
@@ -76,7 +76,7 @@
 AC_CHECK_DECLS(basename)

 cgen_maint=no
-cgendir='$(srcdir)/../cgen'
+cgendir='$(shell pwd)/../cgen'

 AC_ARG_ENABLE(cgen-maint,
 [  --enable-cgen-maint[=dir]    build cgen generated files],

Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load   path
       [not found] <c55980430902100741h1ebf05f0l8ce337f199ece66e@mail.gmail.com>
@ 2009-02-10 15:44 ` Martin Walter
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Walter @ 2009-02-10 15:44 UTC (permalink / raw)
  To: cgen

Hello!

I am using the cgen-20090201 snapshot to port the GNU binutils to the
SPEAR2, an FPGA soft core developed as a students project at the
Vienna Technical University in Austria.

After running configure --prefix=$PREFIX --target=spear2-32-elf
--enable-cgen-maint && make, the following error occurs:

...
make[4]: Entering directory
`/home/martin/Workspace/spear2-binutils-2.18/build/opcodes'
make run-cgen arch=spear2 prefix=spear2 options=opinst \
               archfile=./../cpu/spear2.cpu
opcfile=./../cpu/spear2.opc extrafiles=opinst
make[5]: Entering directory
`/home/martin/Workspace/spear2-binutils-2.18/build/opcodes'
/bin/bash ./cgen.sh opcodes . "`if test -f ../guile/libguile/guile ;
then echo ../guile/libguile/guile; else echo guile ; fi` -l
./../cgen/guile.scm -s" \
         ./../cgen "-v" spear2 spear2 ./../cpu/spear2.cpu ./../cpu/spear2.opc \
         "opinst" "opinst"
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path
...

The problem lies in cgen.sh's argument 4: "./../cgen", which
apparently cannot be interpreted correctly by guile. Modifying the
CGENDIR variable in "opcodes/Makefile" from CGENDIR =
$(srcdir)/../cgen to something like CGENDIR = $(shell pwd)/../cgen
fixes the problem.

However, I am not sure whether my approach messes up things and I am
therefore looking for a general solution / patch to Makefile.am. Any
ideas?

Thank you!
Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-02 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-02 22:02 make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path Martin Walter
     [not found] <c55980430902100741h1ebf05f0l8ce337f199ece66e@mail.gmail.com>
2009-02-10 15:44 ` Martin Walter

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).