[llvm-bugs] [Bug 28370] New: llvm/Support/Solaris.h not found

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 30 06:27:41 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28370

            Bug ID: 28370
           Summary: llvm/Support/Solaris.h not found
           Product: Build scripts
           Version: trunk
          Hardware: All
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: ro at gcc.gnu.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16657
  --> https://llvm.org/bugs/attachment.cgi?id=16657&action=edit
Proposed patch

When performing the initial cmake run in an empty directory on
i386-pc-solaris2.12
(had the same problem before on Solaris 2.11), cmake fails with

-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG
-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG - Failed
CMake Error at projects/libcxx/CMakeLists.txt:298 (message):
  C++11 is required but the compiler does not support -std=c++11

In the log, I find

gmake[1]: Entering directory '/var/gcc/llvm/dist/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_4aa0c.dir/src.cxx.o
/usr/gcc/4.9/bin/g++     -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-Werror=date-time -std=c++11 -include llvm/Support/Solaris.h
-DLIBOMP_HAVE_STD_CPP11_FLAG   -std=c++11 -o
CMakeFiles/cmTC_4aa0c.dir/src.cxx.o -c
/var/gcc/llvm/dist/CMakeFiles/CMakeTmp/src.cxx
cc1plus: fatal error: llvm/Support/Solaris.h: No such file or directory
compilation terminated.

So no wonder there's no path specified for Solaris.h.  It seems this can only
work in an in-source build (if at all).

The fix is easy: just prefix with ${LLVM_MAIN_INCLUDE_DIR}/ as in the attached
patch.

This has allowed the cmake (and subsequent build) to complete.

While I would like to get rid of Solaris.h completely (it causes trouble
without end for an WIP sanitizer port), for the time being it should at least
work.

  Rainer

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160630/c658a3cf/attachment.html>


More information about the llvm-bugs mailing list