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

Multiple File not found error in React Native 0.76.0 #662

Closed
Rohit3523 opened this issue Oct 24, 2024 · 10 comments · Fixed by #660
Closed

Multiple File not found error in React Native 0.76.0 #662

Rohit3523 opened this issue Oct 24, 2024 · 10 comments · Fixed by #660
Labels
bug report Something isn't working

Comments

@Rohit3523
Copy link

Environment

  • react-native info output:
System:
  OS: macOS 15.0.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 567.98 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.2
    path: ~/.nvm/versions/node/v20.12.2/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.5.0
    path: ~/.nvm/versions/node/v20.12.2/bin/npm
  Watchman:
    version: 2024.10.07.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK:
    API Levels:
      - "33"
      - "33"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-33 | Google Play ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12483815
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0-alpha.2
    wanted: 15.0.0-alpha.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: 0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: false
  • are you using the new architecture?
    Yes

  • which version of react & react-native are you using?
    react: 18.3.1
    react-native: 0.76.0

Description

After i enabled new architecture for android in latest version of react native, It started giving me the following errors

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.h:12:10: fatal error: 'folly/dynamic.h' file not found
C/C++: #include <folly/dynamic.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI.h:12:10: fatal error: 'ReactCommon/TurboModule.h' file not found
C/C++: #include <ReactCommon/TurboModule.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.h:12:10: fatal error: 'react/renderer/components/view/ViewProps.h' file not found
C/C++: #include <react/renderer/components/view/ViewProps.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>

C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp:11:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/RNCSlider.h:13:10: fatal error: 'ReactCommon/JavaTurboModule.h' file not found
C/C++: #include <ReactCommon/JavaTurboModule.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.h:4:10: fatal error: 'react/renderer/core/ConcreteComponentDescriptor.h' file not found
C/C++: #include <react/renderer/core/ConcreteComponentDescriptor.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>

C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp/react/renderer/components/RNCSlider/RNCSliderState.h:4:10: fatal error: 'folly/dynamic.h' file not found
C/C++: #include <folly/dynamic.h>

Full Log

