This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: problem with GCJ while running java code
- From: Andrew Haley <aph at redhat dot com>
- To: Cesc <ffileppo at alice dot it>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 13 Apr 2008 23:07:27 +0100
- Subject: Re: problem with GCJ while running java code
- References: <15455624.post@talk.nabble.com> <47B2DBAD.50900@redhat.com> <15474342.post@talk.nabble.com> <47B40DE4.50801@redhat.com> <15477900.post@talk.nabble.com> <47B45137.8030506@redhat.com> <16648677.post@talk.nabble.com>
Cesc wrote:
>
> Andrew Haley wrote:
>>
>> Build gcc in a clean directory with --with-sysroot= pointing at your ARM
>> root filesystem:
>>
>> /home/aph/gcc/trunk/configure --prefix=/local/x-arm-gcc/install \
>> --with-sysroot=/local/x-arm-gcc/rootfs-f8 --disable-libssp
>> --disable-libgomp \
>> --disable-libmudflap --enable-libgcj --disable-bootstrap
>> --disable-multilib \
>> --disable-static --disable-sjlj-exceptions --target=arm-linux-gnueabi
>> --enable-languages=c,c++,java
>>
>> make
>>
>>
>
> Hi Andrew,
>
> thanks for your hint.
>
> I'm getting this error when I do make:
>
> ../.././gcc/config/arm/arm.c: In function âthumb_find_work_registerâ:
> ../.././gcc/config/arm/arm.c:3567: error: âstruct functionâ has no member
> named âargs_infoâ
> make[2]: *** [arm.o] Error 1
> make[2]: Leaving directory `/root/tmp/trunk/host-i686-pc-linux-gnu/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/root/tmp/trunk'
> make: *** [all] Error 2
>
>
> Config:
>
> ./configure --prefix=/root/tmp/f8/install
When I said "Build gcc in a clean directory" above *I really meant it*.
Don't configure in srcdir. I don't know if this is the cause of your
problem, but don't do it.
> --with-sysroot=/root/tmp/f8/rootfs-f8/ --disable-libssp --disable-libgomp
> --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib
> --disable-static --disable-sjlj-exceptions --target=arm-linux-gnueabi
> --enable-languages=c,c++,java
> --with-build-time-tools=/root/tmp/f8/rootfs-f8/usr/bin/
>
> I'm doing this with Kubuntu (2.6.22.4), does it matter? should I try with
> fedora 8?
That shouldn't make any difference.
Andrew.