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: problem with GCJ while running java code


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.


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