[llvm-bugs] [Bug 32436] New: Bogus non-portable path warnings

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 27 11:10:51 PDT 2017


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

            Bug ID: 32436
           Summary: Bogus non-portable path warnings
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lubos at dolezel.info
                CC: llvm-bugs at lists.llvm.org

Clang 4.0 reports bogus warnings about non-portable paths on Linux (where
non-portable paths probably can't even exist).

Example:
/home/lubos/Projects/darling/src/external/corefoundation/CoreFoundation/CFRunLoop.h:33:10:
warning: non-portable path to file '<corefoundation/CFDate.h>'; specified path
differs in case from file name on disk [-Wnonportable-include-path]
#include <CoreFoundation/CFDate.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~
         <corefoundation/CFDate.h>

This happens when building source code on Linux with '-target
x86_64-apple-darwin11' (crosscompiling).

As is obvious from the example above, it seems clang internally makes parts of
the include path lower case, only to later complain about it.

-- 
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/20170327/e8eb0be4/attachment.html>


More information about the llvm-bugs mailing list