Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenHarmony doesn't support pthread_setcancelstate. #187

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

eagleoflqj
Copy link
Contributor

Like Android, OpenHarmony doesn't support pthread_setcancelstate as well. The macro __OHOS__ can be found in llvm.

[4/5] Building CXX object libs/iostreams/CMakeFiles/boost_iostreams.dir/src/mapped_file.cpp.o FAILED: libs/iostreams/CMakeFiles/boost_iostreams.dir/src/mapped_file.cpp.o /tmp/command-line-tools/sdk/default/openharmony/native/llvm/bin/clang++ --target=x86_64-linux-ohos --gcc-toolchain=/tmp/command-line-tools/sdk/default/openharmony/native/llvm --sysroot=/tmp/command-line-tools/sdk/default/openharmony/native/sysroot -DBOOST_IOSTREAMS_NO_LIB -DBOOST_IOSTREAMS_STATIC_LINK -DBOOST_RANDOM_NO_LIB -DBOOST_RANDOM_STATIC_LINK -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/iostreams/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/assert/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/config/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/core/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/static_assert/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/throw_exception/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/detail/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/preprocessor/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/type_traits/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/function/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/bind/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/integer/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/iterator/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/concept_check/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/function_types/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/mpl/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/predef/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/utility/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/io/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/fusion/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/container_hash/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/describe/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/mp11/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/tuple/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/typeof/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/functional/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/optional/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/move/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/random/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/array/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/dynamic_bitset/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/range/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/conversion/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/regex/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/system/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/variant2/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/winapi/include -I/mnt/storage/github/fcitx5-prebuilder/boost/libs/numeric/conversion/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -D__MUSL__ -O2 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/iostreams/CMakeFiles/boost_iostreams.dir/src/mapped_file.cpp.o -MF libs/iostreams/CMakeFiles/boost_iostreams.dir/src/mapped_file.cpp.o.d -o libs/iostreams/CMakeFiles/boost_iostreams.dir/src/mapped_file.cpp.o -c /mnt/storage/github/fcitx5-prebuilder/boost/libs/iostreams/src/mapped_file.cpp clang++: warning: argument unused during compilation: '--gcc-toolchain=/tmp/command-line-tools/sdk/default/openharmony/native/llvm' [-Wunused-command-line-argument] In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/iostreams/src/mapped_file.cpp:19: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/iostreams/include/boost/iostreams/device/mapped_file.hpp:29: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/shared_ptr.hpp:17: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/smart_ptr/shared_ptr.hpp:30: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/smart_ptr/detail/spinlock.hpp:42: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/smart_ptr/include/boost/smart_ptr/detail/yield_k.hpp:22: In file included from /mnt/storage/github/fcitx5-prebuilder/boost/libs/core/include/boost/core/yield_primitives.hpp:10: /mnt/storage/github/fcitx5-prebuilder/boost/libs/core/include/boost/core/detail/sp_thread_sleep.hpp:73:5: error: use of undeclared identifier 'pthread_setcancelstate' pthread_setcancelstate( PTHREAD_CANCEL_DISABLE, &oldst ); ^ /mnt/storage/github/fcitx5-prebuilder/boost/libs/core/include/boost/core/detail/sp_thread_sleep.hpp:90:5: error: use of undeclared identifier 'pthread_setcancelstate' pthread_setcancelstate( oldst, &oldst ); ^ 2 errors generated. ninja: build stopped: subcommand failed.

@pdimov pdimov merged commit 7178a52 into boostorg:develop Jan 8, 2025
73 checks passed
@eagleoflqj eagleoflqj deleted the ohos branch January 8, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants