All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaap de Jong <jaap.dejong@nedap.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: llvm fails to build
Date: Thu, 3 May 2012 10:40:44 +0200	[thread overview]
Message-ID: <4FA2448C.6050401@nedap.com> (raw)
In-Reply-To: <CAMKF1sr1DGqUtxsCxSmqAXmkM+k36GTyj1551zEZ4dJMss2SgQ@mail.gmail.com>

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
>


  reply	other threads:[~2012-05-03  8:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA2448C.6050401@nedap.com \
    --to=jaap.dejong@nedap.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.