From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13287 invoked by alias); 10 Feb 2009 15:44:07 -0000 Received: (qmail 13279 invoked by uid 22791); 10 Feb 2009 15:44:07 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Feb 2009 15:43:56 +0000 Received: by fg-out-1718.google.com with SMTP id l26so1404291fgb.0 for ; Tue, 10 Feb 2009 07:43:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.86.60.14 with SMTP id i14mr726967fga.70.1234280633166; Tue, 10 Feb 2009 07:43:53 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Feb 2009 15:44:00 -0000 Message-ID: Subject: make: ERROR: Unable to find file "./../cgen/cgen-opc.scm" in load path From: Martin Walter To: cgen@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00015.txt.bz2 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=3D$PREFIX --target=3Dspear2-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=3Dspear2 prefix=3Dspear2 options=3Dopinst \ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0archfile=3D./../cpu/spear2.cpu opcfile=3D./../cpu/spear2.opc extrafiles=3Dopinst 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" \ =A0 =A0 =A0 =A0 =A0./../cgen "-v" spear2 spear2 ./../cpu/spear2.cpu ./../cp= u/spear2.opc \ =A0 =A0 =A0 =A0 =A0"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 =3D $(srcdir)/../cgen to something like CGENDIR =3D $(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