This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: libjava issues with arm-linux-gcj from arm-linux-gcc 3.3.2


Nathan M writes:
 > On 16 Aug 2005 09:25:42 -0600, Tom Tromey <tromey@redhat.com> wrote:
 > > >>>>> "Nathan" == Nathan M <ngmlinux@gmail.com> writes:
 > > 
 > > Nathan> While trying to use the arm-linux-gcj cross compiler included in
 > > Nathan> compulab's arm-linux-gcc 3.3.2 tools, I get the following error
 > > Nathan> message:
 > > 
 > > Nathan> [root@localhost java_xcompile]# arm-linux-gcj HelloWorld.java
 > > Nathan> HelloWorld.java:0: error: Can't find default package `java.lang'.
 > > Nathan> Check the CLASSPATH environment variable and the access to the
 > > Nathan> archives
 > > 
 > > Tom> Usually this means that gcj was built and installed, but libgcj was
 > > Tom> not.
 > > 
 > > Nathan> [root@localhost libjava]# ./configure --enable-threads=posix
 > > Nathan> --prefix=/usr/local/arm/3.3.2/bin/
 > > 
 > > Tom> It sounds as though you are trying to build libgcj separately, using
 > > Tom> an installed gcj.  Is that right?  That is not a supported thing to
 > > Tom> do.  In particular configure is not set up for this.  Instead you have
 > > Tom> to build the compiler (including libgcj) in its entirety.
 > 
 > I obtained arm-linux-gcc 3.3.2 (misslabeled as 3.3.3) as a
 > semi-compiled binary from CompuLab
 > (http://www.compulab.co.il/armgx-developer.htm -> Operating Systems ->
 > Linux - cross compilation tools chain for GCC 3.3.3). which includes 
 > arm-linux-gcc and arm-linux-gcj.  I say semicompiled because
 > arm-linux-gcc works just by unzipping/untarring the file.  However
 > libjava is not compiled and I can't get it to compile for the reasons
 > I previously mentioned and thus arm-linux-gcj does not work (can't
 > find java.lang).  However, since there is no master makefile availible
 > in the file (as it's already compiled for the most part), I can't
 > recompile the whole package.  I guess I could try and obtain the
 > arm-linux-gcj 3.3.x tools source elsewere and compile it, I'm just
 > afraid I'll be missing any patches or modifications to the toolchain
 > neccissary for Compulab hardware.  Any ideas?  I guess I could try an
 > arm-linux-gcc 3.3.2 chain (including gcc and gcj) from elsewhere. 
 > Anyone know where I could obtain the source from?

Whoever shipped you gcc must, under the terms of the GPL, also ship you
the sources that built it.

Andrew.


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