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: unassignedclangb...@nondot.org
          Reporter: little...@lf-net.org
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to