This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]