cacao-initial-native build issues on gcc 4.4
PATCH 1/1 cacao-initial-native build issues on gcc 4.4
From: Amy Fong <[email protected]>
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 <[email protected]>
* 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.
--- recipes-core/cacao/cacao-initial-native_0.98.bb | 5 +++++ 1 file changed, 5 insertions(+)
recipes-core/cacao/cacao-initial-native_0.98.bb +5 -0
@@ -41,3 +41,8 @@ do_configure_append() { SRC_URI[md5sum] = "8b8907c8b925761c9410bcadb9705346" SRC_URI[sha256sum] = "cb9363add825cedf77764fc49a223aaf43f0a9f485b711ba8c92f16b13fff188" + +do_configure_prepend() { + export CFLAGS="${CFLAGS} -fno-strict-aliasing" +} +
Signature · 1 line
2.3.5
Quoted 18 lines · On Wed, Dec 16, 2015 at 8:03 AM, <[email protected]> wrote:
From: Amy Fong <[email protected]>
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 <[email protected]>
Quoted 7 lines
*
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 <[email protected]>Signed-off-by Jackie Huang <[email protected]>
I understand there are people which uses old toolchain however I don't think we ought to add support for this on master. I think this specific patch should be handled by your vendor distro (or customer layer) as it adds non-needed code for OE-Core supported toolchains.
I am nacking this patch!
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750