react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.53k stars 289 forks source link

Compile error for rn 0.75.4, error: unkown type name 'concept' #585

Closed SidneyLann closed 1 month ago

SidneyLann commented 1 month ago

Task :app:buildCMakeDebug[arm64-v8a] C/C++: ninja: Entering directory `D:\DEV\git\repo_react\rn75\ReproducerApp\android\app.cxx\Debug\2i4l2f1t\arm64-v8a' C/C++: D:\DEV\Android\sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android23 --sysroot=D:/DEV/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dreact_codegen_rnpicker_EXPORTS -ID:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/. -ID:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/../../../build/generated/source/codegen/jni -ID:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/rnpicker -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/fb92af41f860783fe60d03c1e1dbd7ef/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/folly_runtime/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/glog/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/jsi/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_codegen_rncore/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_debug/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_core/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_debug/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_graphics/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_mapbuffer/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/rrc_view/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/turbomodulejsijni/include -isystem D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/yoga/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -fexceptions -frtti -std=c++17 -Wall -Wpedantic -Wno-gnu-zero-variadic-macro-arguments -DLOG_TAG=\"ReactNative\" -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -MD -MT rnpicker_autolinked_build/CMakeFiles/react_codegen_rnpicker.dir/RNCAndroidDialogPickerState.cpp.o -MF rnpicker_autolinked_build\CMakeFiles\react_codegen_rnpicker.dir\RNCAndroidDialogPickerState.cpp.o.d -o rnpicker_autolinked_build/CMakeFiles/react_codegen_rnpicker.dir/RNCAndroidDialogPickerState.cpp.o -c D:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/RNCAndroidDialogPickerState.cpp C/C++: In file included from D:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/RNCAndroidDialogPickerState.cpp:1: C/C++: In file included from D:/DEV/git/repo_react/rn75/ReproducerApp/node_modules/@react-native-picker/picker/android/src/main/jni/./RNCAndroidDialogPickerState.h:4: C/C++: In file included from D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_graphics/include/react/renderer/graphics/Geometry.h:11: C/C++: In file included from D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_render_graphics/include/react/renderer/graphics/Point.h:13: C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:16:1: error: unknown type name 'concept' C/C++: concept Hashable = !std::is_same_v<T, const char> && (requires(T a) { C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:16:65: error: 'T' does not refer to a value C/C++: concept Hashable = !std::is_same_v<T, const char> && (requires(T a) { C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:15:20: note: declared here C/C++: template C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:20:11: error: unknown type name 'Hashable' C/C++: template <Hashable T, Hashable... Rest> C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:20:23: error: unknown type name 'Hashable' C/C++: template <Hashable T, Hashable... Rest> C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:21:44: error: unknown type name 'T' C/C++: void hash_combine(std::size_t& seed, const T& v, const Rest&... rest) { C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:21:56: error: unknown type name 'Rest' C/C++: void hash_combine(std::size_t& seed, const T& v, const Rest&... rest) { C/C++: ^ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:21:61: error: type 'const int &' of function parameter pack does not contain any unexpanded parameter packs C/C++: void hash_combine(std::size_t& seed, const T& v, const Rest&... rest) { C/C++: ~~~^~~~ C/C++: D:/DEV/Android/.gradle/caches/8.8/transforms/1f00369f60fb558f4c67464032b9f89f/transformed/react-android-0.75.4-debug/prefab/modules/react_nativemodule_core/include/react/utils/hash_combine.h:22:21: error: template argument for template type parameter must be a type C/C++: seed ^= std::hash{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);

Reproducer: https://github.com/SidneyLann/rn75.git Steps:

  1. yarn
  2. yarn android
SidneyLann commented 1 month ago

2.8.1 work, sorry.