-
Notifications
You must be signed in to change notification settings - Fork 191
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
CMake Error while running in RN 0.75 (newArchEnabled = true) #661
Comments
Hi Team, Any updates on this ? |
Hey @anbumagan could you run |
Here it is, info Fetching system and libraries information... info React Native v0.76.2 is now available (your project is running on v0.75.4). |
Hi @atlj Any updates on this? |
Hi @atlj Any updates on this issue ? |
it seems that there maybe an issue in react native's codegen script, or the docs are outdated. i have reached out to meta about this issue |
currently codegen doesn't generate all required files such as `Android.mk`, `CMakeLists.txt` etc. for fabric when type is set to `components`. so we use `all` for now until this bug is fixed. closes #661
Description
CMake Error at /Users/kishore/Documents/NEWARCH/MyApp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:138 (target_link_libraries): Cannot specify link libraries for target "react_codegen_RNTestlibSpec" which is not built by this project. Call Stack (most recent call first): CMakeLists.txt:31 (include) : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/kishore/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/kishore/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring incomplete, errors occurred! See also "/Users/kishore/Documents/NEWARCH/MyApp/android/app/.cxx/Debug/3vw6c6w4/arm64-v8a/CMakeFiles/CMakeOutput.log".
Packages
Selected options
Link to repro
Have created new react native library with above options
Environment
React Native
The text was updated successfully, but these errors were encountered: