[llvm-bugs] [Bug 45862] New: Check for newlib broken: catopen

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 9 14:08:25 PDT 2020


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

            Bug ID: 45862
           Summary: Check for newlib broken: catopen
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: littlefox at lf-net.org
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

In line 298 of include/__config in libcxx is a check for _NEWLIB_VERSION. Since
this header never includes a thing, this macro is not yet defined and the check
never finds newlib. Since this function is not available with newlib,
compilation fails.

This commit removes the last include in the file which was enough:
https://github.com/llvm/llvm-project/commit/6dec6d896f367334f85f1f522f4d37154d785bd4

Since that commit is very old, this check is either broken for a very long time
or other includes were added and removed since then (searched from the past to
until it is broken, not from current backwards).

-- 
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/20200509/dc1ae6b5/attachment-0001.html>


More information about the llvm-bugs mailing list