From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11158 invoked by alias); 3 Jun 2011 14:17:09 -0000 Received: (qmail 11144 invoked by uid 22791); 3 Jun 2011 14:17:08 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_GC,TW_IB,T_HK_NAME_DR,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jun 2011 14:16:54 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p53EGsGs019869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Jun 2011 10:16:54 -0400 Received: from rivendell.middle-earth.co.uk (vpn1-5-92.ams2.redhat.com [10.36.5.92]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p53EGo16003137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 3 Jun 2011 10:16:52 -0400 Date: Fri, 03 Jun 2011 14:17:00 -0000 From: Dr Andrew John Hughes To: Jie Liu Cc: java@gcc.gnu.org Subject: Re: error trying to exec 'ecj1': execvp: No such file or directory Message-ID: <20110603141649.GA25976@rivendell.middle-earth.co.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00007.txt.bz2 On 21:42 Fri 03 Jun , Jie Liu wrote: > Hi, > > I am trying to port gcj to RTEMS now and have got boehm-gc, libffi, > libjava compiled for RTEMS. But when I try to use i386-rtems-gcj to > compile HelloWorld for RTEMS after install, I got "error trying to > exec 'ecj1': execvp: No such file or directory" and don't know how to > fix it. Could somebody give me an help hand or an advice ? Very > Thanks. > > The error information can be seen below: > i386-rtems-gcj -v --main=HelloWorld HelloWorld.java -o Hello > Using built-in specs. > Reading specs from /mnt/gcj/mytoolchain/lib/gcc/i386-rtems/4.7.0/libgcj.spec > rename spec startfile to startfileorig > rename spec lib to liborig > COLLECT_GCC=i386-rtems-gcj > COLLECT_LTO_WRAPPER=/mnt/gcj/mytoolchain/libexec/gcc/i386-rtems/4.7.0/lto-wrapper > Target: i386-rtems > Configured with: ../gcc-trunk/configure --enable-threads=rtems > --with-gnu-as --enable-multilib --enable-newlib-mb > --enable-newlib-iconv --with-gnu-ld --with-newlib --verbose > --with-system-zlib --disable-nls > --enable-version-specific-runtime-libs --enable-languages=c,c++,java > --target=i386-rtems --prefix=/mnt/gcj/mytoolchain/ > --with-gmp=/mnt/gcj/gcj-rtems-work/gmpmpfrmpc > --with-mpfr=/mnt/gcj/gcj-rtems-work/gmpmpfrmpc > --with-mpc=/mnt/gcj/gcj-rtems-work/gmpmpfrmpc > Thread model: rtems > gcc version 4.7.0 20110409 (experimental) (GCC) > COLLECT_GCC_OPTIONS='-fsaw-java-file' '-v' '-o' 'Hello' > '-fbootclasspath=./:/mnt/gcj/mytoolchain/share/java/libgcj-4.7.0.jar' > '-g1' '-mtune=i386' '-march=i386' > ecj1 HelloWorld.java -g1 > -fbootclasspath=./:/mnt/gcj/mytoolchain/share/java/libgcj-4.7.0.jar > -g1 -fsource=1.5 -ftarget=1.5 -fzip-dependency /tmp/ccuWIrFF.zip > -fzip-target /tmp/cc7in4l3.jar > i386-rtems-gcj: error trying to exec 'ecj1': execvp: No such file or directory > make: *** [Hello] Error 1 > > Best Regards, > Jie Did you supply the build with an ecj.jar? contrib/download_ecj will obtain one for you. ecj1 is a natively compiled ecj binary used by gcj to compile Java source code to bytecode: $ file /home/andrew/build/gcj/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/ecj1 /home/andrew/build/gcj/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/ecj1: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and IcedTea http://www.gnu.org/software/classpath http://icedtea.classpath.org PGP Key: F5862A37 (https://keys.indymedia.org/) Fingerprint = EA30 D855 D50F 90CD F54D 0698 0713 C3ED F586 2A37