[llvm-dev] Configure error on Solaris 10

Oscar Guido via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 7 10:36:13 PDT 2016

Hello,    I get the following error while trying to configure an llvm build on Solaris 10-SPARC:
CMake Error at projects/libcxx/CMakeLists.txt:268 (message):
  C++11 is required but the compiler does not support -std=c++11
However, the error is about a missing header file (llvm/Support/Solaris.h) as reported in build/CMakeFiles/CMakeError.log:
Performing C++ SOURCE FILE Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG failed with the following output:
Change Dir: /export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmpRun Build Command:"/usr/sfw/bin/gmake" "cmTC_67861/fast"
/usr/sfw/bin/gmake -f CMakeFiles/cmTC_67861.dir/build.make CMakeFiles/cmTC_67861.dir/build
gmake[1]: Entering directory `/export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_67861.dir/src.cxx.o
/export/home/netrac_fam/gtk3/bin/g++     -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strin
gs -Wcast-qual -Wno-missing-field-initializers  -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor
 -Wno-comment -std=c++11 -fdata-sections -include llvm/Support/Solaris.h -DLIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG   -s
td=c++11 -o CMakeFiles/cmTC_67861.dir/src.cxx.o -c /export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeT
cc1plus: fatal error: llvm/Support/Solaris.h: No such file or directory
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_67861.dir/src.cxx.o] Error 1
gmake[1]: Leaving directory `/export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_67861/fast] Error 2Source file was:
int main() { return 0; }
What would be the proper way to add an include path, something like "-I/src" so that g++ can find llvm/Solaris.h whose full path would be /src/llvm/Solaris.h?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160707/cec373f4/attachment.html>

More information about the llvm-dev mailing list