[oe] llvm fails to build

Jaap de Jong jaap.dejong at nedap.com
Thu May 3 08:40:44 UTC 2012


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 at 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 at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list