[llvm-bugs] [Bug 32479] New: Libcxx requires GNU extension when compiling with newlib

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 30 15:58:02 PDT 2017


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

            Bug ID: 32479
           Summary: Libcxx requires GNU extension when compiling with
                    newlib
           Product: libc++
           Version: 4.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rianquinn at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

When compiling Libcxx 3.9 and 4.0 with newlib, you get the following error:

/home/user/bfsysroot/build/libcxx/src/libcxx/include/__bsd_locale_fallbacks.h:121:17:
error: use of undeclared identifier 'vasprintf'
    int __res = vasprintf(__s, __format, __va);

This was not an issue with 3.8, and requires turning on GNU extensions to get
this to compile. This was compiled with clang --target=x86_64-elf

-- 
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/20170330/24f978bf/attachment.html>


More information about the llvm-bugs mailing list