Openembedded Devel Discussions
 help / color / mirror / Atom feed
* llvm fails to build
@ 2012-05-03  6:33 Jaap de Jong
  2012-05-03  7:26 ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Jaap de Jong @ 2012-05-03  6:33 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

Hi all,

trying to compile openjdk-6, it fails with:

| 
/media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp: 
In constructor '{anonymous}::StatSymbols::StatSymbols()':
| 
/media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp:69:67: 
error: 'lseek64' was not declared in this scope
| make[2]: *** 
[lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o] Error 1
| make[2]: Leaving directory 
`/media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/build'
| make[1]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/all] Error 2
| make[1]: *** Waiting for unfinished jobs....

I'm using master branches.
Is this a known issue?
Any ideas how to solve?

Thanks,
Jaap



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

* Re: llvm fails to build
  2012-05-03  6:33 llvm fails to build Jaap de Jong
@ 2012-05-03  7:26 ` Khem Raj
  2012-05-03  8:40   ` Jaap de Jong
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2012-05-03  7:26 UTC (permalink / raw)
  To: openembedded-devel

On Wed, May 2, 2012 at 11:33 PM, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> Hi all,
>
> trying to compile openjdk-6, it fails with:
>
> |
> /media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp:
> In constructor '{anonymous}::StatSymbols::StatSymbols()':
> |
> /media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp:69:67:
> error: 'lseek64' was not declared in this scope
> | make[2]: ***
> [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o] Error 1
> | make[2]: Leaving directory
> `/media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/build'
> | make[1]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/all] Error 2
> | make[1]: *** Waiting for unfinished jobs....
>
> I'm using master branches.
> Is this a known issue?
> Any ideas how to solve?

you are using gcc 4.7 I guess. Fix is to add #include <unistd.h> in
Intercept.cpp
if that works then submit it to meta-java
>
> Thanks,
> Jaap
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



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

* Re: llvm fails to build
  2012-05-03  7:26 ` Khem Raj
@ 2012-05-03  8:40   ` Jaap de Jong
  2012-05-15  9:56     ` [meta-java][PATCH] llvm2.8: fix llvm compile error by including unistd.h Jan Luebbe
  0 siblings, 1 reply; 5+ messages in thread
From: Jaap de Jong @ 2012-05-03  8:40 UTC (permalink / raw)
  To: openembedded-devel

Thanks!
That helps a lot!!
Unfortunately I'm not familiar with submitting the patch... (shame on 
me! You may sent me a link for the howto)
However this is the patch I used

    diff --git a/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
    b/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
    index 274f816..a4e7eee 100644
    --- a/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
    +++ b/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
    @@ -19,6 +19,7 @@
      #include "llvm/Support/ErrorHandling.h"
      #include "llvm/System/DynamicLibrary.h"
      #include "llvm/Config/config.h"
    +#include <unistd.h>
      using namespace llvm;

      // AtExitHandlers - List of functions to call when the program exits,

Thanks again,
Jaap

On 05/03/2012 09:26 AM, Khem Raj wrote:
> On Wed, May 2, 2012 at 11:33 PM, Jaap de Jong<jaap.dejong@nedap.com>  wrote:
>> Hi all,
>>
>> trying to compile openjdk-6, it fails with:
>>
>> |
>> /media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp:
>> In constructor '{anonymous}::StatSymbols::StatSymbols()':
>> |
>> /media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp:69:67:
>> error: 'lseek64' was not declared in this scope
>> | make[2]: ***
>> [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/Intercept.cpp.o] Error 1
>> | make[2]: Leaving directory
>> `/media/OpenEmbedded/oe-core/build/tmp-angstrom_2010_x-eglibc/work/armv5te-angstrom-linux-gnueabi/llvm2.8-2.8-r0/llvm-2.8/build'
>> | make[1]: *** [lib/ExecutionEngine/JIT/CMakeFiles/LLVMJIT.dir/all] Error 2
>> | make[1]: *** Waiting for unfinished jobs....
>>
>> I'm using master branches.
>> Is this a known issue?
>> Any ideas how to solve?
> you are using gcc 4.7 I guess. Fix is to add #include<unistd.h>  in
> Intercept.cpp
> if that works then submit it to meta-java
>> Thanks,
>> Jaap
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>


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

