Sushil pangeni via llvm-dev
2016-Jun-22 20:05 UTC
[llvm-dev] Help building llvm on freebsd 8.4
I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i carried out 1. Downloaded the source from http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz 2. Extracted the source into a folder. 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src 4. Started the build using $cmake --build . It throws the following error /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()': /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: error: 'strtoll' was not declared in this scope CurIntVal = strtoll(NumStart, nullptr, 16); ^ /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: error: 'strtoull' was not declared in this scope CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16); ^ /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: error: 'strtoll' was not declared in this scope CurIntVal = strtoll(NumStart, nullptr, 2); ^ /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: error: 'strtoll' was not declared in this scope CurIntVal = strtoll(TokStart, nullptr, 10); GCC Version = 4.9.2 CMAKE version = 3.2.3 I also tried to include stdlib.h in the file llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help. Is there any configuration I am missing ? -- SHUSHIL -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160622/8760f1a7/attachment.html>
Dimitry Andric via llvm-dev
2016-Jun-22 21:01 UTC
[llvm-dev] Help building llvm on freebsd 8.4
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. Also, please note that FreeBSD 8.x is officially EOLed as of August 1, 2015. That said, you might have some success if you install a recent gcc port. You will most likely have to manually apply https://svnweb.freebsd.org/base?view=revision&revision=297212 though, as I have not merged that back to FreeBSD 8. -Dimitry On 22 Jun 2016, at 22:05, Sushil pangeni via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i carried out > > 1. Downloaded the source from http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz > 2. Extracted the source into a folder. > 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src > 4. Started the build using $cmake --build . > > It throws the following error > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()': > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: error: 'strtoll' was not declared in this scope > CurIntVal = strtoll(NumStart, nullptr, 16); > ^ > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: error: 'strtoull' was not declared in this scope > CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16); > ^ > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: error: 'strtoll' was not declared in this scope > CurIntVal = strtoll(NumStart, nullptr, 2); > ^ > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: error: 'strtoll' was not declared in this scope > CurIntVal = strtoll(TokStart, nullptr, 10); > GCC Version = 4.9.2 CMAKE version = 3.2.3 > > I also tried to include stdlib.h in the file llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help. > > Is there any configuration I am missing ?-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160622/16b4753d/attachment.sig>
Bruce Hoult via llvm-dev
2016-Jun-22 21:42 UTC
[llvm-dev] Help building llvm on freebsd 8.4
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. On Thu, Jun 23, 2016 at 12:01 AM, Dimitry Andric via llvm-dev < llvm-dev at lists.llvm.org> wrote:> 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. > > Also, please note that FreeBSD 8.x is officially EOLed as of August 1, > 2015. > > That said, you might have some success if you install a recent gcc port. > You will most likely have to manually apply > https://svnweb.freebsd.org/base?view=revision&revision=297212 though, as > I have not merged that back to FreeBSD 8. > > -Dimitry > > On 22 Jun 2016, at 22:05, Sushil pangeni via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps > i carried out > > > > 1. Downloaded the source from > http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz > > 2. Extracted the source into a folder. > > 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src > > 4. Started the build using $cmake --build . > > > > It throws the following error > > > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member > function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()': > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: > error: 'strtoull' was not declared in this scope > > CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 2); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(TokStart, nullptr, 10); > > GCC Version = 4.9.2 CMAKE version = 3.2.3 > > > > I also tried to include stdlib.h in the file > llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help. > > > > Is there any configuration I am missing ? > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160623/a72b0a32/attachment.html>
Sushil pangeni via llvm-dev
2016-Jun-23 00:58 UTC
[llvm-dev] Help building llvm on freebsd 8.4
Hi, Thanks for the information. Is it possible to compile LLVM 3.8 in FreeBSD 10.x and eventually use/run it on 8.4. Our production environment is running 8.4 and we cannot update it. Thanks, Sushil Pangeni On Wed, Jun 22, 2016 at 2:01 PM, Dimitry Andric <dimitry at andric.com> wrote:> 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. > > Also, please note that FreeBSD 8.x is officially EOLed as of August 1, > 2015. > > That said, you might have some success if you install a recent gcc port. > You will most likely have to manually apply > https://svnweb.freebsd.org/base?view=revision&revision=297212 though, as > I have not merged that back to FreeBSD 8. > > -Dimitry > > On 22 Jun 2016, at 22:05, Sushil pangeni via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps > i carried out > > > > 1. Downloaded the source from > http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz > > 2. Extracted the source into a folder. > > 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src > > 4. Started the build using $cmake --build . > > > > It throws the following error > > > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member > function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()': > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: > error: 'strtoull' was not declared in this scope > > CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 2); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(TokStart, nullptr, 10); > > GCC Version = 4.9.2 CMAKE version = 3.2.3 > > > > I also tried to include stdlib.h in the file > llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help. > > > > Is there any configuration I am missing ? > > >-- SHUSHIL -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160622/46373773/attachment.html>
Sushil pangeni via llvm-dev
2016-Jun-23 00:59 UTC
[llvm-dev] Help building llvm on freebsd 8.4
Hi, Thanks for the information. Is it possible to compile LLVM 3.8 in FreeBSD 10.x and eventually use/run it on 8.4. Our production environment is running 8.4 and we cannot update it. Thanks, Sushil Pangeni On Wed, Jun 22, 2016 at 2:01 PM, Dimitry Andric <dimitry at andric.com> wrote:> 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. > > Also, please note that FreeBSD 8.x is officially EOLed as of August 1, > 2015. > > That said, you might have some success if you install a recent gcc port. > You will most likely have to manually apply > https://svnweb.freebsd.org/base?view=revision&revision=297212 though, as > I have not merged that back to FreeBSD 8. > > -Dimitry > > On 22 Jun 2016, at 22:05, Sushil pangeni via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps > i carried out > > > > 1. Downloaded the source from > http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz > > 2. Extracted the source into a folder. > > 3. Created a build directory and inside it ran $ cmake ../llvm-3.8.0.src > > 4. Started the build using $cmake --build . > > > > It throws the following error > > > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member > function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()': > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: > error: 'strtoull' was not declared in this scope > > CurIntVal = (int64_t)strtoull(NumStart, nullptr, 16); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:414:47: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(NumStart, nullptr, 2); > > ^ > > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:429:44: > error: 'strtoll' was not declared in this scope > > CurIntVal = strtoll(TokStart, nullptr, 10); > > GCC Version = 4.9.2 CMAKE version = 3.2.3 > > > > I also tried to include stdlib.h in the file > llvm-3.8.0.src/lib/TableGen/TGLexer.cpp. This din't help. > > > > Is there any configuration I am missing ? > > >-- SHUSHIL -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160622/381122a1/attachment.html>