[llvm-bugs] [Bug 33228] New: new llvm::sys::fs::is_local_impl(statvfs&)' is toxic to Solaris build

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 30 13:06:54 PDT 2017


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

            Bug ID: 33228
           Summary: new llvm::sys::fs::is_local_impl(statvfs&)' is toxic
                    to Solaris build
           Product: libraries
           Version: trunk
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: Fedor.Sergeev at oracle.com
                CC: llvm-bugs at lists.llvm.org

After updating to the trunk from release_40 branch my x86-Solaris-11 build
starts failing:

=================
[  0%] Built target LLVMDemangle
[  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Path.cpp.o
In file included from /LLVM/llvm-50/llvm/lib/Support/Path.cpp:1220:0:
/LLVM/llvm-50/llvm/lib/Support/Unix/Path.inc: In function 'bool
llvm::sys::fs::is_local_impl(statvfs&)':
/LLVM/llvm-50/llvm/lib/Support/Unix/Path.inc:103:35: error: 'struct statvfs'
has no member named 'f_flags'
 #define STATVFS_F_FLAG(vfs) (vfs).f_flags
                                   ^
/LLVM/llvm-50/llvm/lib/Support/Unix/Path.inc:385:13: note: in expansion of
macro 'STATVFS_F_FLAG'
   return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL);
             ^
/fsergeev/LLVM/llvm-50/llvm/lib/Support/Unix/Path.inc:385:35: error:
'MNT_LOCAL' was not declared in this scope
   return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL);
                                   ^
gmake[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Path.cpp.o] Error 1
gmake[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
gmake: *** [all] Error 2
=================

Obviously statvfs usage is not compatible with Solaris interfaces.

-- 
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/20170530/c9b0b768/attachment.html>


More information about the llvm-bugs mailing list