[llvm-bugs] [Bug 43011] New: libc++: Fails to build on linux: mips/mipsel with unknown type name 'char_class_type'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 15 12:29:50 PDT 2019


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

            Bug ID: 43011
           Summary: libc++: Fails to build on linux: mips/mipsel with
                    unknown type name 'char_class_type'
           Product: libc++
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
            Blocks: 42474

In stage2:

cd "/<<PKGBUILDDIR>>/libcxx/build/src" &&
"/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/bin/clang++"  -DNDEBUG
-D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_COMMENT_LIB_PRAGMA
-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
-I"/<<PKGBUILDDIR>>/libcxx/build/include/c++build"
-I"/<<PKGBUILDDIR>>/libcxx/include"  -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG  
-DLIBCXX_BUILDING_LIBCXXABI -std=c++11 -nostdinc++ -fvisibility-inlines-hidden
-Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long
-Werror=return-type -Wextra-semi -Wno-user-defined-literals
-Wno-covered-switch-default -Wno-ignored-attributes -Wno-error -o
CMakeFiles/cxx_static.dir/chrono.cpp.o -c
"/<<PKGBUILDDIR>>/libcxx/src/chrono.cpp"
In file included from /<<PKGBUILDDIR>>/libcxx/src/algorithm.cpp:10:
In file included from /<<PKGBUILDDIR>>/libcxx/src/algorithm.cpp:10:
In file included from /<<PKGBUILDDIR>>/libcxx/include/random:1645:
In file included from /<<PKGBUILDDIR>>/libcxx/include/istream:163:
In file included from /<<PKGBUILDDIR>>/libcxx/include/ostream:138:
In file included from /<<PKGBUILDDIR>>/libcxx/include/ios:215:
/<<PKGBUILDDIR>>/libcxx/include/__locale:412:50: error: unknown type name
'char_class_type'
    static const mask __regex_word = static_cast<char_class_type>(_ISbit(15));
                                                 ^
/<<PKGBUILDDIR>>/libcxx/include/__locale:412:67: warning: implicit conversion
from 'int' to 'const std::__1::ctype_base::mask' (aka 'const unsigned short')
changes value from 8388608 to 0 [-Wconstant-conversion]
    static const mask __regex_word = static_cast<char_class_type>(_ISbit(15));
                      ~~~~~~~~~~~~                                ^~~~~~~~~~
/usr/include/ctype.h:43:50: note: expanded from macro '_ISbit'
#  define _ISbit(bit)   ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8))
                                      ~~~~~~~~~~~~~^~~~

Full log:
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-9&arch=mipsel&ver=1%3A9%7E%2Brc2-1%7Eexp1&stamp=1565883314&raw=0

Probably the same issue on mips64el


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=42474
[Bug 42474] [meta] 9.0.0 Release Blockers
-- 
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/20190815/713e5ff2/attachment.html>


More information about the llvm-bugs mailing list