All of lore.kernel.org
 help / color / mirror / Atom feed
* java -cacao issues
@ 2010-07-23  8:06 Jaap de Jong
  2010-07-23 10:14 ` Henning Heinold
  2010-07-23 14:39 ` Xerxes Rånby
  0 siblings, 2 replies; 4+ messages in thread
From: Jaap de Jong @ 2010-07-23  8:06 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Finally I've been able to build for at91sam9263ek without any errors...

    $ git log | head
    commit ebc2e1d43afa43877c29bc47c87f38792a791bd8
    Author: Martin Jansa <Martin.Jansa@gmail.com>
    Date:   Mon Jul 19 13:14:06 2010 +0200

         linux-openmoko-2.6.32: add missing patch, enable XFS, brtfs, GPT

         Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>


The following results on the target:

    # java -version
    Warning: no leading - on line 43 of
    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
    Warning: missing VM type on line 43 of
    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
    Warning: no leading - on line 43 of
    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
    Warning: missing VM type on line 43 of
    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Shark VM (build 14.0-b16, mixed mode)

After removing the trailing newline from 
/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg the warnings are gone:


    # java -version
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Shark VM (build 14.0-b16, mixed mode)

    # java -version -shark
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Shark VM (build 14.0-b16, mixed mode)

    # java -version -cacao
    LOG: [0x4001ec80] md_signal_handler_sigill: Unknown illegal
    instruction 0xed1c5a06 at 0x441dc790
    LOG: [0x4001ec80] Aborting...
    Aborted


cacao crashes...
Any ideas?

Jaap de Jong




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: java -cacao issues
  2010-07-23  8:06 java -cacao issues Jaap de Jong
@ 2010-07-23 10:14 ` Henning Heinold
  2010-07-23 14:39 ` Xerxes Rånby
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Heinold @ 2010-07-23 10:14 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Jul 23, 2010 at 10:06:01AM +0200, Jaap de Jong wrote:
> Hi,
> 
> Finally I've been able to build for at91sam9263ek without any errors...
> 
>    $ git log | head
>    commit ebc2e1d43afa43877c29bc47c87f38792a791bd8
>    Author: Martin Jansa <Martin.Jansa@gmail.com>
>    Date:   Mon Jul 19 13:14:06 2010 +0200
> 
>         linux-openmoko-2.6.32: add missing patch, enable XFS, brtfs, GPT
> 
>         Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> 
> 
> The following results on the target:
> 
>    # java -version
>    Warning: no leading - on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: missing VM type on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: no leading - on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: missing VM type on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
> 
> After removing the trailing newline from
> /usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg the warnings are
> gone:
> 
This is fixed in latest oe-dev. sed scripts now work proberly.

> 
>    # java -version
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
> 
>    # java -version -shark
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
> 
>    # java -version -cacao
>    LOG: [0x4001ec80] md_signal_handler_sigill: Unknown illegal
>    instruction 0xed1c5a06 at 0x441dc790
>    LOG: [0x4001ec80] Aborting...
>    Aborted

 
> cacao crashes...
> Any ideas?
> 
Enable USER_SPACE debugging in kernel
CONFIG_DEBUG_USER=y
boot with user_debug=1
and look at the dmesg which instruction is called.

> Jaap de Jong

Bye Henning



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: java -cacao issues
  2010-07-23  8:06 java -cacao issues Jaap de Jong
  2010-07-23 10:14 ` Henning Heinold
@ 2010-07-23 14:39 ` Xerxes Rånby
  2010-07-27  7:22   ` Jaap de Jong
  1 sibling, 1 reply; 4+ messages in thread
From: Xerxes Rånby @ 2010-07-23 14:39 UTC (permalink / raw)
  To: openembedded-devel



On 2010-07-23 10:06, Jaap de Jong wrote:
> Hi,
>
> Finally I've been able to build for at91sam9263ek without any errors...
>
>    $ git log | head
>    commit ebc2e1d43afa43877c29bc47c87f38792a791bd8
>    Author: Martin Jansa <Martin.Jansa@gmail.com>
>    Date:   Mon Jul 19 13:14:06 2010 +0200
>
>         linux-openmoko-2.6.32: add missing patch, enable XFS, brtfs, GPT
>
>         Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
>
> The following results on the target:
>
>    # java -version
>    Warning: no leading - on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: missing VM type on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: no leading - on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    Warning: missing VM type on line 43 of
>    `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
>
> After removing the trailing newline from
> /usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg the warnings are gone:
>
>
>    # java -version
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
>
>    # java -version -shark
>    java version "1.6.0_18"
>    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>    OpenJDK Shark VM (build 14.0-b16, mixed mode)
>
>    # java -version -cacao
>    LOG: [0x4001ec80] md_signal_handler_sigill: Unknown illegal
>    instruction 0xed1c5a06 at 0x441dc790
>    LOG: [0x4001ec80] Aborting...
>    Aborted
>
>
> cacao crashes...
> Any ideas?
Hi

Robert Schuster came up with the great idea that we have missed to
enable softfloat when building cacao + openjdk and it are quite likely
that we are building cacao with enabled VFP intructions that your armv5
hardware do not have.

It would be great if you could try to apply this patch on your oe.dev
tree and see if it fixes your problem.

Thanks,
Xerxes

======= snip

Index: org.openembedded.dev/recipes/openjdk/openjdk-6-common.inc
===================================================================
--- org.openembedded.dev.orig/recipes/openjdk/openjdk-6-common.inc	2010-07-23 15:36:52.000000000 +0200
+++ org.openembedded.dev/recipes/openjdk/openjdk-6-common.inc	2010-07-23 15:38:25.000000000 +0200
@@ -10,7 +10,7 @@
 S = "${WORKDIR}/${ICEDTEA}"
 B = "${S}/build"
 
-INC_PR = "r8"
+INC_PR = "r9"
 
 SRC_URI = "\
   ${ICEDTEA_URI} \
@@ -72,7 +72,9 @@
 export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
 export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
 export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
-export CACAO_CONFIGURE_ARGS = "--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
+export CACAO_CONFIGURE_ARGS = "\
+	${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
+	--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
 
 JAVA_HOME[unexport] = "1"



=== snap




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: java -cacao issues
  2010-07-23 14:39 ` Xerxes Rånby
@ 2010-07-27  7:22   ` Jaap de Jong
  0 siblings, 0 replies; 4+ messages in thread
From: Jaap de Jong @ 2010-07-27  7:22 UTC (permalink / raw)
  To: Xerxes Rånby; +Cc: openembedded-devel

Thanks!
Now it works!!
Jaap de Jong

    # java -version
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Shark VM (build 14.0-b16, mixed mode)

    # java -version -zero
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Zero VM (build 14.0-b16, mixed mode)

    # java -version -shark
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    OpenJDK Shark VM (build 14.0-b16, mixed mode)

    # java -version -cacao
    java version "1.6.0_18"
    IcedTea Runtime Environment (IcedTea6 1.8) (6b18-1.8)
    CACAO (build 0.99.4, compiled mode)



On 07/23/2010 04:39 PM, Xerxes Rånby wrote:
>
> On 2010-07-23 10:06, Jaap de Jong wrote:
>    
>> Hi,
>>
>> Finally I've been able to build for at91sam9263ek without any errors...
>>
>>     $ git log | head
>>     commit ebc2e1d43afa43877c29bc47c87f38792a791bd8
>>     Author: Martin Jansa<Martin.Jansa@gmail.com>
>>     Date:   Mon Jul 19 13:14:06 2010 +0200
>>
>>          linux-openmoko-2.6.32: add missing patch, enable XFS, brtfs, GPT
>>
>>          Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
>>
>>
>> The following results on the target:
>>
>>     # java -version
>>     Warning: no leading - on line 43 of
>>     `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>>     Warning: missing VM type on line 43 of
>>     `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>>     Warning: no leading - on line 43 of
>>     `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>>     Warning: missing VM type on line 43 of
>>     `/usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg'
>>     java version "1.6.0_18"
>>     OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>>     OpenJDK Shark VM (build 14.0-b16, mixed mode)
>>
>> After removing the trailing newline from
>> /usr/lib/jvm/java-6-openjdk/jre/lib/arm/jvm.cfg the warnings are gone:
>>
>>
>>     # java -version
>>     java version "1.6.0_18"
>>     OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>>     OpenJDK Shark VM (build 14.0-b16, mixed mode)
>>
>>     # java -version -shark
>>     java version "1.6.0_18"
>>     OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8)
>>     OpenJDK Shark VM (build 14.0-b16, mixed mode)
>>
>>     # java -version -cacao
>>     LOG: [0x4001ec80] md_signal_handler_sigill: Unknown illegal
>>     instruction 0xed1c5a06 at 0x441dc790
>>     LOG: [0x4001ec80] Aborting...
>>     Aborted
>>
>>
>> cacao crashes...
>> Any ideas?
>>      
> Hi
>
> Robert Schuster came up with the great idea that we have missed to
> enable softfloat when building cacao + openjdk and it are quite likely
> that we are building cacao with enabled VFP intructions that your armv5
> hardware do not have.
>
> It would be great if you could try to apply this patch on your oe.dev
> tree and see if it fixes your problem.
>
> Thanks,
> Xerxes
>
> ======= snip
>
> Index: org.openembedded.dev/recipes/openjdk/openjdk-6-common.inc
> ===================================================================
> --- org.openembedded.dev.orig/recipes/openjdk/openjdk-6-common.inc	2010-07-23 15:36:52.000000000 +0200
> +++ org.openembedded.dev/recipes/openjdk/openjdk-6-common.inc	2010-07-23 15:38:25.000000000 +0200
> @@ -10,7 +10,7 @@
>   S = "${WORKDIR}/${ICEDTEA}"
>   B = "${S}/build"
>
> -INC_PR = "r8"
> +INC_PR = "r9"
>
>   SRC_URI = "\
>     ${ICEDTEA_URI} \
> @@ -72,7 +72,9 @@
>   export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
>   export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
>   export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
> -export CACAO_CONFIGURE_ARGS = "--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
> +export CACAO_CONFIGURE_ARGS = "\
> +	${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
> +	--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
>
>   JAVA_HOME[unexport] = "1"
>
>
>
> === snap
>
>    


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-27  7:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23  8:06 java -cacao issues Jaap de Jong
2010-07-23 10:14 ` Henning Heinold
2010-07-23 14:39 ` Xerxes Rånby
2010-07-27  7:22   ` Jaap de Jong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.