* [meta-java][PATCH] llvm2.8: fix llvm compile error by including unistd.h
  2012-05-03  8:40   ` Jaap de Jong
@ 2012-05-15  9:56     ` Jan Luebbe
  2012-06-01  7:44       ` Henning Heinold
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Luebbe @ 2012-05-15  9:56 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Jan Luebbe

Thanks to Jaap de Jong and Khem Raj for reporing the problem and suggesting the fix.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 recipes-core/llvm/llvm2.8/add-unistd.patch |   12 ++++++++++++
 recipes-core/llvm/llvm2.8_2.8.bb           |    3 +++
 2 files changed, 15 insertions(+)
 create mode 100644 recipes-core/llvm/llvm2.8/add-unistd.patch

diff --git a/recipes-core/llvm/llvm2.8/add-unistd.patch b/recipes-core/llvm/llvm2.8/add-unistd.patch
new file mode 100644
index 0000000..1c51b30
--- /dev/null
+++ b/recipes-core/llvm/llvm2.8/add-unistd.patch
@@ -0,0 +1,12 @@
+Index: llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
+===================================================================
+--- llvm-2.8.orig/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-14 18:31:21.008318473 +0200
++++ llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-14 18:32:53.523734850 +0200
+@@ -19,6 +19,7 @@
+ #include "llvm/Support/ErrorHandling.h"
+ #include "llvm/System/DynamicLibrary.h"
+ #include "llvm/Config/config.h"
++#include <unistd.h>
+ using namespace llvm;
+ 
+ // AtExitHandlers - List of functions to call when the program exits,
diff --git a/recipes-core/llvm/llvm2.8_2.8.bb b/recipes-core/llvm/llvm2.8_2.8.bb
index 310e94e..3459885 100644
--- a/recipes-core/llvm/llvm2.8_2.8.bb
+++ b/recipes-core/llvm/llvm2.8_2.8.bb
@@ -4,9 +4,12 @@ require llvm.inc
 LICENSE = "NCSA"
 LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0ac5f799a2d89477c75b0a378b221855"
 
+PR = "r1"
+
 SRC_URI += " \
             file://30may-llvm2.8-pr399-ppc-arm.patch \
             file://0019-issue6065.patch \
+            file://add-unistd.patch \
            "
 
 SRC_URI_append_arm = " file://llvm-mc_disable.patch "
-- 
1.7.10




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

* Re: [meta-java][PATCH] llvm2.8: fix llvm compile error by including unistd.h
  2012-05-15  9:56     ` [meta-java][PATCH] llvm2.8: fix llvm compile error by including unistd.h Jan Luebbe
@ 2012-06-01  7:44       ` Henning Heinold
  0 siblings, 0 replies; 5+ messages in thread
From: Henning Heinold @ 2012-06-01  7:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Jan Luebbe

On Tue, May 15, 2012 at 11:56:02AM +0200, Jan Luebbe wrote:
> Thanks to Jaap de Jong and Khem Raj for reporing the problem and suggesting the fix.
> 
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  recipes-core/llvm/llvm2.8/add-unistd.patch |   12 ++++++++++++
>  recipes-core/llvm/llvm2.8_2.8.bb           |    3 +++
>  2 files changed, 15 insertions(+)
>  create mode 100644 recipes-core/llvm/llvm2.8/add-unistd.patch
> 
> diff --git a/recipes-core/llvm/llvm2.8/add-unistd.patch b/recipes-core/llvm/llvm2.8/add-unistd.patch
> new file mode 100644
> index 0000000..1c51b30
> --- /dev/null
> +++ b/recipes-core/llvm/llvm2.8/add-unistd.patch
> @@ -0,0 +1,12 @@
> +Index: llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp
> +===================================================================
> +--- llvm-2.8.orig/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-14 18:31:21.008318473 +0200
> ++++ llvm-2.8/lib/ExecutionEngine/JIT/Intercept.cpp	2012-05-14 18:32:53.523734850 +0200
> +@@ -19,6 +19,7 @@
> + #include "llvm/Support/ErrorHandling.h"
> + #include "llvm/System/DynamicLibrary.h"
> + #include "llvm/Config/config.h"
> ++#include <unistd.h>
> + using namespace llvm;
> + 
> + // AtExitHandlers - List of functions to call when the program exits,
> diff --git a/recipes-core/llvm/llvm2.8_2.8.bb b/recipes-core/llvm/llvm2.8_2.8.bb
> index 310e94e..3459885 100644
> --- a/recipes-core/llvm/llvm2.8_2.8.bb
> +++ b/recipes-core/llvm/llvm2.8_2.8.bb
> @@ -4,9 +4,12 @@ require llvm.inc
>  LICENSE = "NCSA"
>  LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0ac5f799a2d89477c75b0a378b221855"
>  
> +PR = "r1"
> +
>  SRC_URI += " \
>              file://30may-llvm2.8-pr399-ppc-arm.patch \
>              file://0019-issue6065.patch \
> +            file://add-unistd.patch \
>             "
>  
>  SRC_URI_append_arm = " file://llvm-mc_disable.patch "
> -- 
> 1.7.10

Thanks for the patch, it was applied to meta-java master and jdk-7 branch.

Bye Henning



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

end of thread, other threads:[~2012-06-01  7:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03  6:33 llvm fails to build Jaap de Jong
2012-05-03  7:26 ` Khem Raj
2012-05-03  8:40   ` Jaap de Jong
2012-05-15  9:56     ` [meta-java][PATCH] llvm2.8: fix llvm compile error by including unistd.h Jan Luebbe
2012-06-01  7:44       ` Henning Heinold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox