Skip to content

libc++: Fails to build on linux: mips/mipsel/mips64el with unknown type name 'char_class_type' #42356

@sylvestre

Description

@sylvestre
Bugzilla Link 43011
Resolution FIXED
Resolved on Aug 26, 2019 09:04
Version 9.0
OS Linux
Blocks #41819
CC @zmodem,@miyuki,@mclow,@kraj,@atanasyan

Extended Description

In stage2:

cd "/<>/libcxx/build/src" && "/<>/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"/<>/libcxx/build/include/c++build" -I"/<>/libcxx/include" -g -O2 -fdebug-prefix-map=/<>=. -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 "/<>/libcxx/src/chrono.cpp"
In file included from /<>/libcxx/src/algorithm.cpp:10:
In file included from /<>/libcxx/src/algorithm.cpp:10:
In file included from /<>/libcxx/include/random:1645:
In file included from /<>/libcxx/include/istream:163:
In file included from /<>/libcxx/include/ostream:138:
In file included from /<>/libcxx/include/ios:215:
/<>/libcxx/include/__locale:412:50: error: unknown type name 'char_class_type'
static const mask __regex_word = static_cast<char_class_type>(_ISbit(15));
^
/<>/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

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillalibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions