Skip to contentSkip to conversation

jamvm: Disable inlining

PATCH In review Marek Belisko 4 participants 4 messages Mar 7, 2019 – Dec 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jamvm: Disable inlining

This will fix crashes seen when build openjdk-8:

ERROR: jaxp1.3-native-1.4.01-r0 do_compile: Function failed: do_compile (log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Logfile of failure stored in: /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894
Log data follows:

| DEBUG: Executing shell function do_compile
| Illegal instruction (core dumped)
| WARNING: exit code 132 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)

ERROR: Task (virtual:native:/home/jenkins/meta-java/recipes-core/xml-commons/jaxp1.3_1.4.01.bb:do_compile) failed with exit code '1'

---
 recipes-core/jamvm/jamvm.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/jamvm/jamvm.inc +1 -1
index fc21380..8a1ed63 100644
@@ -29,7 +29,7 @@ do_configure_append_class-native() {
 }
 
 
-EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi"
+EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining"
 
 # Needed for big compilation targets like OpenJDK
 CFLAGS_append_class-native = " -DDEFAULT_MAX_HEAP=1024*MB"
Signature · 1 line
2.7.4
#1 lore raw

Ping. any comments on this?

Quoted 39 lines · Marek Belisko

This will fix crashes seen when build openjdk-8:

ERROR: jaxp1.3-native-1.4.01-r0 do_compile: Function failed: do_compile
(log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Logfile of failure stored in:
/home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894 Log data follows:

| DEBUG: Executing shell function do_compile
| Illegal instruction (core dumped)
| WARNING: exit code 132 from a shell command.
| ERROR: Function failed: do_compile (log file is located at

/home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Task (virtual:native:/home/jenkins/meta-java/recipes-core/xml-commons/jaxp1.3_1.4.01.bb:do_compile) failed with exit code '1'

---
 recipes-core/jamvm/jamvm.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/jamvm/jamvm.inc +1 -4
index fc21380..8a1ed63 100644
@@ -29,7 +29,7 @@ do_configure_append_class-native() {
 }
 
 
-EXTRA_OECONF = "--with-classpath-install-dir=${prefix}
--libdir=${libdir}/jamvm --enable-ffi"
+EXTRA_OECONF = "--with-classpath-install-dir=${prefix}
--libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining"
 
 # Needed for big compilation targets like OpenJDK
 CFLAGS_append_class-native = " -DDEFAULT_MAX_HEAP=1024*MB"
--
Quoted 3 lines

2.7.4

marek

#2 lore raw

Hi Marek,
Thanks for your patch. I can confirm that this resolves the Illegal instruction issue for me on gcc-7.4 and Morty branch. I don't think there should be any difference for master branch regarding this fix, in other words it must be applicable to master too.

Thanks,
Vyacheslav

Quoted 48 lines · Belisko Marek

Ping. any comments on this?

Quoted 39 lines · Marek Belisko

This will fix crashes seen when build openjdk-8:

ERROR: jaxp1.3-native-1.4.01-r0 do_compile: Function failed: do_compile
(log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Logfile of failure stored in:
/home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894 Log data follows:

| DEBUG: Executing shell function do_compile
| Illegal instruction (core dumped)
| WARNING: exit code 132 from a shell command.
| ERROR: Function failed: do_compile (log file is located at

/home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Task (virtual:native:/home/jenkins/meta-java/recipes-core/xml-commons/jaxp1.3_1.4.01.bb:do_compile) failed with exit code '1'

---
  recipes-core/jamvm/jamvm.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/jamvm/jamvm.inc +1 -4
index fc21380..8a1ed63 100644
@@ -29,7 +29,7 @@ do_configure_append_class-native() {
  }
 
 
-EXTRA_OECONF = "--with-classpath-install-dir=${prefix}
--libdir=${libdir}/jamvm --enable-ffi"
+EXTRA_OECONF = "--with-classpath-install-dir=${prefix}
--libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining"
 
  # Needed for big compilation targets like OpenJDK
  CFLAGS_append_class-native = " -DDEFAULT_MAX_HEAP=1024*MB"
--
Quoted 3 lines

2.7.4

marek

#3 lore raw
In reply to Marek Belisko

Hi,
this is a note to let you know that I've just added this patch to the master-next branch of the meta-java repository at
git://git.yoctoproject.org/meta-java

As soon as it has gone through some more testing it will likely be merged to the master branch.

If you have any questions, please let me know.

regards;Richard.L

Quoted 31 lines · Marek Belisko

This will fix crashes seen when build openjdk-8:

ERROR: jaxp1.3-native-1.4.01-r0 do_compile: Function failed: do_compile (log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)
ERROR: Logfile of failure stored in: /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894
Log data follows:

| DEBUG: Executing shell function do_compile
| Illegal instruction (core dumped)
| WARNING: exit code 132 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/my_build/tmp/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.28894)

ERROR: Task (virtual:native:/home/jenkins/meta-java/recipes-core/xml-commons/jaxp1.3_1.4.01.bb:do_compile) failed with exit code '1'

---
  recipes-core/jamvm/jamvm.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/jamvm/jamvm.inc +1 -1
index fc21380..8a1ed63 100644
@@ -29,7 +29,7 @@ do_configure_append_class-native() {
  }
 
 
-EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi"
+EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining"
 
  # Needed for big compilation targets like OpenJDK
  CFLAGS_append_class-native = " -DDEFAULT_MAX_HEAP=1024*MB"