This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Re: Unable to find file ... cgen-opc.scm
- From: "Will Newton" <will dot newton at gmail dot com>
- To: "Joern Rennecke" <joernr at arc dot com>
- Cc: cgen at sourceware dot org
- Date: Fri, 28 Mar 2008 16:54:11 +0000
- Subject: Re: Unable to find file ... cgen-opc.scm
- References: <20080328153823.GC3590@elsdt-razorfish.arc.com>
On Fri, Mar 28, 2008 at 3:38 PM, Joern Rennecke <joernr@arc.com> wrote:
> My workstation was upgraded from Red Hat eEnterprise Linux 3 to
> Red Hat Enterprise Linux 5.1, and now my cgen rebuilds fail.
>
> After changing the cpu file, I always to a full rebuild, i.e.:
> cd ..;rm -rf bld-arc;mkdir bld-arc;cd bld-arc;../src/configure --target=arc-elf --enable-cgen-maint --with-guile=/usr;make all-sim CFLAGS=-g
>
> That worked fine before the upgrade. However, now I get:
>
> ...
> make[3]: Entering directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> make run-cgen arch=arc prefix=arc options=opinst \
> archfile=../../src/opcodes/../cpu/arc.cpu \
> opcfile=../../src/opcodes/../cpu/arc.opc extrafiles=opinst
> make[4]: Entering directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> /bin/sh ../../src/opcodes/cgen.sh opcodes ../../src/opcodes "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ../../src/opcodes/../cgen/guile.scm -s" \
> ../../src/opcodes/../cgen "-v" arc arc ../../src/opcodes/../cpu/arc.cpu ../../src/opcodes/../cpu/arc.opc \
> "opinst" "opinst"
> ERROR: In procedure primitive-load-path:
> ERROR: Unable to find file "../../src/opcodes/../cgen/cgen-opc.scm" in load path
> make[4]: *** [run-cgen] Error 1
> make[4]: Leaving directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> make[3]: *** [stamp-arc] Error 2
> make[3]: Leaving directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/scratch/cgen-20070427-arc-int/bld-arc/opcodes'
> make: *** [all-opcodes] Error 2
>
> Is there something wrong with the guile 1.8 that comes with RHEL 5, or
> do I need to apply some patch to cgen?
I have seen these kind of issues with cgen when using relative paths.
cgen (or guile) seems to prefer paths be absolute where possible, e.g.
CPUDIR.