> Task :app:buildCMakeDebug[arm64-v8a]
C/C++: ninja: Entering directory `/Users/rohit/Desktop/MinocularACC/android/app/.cxx/Debug/43k57w5c/arm64-v8a'
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.cpp:10:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/States.h:12:10: fatal error: 'folly/dynamic.h' file not found
C/C++: #include <folly/dynamic.h>
C/C++:          ^~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI-generated.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI-generated.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI-generated.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI-generated.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI-generated.cpp:10:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/RNCSliderJSI.h:12:10: fatal error: 'ReactCommon/TurboModule.h' file not found
C/C++: #include <ReactCommon/TurboModule.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.cpp:11:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.cpp:11:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/Props.h:12:10: fatal error: 'react/renderer/components/view/ViewProps.h' file not found
C/C++: #include <react/renderer/components/view/ViewProps.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.cpp:11:
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.h:13:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/RNCSlider-generated.cpp:11:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/RNCSlider.h:13:10: fatal error: 'ReactCommon/JavaTurboModule.h' file not found
C/C++: #include <ReactCommon/JavaTurboModule.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.cpp:2:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderMeasurementsManager.h:4:10: fatal error: 'react/renderer/core/ConcreteComponentDescriptor.h' file not found
C/C++: #include <react/renderer/core/ConcreteComponentDescriptor.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.cpp:11:
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ComponentDescriptors.h:13:
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/ShadowNodes.h:13:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: /Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android24 --sysroot=/Users/rohit/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -Dreact_codegen_RNCSlider_EXPORTS -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/. -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni -I/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/e042a6f83c25a066062a13ba39c63624/transformed/fbjni-0.6.0/prefab/modules/fbjni/include -isystem /Users/rohit/.gradle/caches/8.10.2/transforms/86a841b03b5a402e8f97f3024403cef0/transformed/react-android-0.76.0-debug/prefab/modules/jsi/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++20 -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 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.cpp.o' -MF RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.cpp.o.d -o 'RNCSlider_autolinked_build/CMakeFiles/react_codegen_RNCSlider.dir/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.cpp.o' -c '/Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.cpp'
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.cpp:1:
C/C++: In file included from /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/common/cpp/react/renderer/components/RNCSlider/RNCSliderShadowNode.h:4:
C/C++: /Users/rohit/Desktop/MinocularACC/node_modules/@react-native-community/slider/android/src/main/jni/../../../../common/cpp/react/renderer/components/RNCSlider/RNCSliderState.h:4:10: fatal error: 'folly/dynamic.h' file not found
C/C++: #include <folly/dynamic.h>
C/C++:          ^~~~~~~~~~~~~~~~~
C/C++: 1 error generated.

> Task :app:buildCMakeDebug[arm64-v8a] FAILED
@Rohit3523 Rohit3523 added the bug report Something isn't working label Oct 24, 2024
@UNIDY2002
Copy link

Same here.

@valery-lavrik
Copy link

Same here.

@goguda
Copy link

goguda commented Oct 24, 2024

same here

@goguda
Copy link

goguda commented Oct 24, 2024

Actually, looks like there's already a fix in main, just hasn't been released yet: e472653

Applying this fix manually with patch-package for now seems to have done the trick for us.

@Rohit3523
Copy link
Author

Literally we can just apply the same patch to multiple libraries to make them work 😂

I will wait for the release because I hate patching a package 🥲

@goguda
Copy link

goguda commented Oct 24, 2024

Literally we can just apply the same patch to multiple libraries to make them work 😂

I will wait for the release because I hate patching a package 🥲

Yup, same here, seems to be a lot of libs that need this fix. Probably going to hold off as well for a bit.

@BartoszKlonowski
Copy link
Member

Hello everyone!
Yes, the fix is already made (thanks @vonovak!) but will be released today.
Thank you for the patience and for reaching out.

@BartoszKlonowski BartoszKlonowski linked a pull request Oct 25, 2024 that will close this issue
@efstathiosntonas
Copy link

patch:

@react-native-community+slider+4.5.4.patch

diff --git a/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt b/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
index d338ae0..f720c8e 100644
--- a/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
+++ b/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
@@ -37,27 +37,38 @@ target_include_directories(
   ${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
 )
 
-target_link_libraries(
-  ${LIB_TARGET_NAME}
-  fbjni
-  folly_runtime
-  glog
-  jsi
-  react_codegen_rncore
-  react_debug
-  react_render_componentregistry
-  react_render_core
-  react_render_debug
-  react_render_graphics
-  react_render_imagemanager
-  react_render_mapbuffer
-  react_utils
-  react_nativemodule_core
-  rrc_image
-  turbomodulejsijni
-  rrc_view
-  yoga
-)
+# https://github.com/react-native-community/discussions-and-proposals/discussions/816
+# This if-then-else can be removed once this library does not support version below 0.76
+if (REACTNATIVE_MERGED_SO)
+  target_link_libraries(
+    ${LIB_TARGET_NAME}
+    fbjni
+    jsi
+    reactnative
+  )
+else()
+  target_link_libraries(
+    ${LIB_TARGET_NAME}
+    fbjni
+    folly_runtime
+    glog
+    jsi
+    react_codegen_rncore
+    react_debug
+    react_render_componentregistry
+    react_render_core
+    react_render_debug
+    react_render_graphics
+    react_render_imagemanager
+    react_render_mapbuffer
+    react_utils
+    react_nativemodule_core
+    rrc_image
+    turbomodulejsijni
+    rrc_view
+    yoga
+  )
+endif()
 
 target_compile_options(
   ${LIB_TARGET_NAME}

@Rohit3523
Copy link
Author

@BartoszKlonowski Thanks for merging the fix and please let us know once this get released 🙂

@BartoszKlonowski
Copy link
Member

Dears, letting you all know that v4.5.5 is now released!
Let me close this issue, but in case of any, please reach out.
Thank you!

@github-project-automation github-project-automation bot moved this from To be analyzed to Done in Slider-Board Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants