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


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



      
--- gcc-4.4.3.orig/libjava/configure	2010-05-23 09:58:06.000000000 -0500
+++ gcc-4.4.3/libjava/configure	2010-05-23 10:06:42.000000000 -0500
@@ -4414,19 +4414,20 @@
   if test -n "$JAR"; then
   ac_cv_prog_JAR="$JAR" # Let the user override the test.
 else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_prog_JAR="$ac_prog"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
+  ac_cv_prog_JAR="no"
+#as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+#for as_dir in $PATH
+#do
+#  IFS=$as_save_IFS
+#  test -z "$as_dir" && as_dir=.
+#  for ac_exec_ext in '' $ac_executable_extensions; do
+#  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+#    ac_cv_prog_JAR="$ac_prog"
+#    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+#    break 2
+#  fi
+#done
+#done
 
 fi
 fi
--
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]