<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Hello,</div><div> I get the following error while trying to configure an llvm build on Solaris 10-SPARC:</div><div><br></div><div id="yui_3_16_0_ym19_1_1467912109065_4473" dir="ltr">CMake Error at projects/libcxx/CMakeLists.txt:268 (message):<br id="yui_3_16_0_ym19_1_1467912109065_4400"> C++11 is required but the compiler does not support -std=c++11</div><div id="yui_3_16_0_ym19_1_1467912109065_4472" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1467912109065_4471" dir="ltr">However, the error is about a missing header file (llvm/Support/Solaris.h) as reported in build/CMakeFiles/CMakeError.log:</div><div id="yui_3_16_0_ym19_1_1467912109065_4434" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1467912109065_4453" dir="ltr">Performing C++ SOURCE FILE Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG failed with the following output:<br id="yui_3_16_0_ym19_1_1467912109065_4454">Change Dir: /export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmp</div><div id="yui_3_16_0_ym19_1_1467912109065_4455" dir="ltr">Run Build Command:"/usr/sfw/bin/gmake" "cmTC_67861/fast"<br id="yui_3_16_0_ym19_1_1467912109065_4456">/usr/sfw/bin/gmake -f CMakeFiles/cmTC_67861.dir/build.make CMakeFiles/cmTC_67861.dir/build<br id="yui_3_16_0_ym19_1_1467912109065_4457">gmake[1]: Entering directory `/export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmp'<br id="yui_3_16_0_ym19_1_1467912109065_4458">Building CXX object CMakeFiles/cmTC_67861.dir/src.cxx.o<br id="yui_3_16_0_ym19_1_1467912109065_4459">/export/home/netrac_fam/gtk3/bin/g++ -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strin<br id="yui_3_16_0_ym19_1_1467912109065_4460">gs -Wcast-qual -Wno-missing-field-initializers -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor<br id="yui_3_16_0_ym19_1_1467912109065_4461"> -Wno-comment -std=c++11 -fdata-sections -include llvm/Support/Solaris.h -DLIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG -s<br id="yui_3_16_0_ym19_1_1467912109065_4462">td=c++11 -o CMakeFiles/cmTC_67861.dir/src.cxx.o -c /export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeT<br id="yui_3_16_0_ym19_1_1467912109065_4463">mp/src.cxx<br id="yui_3_16_0_ym19_1_1467912109065_4464">cc1plus: fatal error: llvm/Support/Solaris.h: No such file or directory<br id="yui_3_16_0_ym19_1_1467912109065_4465">compilation terminated.<br id="yui_3_16_0_ym19_1_1467912109065_4466">gmake[1]: *** [CMakeFiles/cmTC_67861.dir/src.cxx.o] Error 1<br id="yui_3_16_0_ym19_1_1467912109065_4467">gmake[1]: Leaving directory `/export/home/netrac_fam/gtk3/src/bllvm/build/CMakeFiles/CMakeTmp'<br id="yui_3_16_0_ym19_1_1467912109065_4468">gmake: *** [cmTC_67861/fast] Error 2</div><div id="yui_3_16_0_ym19_1_1467912109065_4537" dir="ltr">Source file was:<br id="yui_3_16_0_ym19_1_1467912109065_4470">int main() { return 0; }</div><div id="yui_3_16_0_ym19_1_1467912109065_4538" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1467912109065_4553" dir="ltr">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?</div><div id="yui_3_16_0_ym19_1_1467912109065_4554" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1467912109065_4556" dir="ltr">Thanks,</div><div id="yui_3_16_0_ym19_1_1467912109065_4555" dir="ltr">Oscar.<br></div></div></body></html>