From: Martin Walter <martin.walter@gmail.com>
To: cgen@sourceware.org
Subject: make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path
Date: Tue, 10 Feb 2009 15:44:00 -0000 [thread overview]
Message-ID: <c55980430902100743tf1bf41br77c542bc81a8f38@mail.gmail.com> (raw)
In-Reply-To: <c55980430902100741h1ebf05f0l8ce337f199ece66e@mail.gmail.com>
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
next parent reply other threads:[~2009-02-10 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c55980430902100741h1ebf05f0l8ce337f199ece66e@mail.gmail.com>
2009-02-10 15:44 ` Martin Walter [this message]
2009-04-02 22:02 Martin Walter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c55980430902100743tf1bf41br77c542bc81a8f38@mail.gmail.com \
--to=martin.walter@gmail.com \
--cc=cgen@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).