Simone Atzeni via llvm-dev
2018-Jan-26 20:32 UTC
[llvm-dev] CMake warning when compiling Clang/LLVM
Hi, when I run cmake I get the following warning: --------------------------------------------------------------------------------------- CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message): Can't specify libc++ with '-stdlib=' Call Stack (most recent call first): cmake/config-ix.cmake:15 (include) CMakeLists.txt:580 (include) --------------------------------------------------------------------------------------- I am using GCC 4.8.5 to build on a x86_64 machine with RedHat OS. Any idea why? Thanks. Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180126/507ba9be/attachment.html>
Tom Stellard via llvm-dev
2018-Jan-26 20:36 UTC
[llvm-dev] CMake warning when compiling Clang/LLVM
On 01/26/2018 12:32 PM, Simone Atzeni via llvm-dev wrote:> Hi, > > when I run cmake I get the following warning: > > --------------------------------------------------------------------------------------- > CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message): > Can't specify libc++ with '-stdlib=' > Call Stack (most recent call first): > cmake/config-ix.cmake:15 (include) > CMakeLists.txt:580 (include) > --------------------------------------------------------------------------------------- > > I am using GCC 4.8.5 to build on a x86_64 machine with RedHat OS. > > Any idea why?What arguments are you passing to CMake and which version of LLVM are you trying to build? -Tom> > Thanks. > Simone > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
Jonas Hahnfeld via llvm-dev
2018-Jan-26 20:46 UTC
[llvm-dev] CMake warning when compiling Clang/LLVM
Am 2018-01-26 21:36, schrieb Tom Stellard via llvm-dev:> On 01/26/2018 12:32 PM, Simone Atzeni via llvm-dev wrote: >> Hi, >> >> when I run cmake I get the following warning: >> >> --------------------------------------------------------------------------------------- >> CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message): >> Can't specify libc++ with '-stdlib=' >> Call Stack (most recent call first): >> cmake/config-ix.cmake:15 (include) >> CMakeLists.txt:580 (include) >> --------------------------------------------------------------------------------------- >> >> I am using GCC 4.8.5 to build on a x86_64 machine with RedHat OS. >> >> Any idea why? > > What arguments are you passing to CMake and which version of LLVM are > you > trying to build?That's probably -DLLVM_ENABLE_LIBCXX=ON and the warning tells you the reason: -stdlib= is only supported if compiling with Clang, you can't specify it with GCC. Cheers, Jonas
Nat! via llvm-dev
2018-Jan-28 19:00 UTC
[llvm-dev] CMake warning when compiling Clang/LLVM
On 26.01.2018 21:32, Simone Atzeni via llvm-dev wrote:> Hi, > > when I run cmake I get the following warning: > > --------------------------------------------------------------------------------------- > CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message): > Can't specify libc++ with '-stdlib=' > Call Stack (most recent call first): > cmake/config-ix.cmake:15 (include) > CMakeLists.txt:580 (include) > --------------------------------------------------------------------------------------- > > > I am using GCC 4.8.5 to build on a x86_64 machine with RedHat OS. > > Any idea why?I had problems building the llvm libcxx libraries with gcc 5.3. I then used gcc 7 and my problems went away. That doesn't answer your question, but might be helpful down the road. :) Ciao Nat! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180128/299e1879/attachment.html>