This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Java Compiler Build Failure


Thanks for your advices Doug!

Unfortunately results was the same by using /usr/bin/gjar-4.3 and by
using your patch, which makes sense as shouldn't the jar file be the
same whatever jar program I used - provided that it finnished without
complaints. Both mehods made valid jar (libgcj-4.3.2.jar).

But I managed getting further by increasing VirtualBox RAM size to
800MB. Unfortunately it failed again to gcj internal error which does
not sound very promising as there is not too much RAM to increase
anymore. Complaint are below if anyone can find any sense about them.

[ALL  ]    libtool: link: (cd ".libs" && rm -f "libgcj_bc.so.1" && ln
-s "libgcj_bc.so.1.0.0" "libgcj_bc.so.1")
[ALL  ]    libtool: link: (cd ".libs" && rm -f "libgcj_bc.so" && ln -s
"libgcj_bc.so.1.0.0" "libgcj_bc.so")
[ALL  ]    libtool: link:
/home/matti/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/bin/ar
rc .libs/libgcj_bc.a  libgcj_bc.o
[ALL  ]    libtool: link:
/home/matti/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/bin/ranlib
.libs/libgcj_bc.a
[ALL  ]    libtool: link: creating libgcj_bc.la
[ALL  ]    libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln
-s "../libgcj_bc.la" "libgcj_bc.la" )
[ALL  ]    i486-build_pc-linux-gnu-gcj -o ecjx -findirect-dispatch
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain
/opt/crosstool/targets/src/gcc-4.3.2/libjava/../ecj.jar
[ERROR]    i486-linux-gnu-gcj: Internal error: Killed (program jc1)
[ALL  ]    Please submit a full bug report.
[ALL  ]    See <file:///usr/share/doc/gcj-4.4/README.Bugs> for instructions.
[ERROR]    make[4]: *** [ecjx] Error 1
[ALL  ]    make[4]: Leaving directory
`/opt/crosstool/targets/arm-unknown-linux-gnueabi/build/build-cc/arm-unknown-linux-gnueabi/libjava'
[ERROR]    make[3]: *** [all-recursive] Error 1
[ALL  ]    make[3]: Leaving directory
`/opt/crosstool/targets/arm-unknown-linux-gnueabi/build/build-cc/arm-unknown-linux-gnueabi/libjava'
[ERROR]    make[2]: *** [all-target-libjava] Error 2
[ALL  ]    make[2]: Leaving directory
`/opt/crosstool/targets/arm-unknown-linux-gnueabi/build/build-cc'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory
`/opt/crosstool/targets/arm-unknown-linux-gnueabi/build/build-cc'
[ERROR]    Build failed in step 'Installing final compiler'
[ERROR]    Error happened in
'/usr/local/lib/ct-ng-hg_default@1943_48e107b35ba9/scripts/functions'
in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/usr/local/lib/ct-ng-hg_default@1943_48e107b35ba9/scripts/build/cc/gcc.sh'
at line # 392 in function 'do_cc'
[ERROR]          called from
'/usr/local/lib/ct-ng-hg_default@1943_48e107b35ba9/scripts/crosstool-NG.sh'
at line # 578 in function 'main'
[ERROR]    Look at
'/home/matti/x-tools/arm-unknown-linux-gnueabi/build.log' for more
info on this error.
[ERROR]  (elapsed: 3229:23.23)

-Matti


2010/5/23 Doug Kehn <rdkehn@yahoo.com>:
> Hi Matti, Yann, All,
>
> --- On Sun, 5/23/10, matti kaasinen <matti.kaasinen@gmail.com> wrote:
>
>> From: matti kaasinen <matti.kaasinen@gmail.com>
>> Subject: Re: Java Compiler Build Failure
>> To: "Doug Kehn" <rdkehn@yahoo.com>
>> Cc: crossgcc@sourceware.org, yann.morin.1998@anciens.enib.fr
>> Date: Sunday, May 23, 2010, 8:43 AM
>>
>> This http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31570
>> seems
>> explaining my problem. I have run this on VirtualBox
>> installation that
>> has currently only 384 MB cpu memory whereas at least 512MB
>> should be
>> needed. I used to have dual boot Ubuntu that run out memory
>> space.
>> Resizing Ubuntu section led to Vista re-installation....
>> Therefore, I
>> tried this VirtualBox instead of dual boot. Well, I try
>> using little
>> more memory. I hope that it does not require too much over
>> 512MB
>> halting whole host.
>>
>
> Yeah, that reference is why I believe the problem to be with the host jar.
>
> Attached is a patch for gcc-4.4.3 that forces the GCC build to use the jar script from the gcc source tree (.../targets/src/gcc-4.4.3/libjava/scripts/jar.in) instead of the host's jar/fastjar/gjar. ?(For me, the .../targets/src/gcc-4.4.3/libjava/scripts/jar.in is placed in .../targets/arm-cortex_a8-linux-gnueabi/build/build-cc/arm-cortex_a8-linux-gnueabi/libjava/scripts/jar).
>
> After applying the patch crosstools-ng-1.7.0 built the java compiler. ?I haven't had time to test the resulting compiler. ?I'll try to get to it as soon as I can. ?Maybe someone can use this patch to confirm that the java compiler builds and maybe verify the resulting compiler works.
>
> BTW, the attached patch goes in the <crosstool-ng-1.7.0-install-dir>/patches/gcc/4.4.3/ directory.
>
> Regards,
> ...doug
>
>
>
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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