<div dir="ltr">Should be able to build llvm 3.5, as it implements c++11, but does not require it. And then use that to build current llvm.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 23, 2016 at 12:01 AM, Dimitry Andric via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You cannot build any llvm or clang releases after 3.4 on FreeBSD 8.x natively, as it is not C++11 capable.  You need to use at least FreeBSD 10.x, which comes with clang 3.4.1 and libc++, providing C++11 support.<br>
<br>
Also, please note that FreeBSD 8.x is officially EOLed as of August 1, 2015.<br>
<br>
That said, you might have some success if you install a recent gcc port.  You will most likely have to manually apply <a href="https://svnweb.freebsd.org/base?view=revision&revision=297212" rel="noreferrer" target="_blank">https://svnweb.freebsd.org/base?view=revision&revision=297212</a> though, as I have not merged that back to FreeBSD 8.<br>
<br>
-Dimitry<br>
<div class="HOEnZb"><div class="h5"><br>
On 22 Jun 2016, at 22:05, Sushil pangeni via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i carried out<br>
><br>
> 1. Downloaded the source from <a href="http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz" rel="noreferrer" target="_blank">http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz</a><br>
> 2. Extracted the source into a folder.<br>
> 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src<br>
> 4. Started the build using $cmake --build .<br>
><br>
> It throws the following error<br>
><br>
> /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()':<br>
> /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: error: 'strtoll' was not declared in this scope<br>
>        CurIntVal = strtoll(NumStart, nullptr, 16);<br>
>                                                 ^<br>
> /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: error: 'strtoull' was not declared in this scope<br>
>          CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16);<br>
>                                                             ^<br>
> /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: error: 'strtoll' was not declared in this scope<br>
>        CurIntVal = strtoll(NumStart, nullptr, 2);<br>
>                                                ^<br>
> /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: error: 'strtoll' was not declared in this scope<br>
>    CurIntVal = strtoll(TokStart, nullptr, 10);<br>
> GCC Version = 4.9.2 CMAKE version = 3.2.3<br>
><br>
> I also tried to include stdlib.h in the file llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help.<br>
><br>
> Is there any configuration I am missing ?<br>
<br>
<br>
</div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>