<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks for the information.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is it possible to compile LLVM 3.8 in FreeBSD 10.x and eventually use/run it on 8.4.</div><div style="font-size:12.8px">Our production environment is running 8.4 and we cannot update it.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Sushil Pangeni</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 22, 2016 at 2:01 PM, Dimitry Andric <span dir="ltr"><<a href="mailto:dimitry@andric.com" target="_blank">dimitry@andric.com</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>
<span class="HOEnZb"><font color="#888888"><br>
-Dimitry<br>
</font></span><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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">SHUSHIL</div>
</div>