All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java] [PATCH] cacao-initial-native build issues on gcc 4.4
@ 2015-06-24 15:27 Amy Fong
  2015-07-07 15:18 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Amy Fong @ 2015-06-24 15:27 UTC (permalink / raw)
  To: openembedded-devel, amy.fong

From 460ba5f0f8d995e430608ae41eb6527da61bcb3e Mon Sep 17 00:00:00 2001
From: Amy Fong <amy.fong@windriver.com>
Date: Tue, 23 Jun 2015 17:13:58 -0400
Subject: [PATCH] cacao-initial-native build issues on gcc 4.4

The following error is seen when cacao-initial is built with gcc 4.4:

  LOG: [0x00007f595fed3700] We received a SIGSEGV and tried to handle it, but we were |
  LOG: [0x00007f595fed3700] unable to find a Java method at: |
  LOG: [0x00007f595fed3700] |
  LOG: [0x00007f595fed3700] PC=0x0000000000459a37 |
  LOG: [0x00007f595fed3700] |
  LOG: [0x00007f595fed3700] Dumping the current stacktrace: |
          at java.lang.String.<clinit>()V(String.java:185) |
  LOG: [0x00007f595fed3700] Exiting... |
  Aborted (core dumped)

Adapting fix from the following (add -fno-strict-aliasing to CFLAGS):

  2009-06-24 Andrew John Hughes <ahughes@redhat.com>

  * patches/cacao/no-strict-aliasing.patch:
  New patch to fix CACAO build on GCC 4.4 (see PR129).
  * Makefile.am: Add new patch.
  * HACKING: Update.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 recipes-core/cacao/cacao-initial-native_0.98.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-core/cacao/cacao-initial-native_0.98.bb b/recipes-core/cacao/cacao-initial-native_0.98.bb
index 72c6246..0b49a35 100644
--- a/recipes-core/cacao/cacao-initial-native_0.98.bb
+++ b/recipes-core/cacao/cacao-initial-native_0.98.bb
@@ -40,3 +40,8 @@ do_configure_append() {
 
 SRC_URI[md5sum] = "8b8907c8b925761c9410bcadb9705346"
 SRC_URI[sha256sum] = "cb9363add825cedf77764fc49a223aaf43f0a9f485b711ba8c92f16b13fff188"
+
+do_configure_prepend() {
+        export CFLAGS="${CFLAGS} -fno-strict-aliasing"
+}
+
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [meta-java][PATCH] cacao-initial-native build issues on gcc 4.4
@ 2015-12-16 10:03 jackie.huang
  2015-12-17 12:38 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: jackie.huang @ 2015-12-16 10:03 UTC (permalink / raw)
  To: openembedded-devel

From: Amy Fong <amy.fong@windriver.com>

The following error is seen when cacao-initial is built with gcc 4.4:

  LOG: [0x00007f595fed3700] We received a SIGSEGV and tried to handle it, but we were |
  LOG: [0x00007f595fed3700] unable to find a Java method at: |
  LOG: [0x00007f595fed3700] |
  LOG: [0x00007f595fed3700] PC=0x0000000000459a37 |
  LOG: [0x00007f595fed3700] |
  LOG: [0x00007f595fed3700] Dumping the current stacktrace: |
          at java.lang.String.<clinit>()V(String.java:185) |
  LOG: [0x00007f595fed3700] Exiting... |
  Aborted (core dumped)

Adapting fix from the following (add -fno-strict-aliasing to CFLAGS):

  2009-06-24 Andrew John Hughes <ahughes@redhat.com>

  * patches/cacao/no-strict-aliasing.patch:
  New patch to fix CACAO build on GCC 4.4 (see PR129).
  * Makefile.am: Add new patch.
  * HACKING: Update.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 recipes-core/cacao/cacao-initial-native_0.98.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-core/cacao/cacao-initial-native_0.98.bb b/recipes-core/cacao/cacao-initial-native_0.98.bb
index 2a8ced5..a26e686 100644
--- a/recipes-core/cacao/cacao-initial-native_0.98.bb
+++ b/recipes-core/cacao/cacao-initial-native_0.98.bb
@@ -41,3 +41,8 @@ do_configure_append() {
 
 SRC_URI[md5sum] = "8b8907c8b925761c9410bcadb9705346"
 SRC_URI[sha256sum] = "cb9363add825cedf77764fc49a223aaf43f0a9f485b711ba8c92f16b13fff188"
+
+do_configure_prepend() {
+        export CFLAGS="${CFLAGS} -fno-strict-aliasing"
+}
+
-- 
2.3.5



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

end of thread, other threads:[~2015-12-17 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24 15:27 [meta-java] [PATCH] cacao-initial-native build issues on gcc 4.4 Amy Fong
2015-07-07 15:18 ` Otavio Salvador
  -- strict thread matches above, loose matches on Subject: below --
2015-12-16 10:03 [meta-java][PATCH] " jackie.huang
2015-12-17 12:38 ` Otavio Salvador

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.