<div dir="ltr"><br clear="all"><div><div>I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i carried out</div><div><br></div><div>1. Downloaded the source from <a href="http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz">http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz</a></div><div>2. Extracted the source into a folder.</div><div>3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src</div><div>4. Started the build using $cmake --build .</div><div><br></div><div>It throws the following error</div><div><br></div><div>/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()':</div><div>/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: error: 'strtoll' was not declared in this scope</div><div> CurIntVal = strtoll(NumStart, nullptr, 16);</div><div> ^</div><div>/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: error: 'strtoull' was not declared in this scope</div><div> CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16);</div><div> ^</div><div>/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: error: 'strtoll' was not declared in this scope</div><div> CurIntVal = strtoll(NumStart, nullptr, 2);</div><div> ^</div><div>/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: error: 'strtoll' was not declared in this scope</div><div> CurIntVal = strtoll(TokStart, nullptr, 10);</div><div>GCC Version = 4.9.2 CMAKE version = 3.2.3</div><div><br></div><div>I also tried to include stdlib.h in the file llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help.</div><div><br></div><div>Is there any configuration I am missing ?</div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">SHUSHIL</div>
</div>