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

Windows: Error: unable to open output file when enabling the new architecture #33528

Closed
ralppppy opened this issue Mar 31, 2022 · 44 comments
Closed
Labels
Platform: Android Android applications. Platform: Windows Building on Windows. Tech: Codegen Related to react-native-codegen Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@ralppppy
Copy link

Description

I've installed the new version 0.68 then enable the new architecture and try to run npx react-native run-android and it doesn't build. I believe that it is because the path has front and backlashes.

`BUILD FAILED in 3m 21s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native-gradle-plugin\src\main\java\com\facebook\react\codegen\generator\SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.

Build command failed.
Error while executing process C:\Users\user\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj NDK_LIBS_OUT=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/lib NDK_APPLICATION_MK=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j16 butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
[armeabi-v7a] Prebuilt : libc++_shared.so <= /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
[armeabi-v7a] Prebuilt : libfbjni.so <= D:/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/jni/first-party/fbjni/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= Assume.cpp
[armeabi-v7a] StaticLibrary : libcallinvoker.a
[armeabi-v7a] Compile++ thumb: folly_json <= ToAscii.cpp
[armeabi-v7a] SharedLibrary : libruntimeexecutor.so
[armeabi-v7a] Prebuilt : libhermes.so <= D:/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/build/third-party-ndk/hermes/jni/armeabi-v7a/
make: Nothing to be done for 'runtimeexecutor'.
[armeabi-v7a] Compile++ thumb: folly_json <= ScopeGuard.cpp
[armeabi-v7a] Prebuilt : libjsc.so <= D:/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: fabricjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= AsyncEventBeatV2.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ReactNativeConfigHolder.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= Binding.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountingManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= SurfaceHandlerBinding.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ComponentFactory.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= JBackgroundExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= json_pointer.cpp
[armeabi-v7a] Compile++ thumb: glog <= signalhandler.cc
[armeabi-v7a] Compile++ thumb: glog <= symbolize.cc
[armeabi-v7a] Compile++ thumb: glog <= raw_logging.cc
[armeabi-v7a] Compile++ thumb: glog <= vlog_is_on.cc
[armeabi-v7a] Compile++ thumb: glog <= utilities.cc
[armeabi-v7a] Compile++ thumb: glog <= demangle.cc
[armeabi-v7a] Compile++ thumb: glog <= logging.cc

error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/OnLoad.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/OnLoad.o] Error 1
make: *** Waiting for unfinished jobs....
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/ReactNativeConfigHolder.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/ReactNativeConfigHolder.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/SurfaceHandlerBinding.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/SurfaceHandlerBinding.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/ComponentFactory.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/ComponentFactory.o] Error 1
error: unable to open output file 'D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/JBackgroundExecutor.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/user/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:478: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/JBackgroundExecutor.o] Error 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Version

0.68

Output of npx react-native info

System:
OS: Windows 10 10.0.22000
CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
Memory: 212.03 MB / 6.68 GB
Binaries:
Node: 14.17.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 7.19.1 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.1.0, 33.0.0, 33.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8193401
Visual Studio: Not Found
Languages:
Java: 17.0.2 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0 => 0.68.0
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  • In windows machine install fresh version of RN
  • Enable new architecture in gradle.properties. newArchEnabled=true
  • run npx react-native run-android

Snack, code example, screenshot, or link to a repository

No response

@slaci
Copy link

slaci commented Mar 31, 2022

The same happens for me too. The same app builds on a Mac (for android ofc) without problems, but on Windows the buildNdkBuildDebug task fails with these No such file or directory errors.

@mganandraj
Copy link
Contributor

mganandraj commented Mar 31, 2022

Hello @ralppppy @slaci , Could you confirm whether the long file paths are enabled on your Windows box ?

The paths in log are extremely long. for example this path is 307 characters which is more that default maximum: D:\PERSONAL\PROGRAMMING\REACTNATIVE\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\363s2q4f/obj/local/armeabi-v7a/objs-debug/fabricjni/D_/PERSONAL/PROGRAMMING/REACTNATIVE/TestnewArc/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/OnLoad.o

Long file paths are not enabled by default on Windows yet

@ralppppy
Copy link
Author

Hi @mganandraj I've enabled the long path, it actually changed something but I still get an error.

`BUILD FAILED in 4m 6s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: D:\TestnewArc\node_modules\react-native-gradle-plugin\src\main\java\com\facebook\react\codegen\generator\SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.

Build command failed.
Error while executing process C:\Users\Ralp\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\TestnewArc\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\351u4r48/obj NDK_LIBS_OUT=D:\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\351u4r48/lib NDK_APPLICATION_MK=D:\TestnewArc\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=D:\TestnewArc\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=D:\TestnewArc\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=D:\TestnewArc\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=D:\TestnewArc\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j16 butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
[armeabi-v7a] Prebuilt : libc++_shared.so <= /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
[armeabi-v7a] Prebuilt : libfbjni.so <= D:/TestnewArc/node_modules/react-native/ReactAndroid/src/main/jni/first-party/fbjni/jni/armeabi-v7a/
[armeabi-v7a] StaticLibrary : libcallinvoker.a
[armeabi-v7a] Compile++ thumb: folly_json <= Assume.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= ToAscii.cpp
[armeabi-v7a] SharedLibrary : libruntimeexecutor.so
[armeabi-v7a] Prebuilt : libhermes.so <= D:/TestnewArc/node_modules/react-native/ReactAndroid/build/third-party-ndk/hermes/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= ScopeGuard.cpp
make: Nothing to be done for 'runtimeexecutor'.
[armeabi-v7a] Prebuilt : libjsc.so <= D:/TestnewArc/node_modules/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= json_pointer.cpp
[armeabi-v7a] Compile++ thumb: glog <= signalhandler.cc
[armeabi-v7a] Compile++ thumb: glog <= symbolize.cc
[armeabi-v7a] Compile++ thumb: glog <= raw_logging.cc
[armeabi-v7a] Compile++ thumb: glog <= utilities.cc
[armeabi-v7a] Compile++ thumb: glog <= vlog_is_on.cc
[armeabi-v7a] Compile++ thumb: fb <= assert.cpp
[armeabi-v7a] Compile++ thumb: glog <= demangle.cc
[armeabi-v7a] Compile++ thumb: fb <= log.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ReactNativeConfigHolder.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventBeatManager.cpp
[armeabi-v7a] Compile++ thumb: mapbufferjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: glog <= logging.cc
[armeabi-v7a] Compile++ thumb: mapbufferjni <= ReadableMapBuffer.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= JBackgroundExecutor.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= AsyncEventBeatV2.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionString.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountItem.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionWrapper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Try.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= StateWrapperImpl.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ComponentFactory.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventEmitterWrapper.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Executor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AtFork.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SharedMutex.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= SurfaceHandlerBinding.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= StaticSingletonManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Futex.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MemoryIdler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadLocalDetail.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= InlineExecutor.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountingManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExecutorWithPriority.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Fiber.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SingletonStackTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Baton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= GuardPageAllocator.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Core.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= CacheLocality.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Singleton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Future.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= FiberManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= Binding.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Exception.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= QueuedImmediateExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseBackendBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTimeout.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimedDrivableExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SysMembarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= WaitOptions.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventHandler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadId.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseLocal.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimeoutManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsymmetricMemoryBarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ParkingLot.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Sleeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= HHWheelTimer.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= MallocImpl.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Pid.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Hazptr.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadName.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Demangle.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= VirtualEventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MallctlHelper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadWheelTimekeeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Unicode.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SpookyHashV2.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= CString.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SafeAssert.cpp
[armeabi-v7a] Compile thumb : boost <= ontop_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile thumb : boost <= jump_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile thumb : boost <= make_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= NetOps.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Conv.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= FileUtil.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= F14Table.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= cached-powers.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum.cc
[armeabi-v7a] Compile++ thumb: folly_json <= SysUio.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= diy-fp.cc
[armeabi-v7a] Compile++ thumb: folly_json <= UniqueInstance.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Request.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= double-conversion.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fixed-dtoa.cc
[armeabi-v7a] Compile++ thumb: folly_json <= String.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= strtod.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fast-dtoa.cc
[armeabi-v7a] Compile thumb : event <= bufferevent_pair.c
[armeabi-v7a] Compile thumb : event <= bufferevent_filter.c
[armeabi-v7a] Compile thumb : event <= evthread_pthread.c
[armeabi-v7a] Compile thumb : event <= bufferevent_sock.c
[armeabi-v7a] Compile thumb : event <= evthread.c
[armeabi-v7a] Compile thumb : event <= epoll.c
[armeabi-v7a] Compile thumb : event <= evmap.c
[armeabi-v7a] Compile thumb : event <= bufferevent.c
[armeabi-v7a] Compile thumb : event <= evutil_rand.c
[armeabi-v7a] Compile++ thumb: folly_json <= Format.cpp
[armeabi-v7a] Compile thumb : event <= bufferevent_ratelim.c
[armeabi-v7a] Compile thumb : event <= evutil_time.c
[armeabi-v7a] Compile thumb : event <= log.c
[armeabi-v7a] Compile thumb : event <= strlcpy.c
[armeabi-v7a] Compile thumb : event <= poll.c
[armeabi-v7a] Compile thumb : event <= listener.c
[armeabi-v7a] Compile++ thumb: react_debug <= react_native_assert.cpp
[armeabi-v7a] Compile thumb : event <= signal.c
[armeabi-v7a] Compile thumb : event <= select.c
[armeabi-v7a] Compile++ thumb: yoga <= yogajni.cpp
[armeabi-v7a] Compile thumb : event <= evutil.c
[armeabi-v7a] Compile++ thumb: yoga <= common.cpp
[armeabi-v7a] Compile thumb : event <= buffer.c
[armeabi-v7a] Compile++ thumb: react_utils <= RunLoopObserver.cpp
[armeabi-v7a] Compile++ thumb: react_config <= ReactNativeConfig.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YogaJniException.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNodePrint.cpp
[armeabi-v7a] Compile++ thumb: yoga <= corefunctions.cpp
[armeabi-v7a] Compile++ thumb: glog_init <= glog_init.cpp
[armeabi-v7a] Compile thumb : event <= event.c
[armeabi-v7a] Compile++ thumb: yogacore <= YGEnums.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBuffer.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= log.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGValue.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBufferBuilder.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGStyle.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Utils.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGConfig.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= event.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGLayout.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-windows.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= experiments.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= dynamic.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YGJNIVanilla.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= componentNameByReactViewName.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNode.cpp
[armeabi-v7a] Compile++ thumb: fmt <= format.cc
[armeabi-v7a] Compile++ thumb: folly_json <= json.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-posix.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsi.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutMetrics.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Yoga.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= utils.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventTarget.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeTraits.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Sealable.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamilyFragment.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventDispatcher.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationDriver.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= DynamicPropsUtilities.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= StateUpdate.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorProviderRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= UnbatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsParser.cpp
[armeabi-v7a] Compile++ thumb: jsi <= JSIDynamic.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKey.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKeyMap.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawEvent.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutConstraints.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFragment.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamily.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawValue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= State.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Color.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertibleItem.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationKeyFrameManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueueProcessor.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventEmitter.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= BatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= CoreComponentsRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertible.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Transform.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= TransactionTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransaction.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= SurfaceTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRevision.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransactionMetadata.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= stubs.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= Differentiator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubView.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowViewMutation.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowView.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubViewTree.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= TelemetryController.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= Touch.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEvent.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootProps.cpp
[armeabi-v7a] Compile++ thumb: logger <= react_native_log.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= bindingUtils.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaLayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaStylableProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTree.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerCallInvoker.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= Task.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= SurfaceRegistryBinding.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= AccessibilityProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= WeakFamilyRegistry.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= AsynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= LeakChecker.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SchedulerToolbox.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceHandler.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManager.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: react_render_templateprocessor <= UITemplateProcessor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManagerBinding.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= Scheduler.cpp
[armeabi-v7a] Compile++ thumb: reactperflogger <= BridgeNativeModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactperfloggerjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBundleType.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: jsinspector <= InspectorInterfaces.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBigString.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: callinvokerholder <= CallInvokerHolder.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSIndexedRAMBundle.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= RAMBundleRegistry.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= MethodCall.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSExecutor.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleUtils.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ModuleRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= LongLivedObject.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= Instance.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleBinding.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= ShadowNodes.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= NativeToJsBridge.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= CxxNativeModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= EventEmitters.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboCxxModule.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= SampleCxxModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= JavaTurboModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= rncore-generated.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponse.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponseObserverCoordinator.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedStringBox.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageRequest.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= ParagraphAttributes.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedString.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= TextAttributes.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageState.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= TurboModuleManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextMeasureCache.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextProps.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RuntimeAdapter.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= CallbackOStream.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewProps.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= SerialExecutor.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Thread.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Registration.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= ConnectionDemux.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSINativeModules.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= AutoAttachUtils.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-debug <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RemoteObjectsTable.cpp
[armeabi-v7a] SharedLibrary : libglog.so
[armeabi-v7a] Compile++ thumb: hermes-inspector <= InspectorState.cpp
[armeabi-v7a] SharedLibrary : libfb.so
[armeabi-v7a] StaticLibrary : libboost.a
[armeabi-v7a] StaticLibrary : libfmt.a
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= OnLoad.cpp
[armeabi-v7a] StaticLibrary : libdouble-conversion.a
[armeabi-v7a] StaticLibrary : libevent.a
[armeabi-v7a] SharedLibrary : libreact_config.so
[armeabi-v7a] StaticLibrary : libyogacore.a
[armeabi-v7a] SharedLibrary : libglog_init.so
[armeabi-v7a] StaticLibrary : libreactperflogger.a
[armeabi-v7a] SharedLibrary : liblogger.so
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= HermesSamplingProfiler.cpp
[armeabi-v7a] SharedLibrary : libjsinspector.so
[armeabi-v7a] Compile++ thumb: reactnativeblob <= OnLoad.cpp
[armeabi-v7a] StaticLibrary : libreactnative.a
[armeabi-v7a] Compile++ thumb: reactnativeblob <= BlobCollector.cpp
[armeabi-v7a] Compile++ thumb: jscruntime <= JSCRuntime.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSIExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageConverters.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-release <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: jscexecutor <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageTypes.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Inspector.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Connection.cpp

dules\react-native\ReactAndroid\build\intermediates\cxx\Debug\351u4r48/obj/local/armeabi-v7a/objs-debug/reactperflogger/D_/TestnewArc/node_modules/react-native/ReactAndroid/__/ReactCommon/reactperflogger/reactperflogger/BridgeNativeModulePerfLogger.o: No such file or directory
make: *** [C:/Users/Ralp/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: D:\TestnewArc\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\351u4r48/obj/local/armeabi-v7a/libreactperflogger.a] Error 1 make: *** Waiting for unfinished jobs....

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

@slaci
Copy link

slaci commented Apr 1, 2022

The LongPathsEnabled setting in the regedit was 0 for me, so I switched it to 1 and rebooted.
Now the the bin/ld binary from the NDK throws the same error for the following file:

C:\Users\Dell\react-native\my-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\65142t73/obj/local/armeabi-v7a/objs-debug/logger/C_/Users/Dell/react-native/my-app/node_modules/react-native/ReactAndroid/__/ReactCommon/logger/react_native_log.o

The file exists, I can ls it in powershell, so maybe the ld binary doesn't handle longPaths 🤔 There was an issue which is maybe related (not sure which versions they were talking about).

I tried to switch the ndkVersion, but for me the next version is 22.1.7171670 which throws Bad file descriptor errors, so I assume its not supported anyways. I had to put it in node_modules\react-native\ReactAndroid\build.gradle, because the project's ndkVersion setting is totally ignored, but that's a different issue.

Edit: Well after some tries, now /toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar throws the error from the NDK for ontop_arm_aapcs_elf_gas.o which exists too. Then I build again, and the above mentioned ld error comes again.

@nawbc
Copy link
Contributor

nawbc commented Apr 2, 2022

The LongPathsEnabled setting in the regedit was 0 for me, so I switched it to 1 and rebooted. Now the the bin/ld binary from the NDK throws the same error for the following file:

C:\Users\Dell\react-native\my-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\65142t73/obj/local/armeabi-v7a/objs-debug/logger/C_/Users/Dell/react-native/my-app/node_modules/react-native/ReactAndroid/__/ReactCommon/logger/react_native_log.o

The file exists, I can ls it in powershell, so maybe the ld binary doesn't handle longPaths 🤔 There was an issue which is maybe related (not sure which versions they were talking about).

I tried to switch the ndkVersion, but for me the next version is 22.1.7171670 which throws Bad file descriptor errors, so I assume its not supported anyways. I had to put it in node_modules\react-native\ReactAndroid\build.gradle, because the project's ndkVersion setting is totally ignored, but that's a different issue.

Edit: Well after some tries, now /toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar throws the error from the NDK for ontop_arm_aapcs_elf_gas.o which exists too. Then I build again, and the above mentioned ld error comes again.

The same. ReactAndroid does not support compiling on windows for a long time. The old architecture has bean packed into AAR, so it works well, but the new one needs you to compile native libs and it seems that something problem on windows

@nawbc
Copy link
Contributor

nawbc commented Apr 3, 2022

@mrtaiw You can try Linux, there is no problem on Archlinux, Ubuntu. I didn't test other distributions

@slaci
Copy link

slaci commented Apr 4, 2022

Well, with the old architecture it is possible to work on Windows (even 0.68 works). Developing react-native in WSL2 seems very hard, so sadly the conclusion is to switch to Linux or Mac for the new architecture.
I think this issue should be labeled as bug thought.

@ralppppy

This comment was marked as spam.

@zxcvbnm3057
Copy link

The LongPathsEnabled setting in the regedit was 0 for me, so I switched it to 1 and rebooted. Now the the bin/ld binary from the NDK throws the same error for the following file:

C:\Users\Dell\react-native\my-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\65142t73/obj/local/armeabi-v7a/objs-debug/logger/C_/Users/Dell/react-native/my-app/node_modules/react-native/ReactAndroid/__/ReactCommon/logger/react_native_log.o

The file exists, I can ls it in powershell, so maybe the ld binary doesn't handle longPaths 🤔 There was an issue which is maybe related (not sure which versions they were talking about).

I tried to switch the ndkVersion, but for me the next version is 22.1.7171670 which throws Bad file descriptor errors, so I assume its not supported anyways. I had to put it in node_modules\react-native\ReactAndroid\build.gradle, because the project's ndkVersion setting is totally ignored, but that's a different issue.

Edit: Well after some tries, now /toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar throws the error from the NDK for ontop_arm_aapcs_elf_gas.o which exists too. Then I build again, and the above mentioned ld error comes again.

Got this error too... It's so much difficulties to try the new arch. And there seem to be no template or demo can pass gradle build on Windows.

@RalissonMattias
Copy link

same problem here

@zxcvbnm3057
Copy link

maybe someone could upload a new arch pre-build so that we could avoid this issue?

@kelset
Copy link
Collaborator

kelset commented Apr 6, 2022

hey folks - just to give you a quick update, I've reported this internally at Microsoft and a couple of engineers have been looking into it. We think we have found the commit that "broke" this and we are looking into ways of fixing this, by end of the week we should have some options on the table - the aim is for this to be fixed in 0.68.1

@zxcvbnm3057
Copy link

It's good to hear that. Thank you very much. This is going to make me mad.

@cortinico
Copy link
Contributor

We think we have found the commit that "broke" this and we are looking into ways of fixing this, by end of the week we should have some options on the table - the aim is for this to be fixed in 0.68.1

Thanks for looking into this @kelset

Not having a Windows machine on my end makes really hard to reproduce and fix this.

@kios19
Copy link

kios19 commented Apr 6, 2022

man , getting this exact thing on windows 11, sucks!

@kelset kelset added Platform: Windows Building on Windows. Platform: Android Android applications. labels Apr 6, 2022
@mganandraj
Copy link
Contributor

Hi @cortinico @kelset .. I've a draft PR, not a generic fix, but may unblock people if the root project is short .. https://github.com/facebook/react-native/pull/33582/files

Somehow NDK AR can't handle long paths even after enabling long paths in Windows! We will continue looking for better fix. And more importantly, we should have a fix for the CMake command in main branch. I think NDK_APP_SHORT_COMMANDS is not available in CMake scripts.

@lucasraziel
Copy link

I am also getting the same error. This is the result of npx react-native info:

System:
OS: Windows 10 10.0.19044
CPU: (12) x64 AMD Ryzen 5 1600 Six-Core Processor
Memory: 2.46 GB / 15.95 GB
Binaries:
Node: 14.0.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - C:\Program Files\nodejs\yarn.CMD
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7583922
Visual Studio: Not Found
Languages:
Java: 11.0.13
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0 => 0.68.0
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

@cortinico
Copy link
Contributor

According to @mganandraj It seems like that a bump to NDK 23 would fix this issue.
If so, that's the patch:

I'm looking for someone with a windows machine that is willing to test this

@zxcvbnm3057
Copy link

According to @mganandraj It seems like that a bump to NDK 23 would fix this issue. If so, that's the patch:

I'm looking for someone with a windows machine that is willing to test this

No, it didn't work as expected on my computer. Same error like before.

@cortinico cortinico added the Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) label Apr 12, 2022
@zxcvbnm3057
Copy link

zxcvbnm3057 commented Apr 19, 2022

Well, build in cli with version 0.68.1 on windows is ok. But still fail while open android folder and build using idea 2021.3.

@kelset
Copy link
Collaborator

kelset commented Apr 21, 2022

@cortinico & @mganandraj - a long time ago @alespergl submitted this PR: #30248 that potentially also help addressing this category of issues on windows? Maybe it'd be worth to giving it a second look (looks like back in Oct '20 it went a bit under the radar) and potentially merge

@kelset
Copy link
Collaborator

kelset commented Apr 27, 2022

@slaci, @ralppppy, @nawbc, @zxcvbnm3057, @RalissonMattias, @kios19, @lucasraziel - with the help of @alespergl's PR and @mganandraj there's now a new PR up against the 0.68 branch: #33707 with a better fix approach.

Given that now we have the commitlies route that we can take (see more https://reactnative.dev/blog/2021/10/01/version-066#using-commitly-releases-commitlies) could you all try to download this artifact (build/react-native-1000.0.0-4da73985e.tgz) from this CI job https://app.circleci.com/pipelines/github/facebook/react-native/13062/workflows/6913dc0e-2a49-4aca-8e55-7009abdd3916/jobs/249507/artifacts

and swap it into your project? it's basically just 0.68.1 plus the patch the PR adds
it should be just a matter of swapping the rn dependency via

$ yarn add <path to tarball>
$ npm add <path to tarball>

doing so should allow you to test this new fix - and if it works correctly we can merge it into 0.68 and do a new patch release :)

@RalissonMattias
Copy link

I'm using RN base project to test. In my case it doesn't seem to work, it generates a series of logs that I can't copy because of the size, but here's a part
Version: 0.68.1

image

@ralppppy
Copy link
Author

I have a similar error with @RalissonMattias

@kelset
Copy link
Collaborator

kelset commented Apr 27, 2022

@RalissonMattias @ralppppy so just to be clear, you have made a new react-native project via the init command, swapped the RN version as per my comment above (was the change reflected in the yarn.lock?), enabled new arch, triggered the android build and that's when it failed?

In the screenshot I can't really see any error messages though, it seems just a series of paths. Can you copy/paste the actual errors that you are hitting?

@RalissonMattias
Copy link

@kelset I did exactly the steps I asked. I think this might help you to see the problem
https://gradle.com/s/lpfx26hngftm6

@mganandraj
Copy link
Contributor

Hi .. could you try with a shorter application path.. In the logs shared, the host application path itself is about ~50 chars.. The current fix is reducing the obj file path lengths.. all the headers and so files still carry absolute paths. And we are still using ndk21 which uses binutils with file path length limits (ndk 23 which can work with long paths crashes on windows which im still investigating) .. hence host application path still matters.. and it should be ~10 chars most at this stage, until we can get ndk22+ working..

@mganandraj
Copy link
Contributor

And, from the logs, it looks we didn't fix react/renderer/scheduler/Android.mk

@RalissonMattias
Copy link

@mganandraj I can try to generate directly in C:/

@mganandraj
Copy link
Contributor

I'm using RN base project to test. In my case it doesn't seem to work, it generates a series of logs that I can't copy because of the size, but here's a part
Version: 0.68.1

image

Also, please note that this doesn't have out latest fixes applied.. for eg. The command line uses ndk23, and the object file path includes absolute path !

@RalissonMattias
Copy link

I'm using RN base project to test. In my case it doesn't seem to work, it generates a series of logs that I can't copy because of the size, but here's a part
Version: 0.68.1
image

Also, please note that this doesn't have out latest fixes applied.. for eg. The command line uses ndk23, and the object file path includes absolute path !

But my package.json changed after running the command yarn add <path to tarball> and my yarn.lock also flagged the changes

@ralppppy
Copy link
Author

I've created a project in C drive, and follow the steps above, this was the error.

`FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.

Build command failed.
Error while executing process C:\Users\ralppppy\AppData\Local\Android\Sdk\ndk\23.1.7779620\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\MyTestApp\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/obj NDK_LIBS_OUT=C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/lib NDK_APPLICATION_MK=C:\MyTestApp\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\MyTestApp\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\MyTestApp\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\MyTestApp\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\MyTestApp\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j16 NDK_APP_SHORT_COMMANDS=true butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= LongLivedObject.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboCxxModule.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModule.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleBinding.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleUtils.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= JavaTurboModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= TurboModuleManager.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedString.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedStringBox.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= ParagraphAttributes.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= TextAttributes.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponse.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponseObserverCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageRequest.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextMeasureCache.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderState.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-debug <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSIExecutor.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSINativeModules.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Inspector.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= InspectorState.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RuntimeAdapter.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= CallbackOStream.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= SerialExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= AutoAttachUtils.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Thread.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= ConnectionDemux.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Connection.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageConverters.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageTypes.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Registration.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RemoteObjectsTable.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-release <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: jscexecutor <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: jscruntime <= JSCRuntime.cpp
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= HermesSamplingProfiler.cpp
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnativeblob <= BlobCollector.cpp
[armeabi-v7a] Compile++ thumb: reactnativeblob <= OnLoad.cpp
[armeabi-v7a] SharedLibrary : libglog.so
[armeabi-v7a] SharedLibrary : libfb.so
[armeabi-v7a] StaticLibrary : libboost.a
[armeabi-v7a] StaticLibrary : libfmt.a
[armeabi-v7a] StaticLibrary : libdouble-conversion.a
[armeabi-v7a] StaticLibrary : libevent.a
[armeabi-v7a] SharedLibrary : libreact_config.so
[armeabi-v7a] StaticLibrary : libyogacore.a
[armeabi-v7a] SharedLibrary : libruntimeexecutor.so
[armeabi-v7a] SharedLibrary : libjsinspector.so
[armeabi-v7a] StaticLibrary : libcallinvoker.a
[armeabi-v7a] StaticLibrary : libreactperflogger.a
[armeabi-v7a] StaticLibrary : libreactnative.a
[armeabi-v7a] StaticLibrary : libcallinvokerholder.a
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= EventEmitters.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= Props.cpp

error: unable to open output file 'C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/obj/local/armeabi-v7a/objs-debug/react_codegen_rncore/C_/MyTestApp/node_modules/react-native/ReactAndroid/build/generated/source/codegen/jni/react/renderer/components/rncore/EventEmitters.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/ralppppy/AppData/Local/Android/Sdk/ndk/23.1.7779620/build//../build/core/build-binary.mk:478: C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/obj/local/armeabi-v7a/objs-debug/react_codegen_rncore/C_/MyTestApp/node_modules/react-native/ReactAndroid/build/generated/source/codegen/jni/react/renderer/components/rncore/EventEmitters.o] Error 1
make: *** Waiting for unfinished jobs....
error: unable to open output file 'C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/obj/local/armeabi-v7a/objs-debug/react_codegen_rncore/C_/MyTestApp/node_modules/react-native/ReactAndroid/build/generated/source/codegen/jni/react/renderer/components/rncore/Props.o': 'No such file or directory'
1 error generated.
make: *** [C:/Users/ralppppy/AppData/Local/Android/Sdk/ndk/23.1.7779620/build//../build/core/build-binary.mk:478: C:\MyTestApp\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\1vy1o4e5/obj/local/armeabi-v7a/objs-debug/react_codegen_rncore/C_/MyTestApp/node_modules/react-native/ReactAndroid/build/generated/source/codegen/jni/react/renderer/components/rncore/Props.o] Error 1`

@slaci
Copy link

slaci commented Apr 28, 2022

I have an upgraded app only, but I think it may be relevant

What I'm trying after applying 0.68.1 changes (in powershell throught vscode):

npm add .\react-native-1000.0.0-4da73985e.tgz
rm -r -fo android/app/build
cd android
./gradlew clean

NDK 23 fails early at configureNdkBuildDebug

* What went wrong:
Execution failed for task ':ReactAndroid:configureNdkBuildDebug'.
> [CXX1405] error when building with ndkBuild using C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk: Build command failed.
  Error while executing process D:\android\SDK\ndk\23.1.7779620\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\5m6h2e6k/obj NDK_LIBS_OUT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\5m6h2e6k/lib NDK_APPLICATION_MK=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j4 NDK_APP_SHORT_COMMANDS=true APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
  md "C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\5m6h2e6k\lib\armeabi-v7a" >NUL 2>NUL || rem

NDK 21 goes throught configureNdkBuildDebug, but fails at buildNdkBuildDebug

* What went wrong:
Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.
> Build command failed.
  Error while executing process D:\android\SDK\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\5m6h2e6k/obj NDK_LIBS_OUT=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\5m6h2e6k/lib NDK_APPLICATION_MK=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\Dell\react-native\secrett-app\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j4 NDK_APP_SHORT_COMMANDS=true butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release 
jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}

@kelset
Copy link
Collaborator

kelset commented Apr 28, 2022

ok I think we have found out why the fix is not working as expected, the problem is that a part of it lives in the react-native-codegen package that is a separate one from the main one... so we need to make both a react-native patch release and a react-native-codegen patch 😓

@cortinico
Copy link
Contributor

Just a heads up: we're working a 0.68.2 which will (hopefully) fix the build failures on Windows

@slaci
Copy link

slaci commented May 12, 2022

For me 0.68.2 solved the problems, a fresh app builds and runs after npx react-native init rn682 --version=0.68.2.
However on my upgraded app now RnScreens fails for the same reason. So it seems lib authors should also make some fixes.

@ralppppy
Copy link
Author

Yes same with me, and also react-native-safe-area-context and react-native-gesture-handler. So currently I think, it's still not possible to build any medium to large apps with the new architecture, as these libs are really essential.

@kelset
Copy link
Collaborator

kelset commented May 12, 2022

So currently I think, it's still not possible to build any medium to large apps with the new architecture, as these libs are really essential.

yeah I think that's something that is expected, and that's why there are guides to migrate libs to the new arch on the website: https://reactnative.dev/docs/new-architecture-library-intro

I think that the next best thing to do is to make the libraries aware that they don't work with the new arch by creating issues on their repos (unless they exist already) - or, even better, make PRs directly to add new arch support :)

@slaci
Copy link

slaci commented May 12, 2022

@kelset react-native-screens works with the new architecture (at least they claim), just not on Windows. I guess they have the same problem which was investigated here (long paths). Not sure how was this solved in 0.68.2 but if that fix is needed for the new arch libs too, then some guide should exist how to avoid/solve it. Now I don't know where could I point them for the fix 🤔

@kelset
Copy link
Collaborator

kelset commented May 12, 2022

thanks @slaci, great info - @mganandraj @cortinico what do you think? Will libraries need to do something similar to the fix we applied in 0.68?

@cortinico
Copy link
Contributor

@mganandraj @cortinico what do you think?

It depends on the amount of C++ code the library is exposing.

If the external library is just using the Codegen + exposing JS/Android/iOS code, they'll get the patch for free.

If the library is exposing an Android.mk file, they would have to patch it as well. I guess the issue should be raised against the library, as it's their responsibility to make sure the library builds on the platform they decide to support.

As a side note: we're moving to having CMake files instead of Android.mk files which should mitigate this and other similar build issues.

@itsramiel
Copy link

enabling new arch and running yarn android gives the following:

yarn run v1.22.17
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1014 file(s) to forward-jetify. Using 12 workers...
info JS server already running.
info Installing the app...
<
> Configure project :app
Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object: org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated.

> Task :ReactAndroid:buildNdkBuildDebug
C/C++: make: *** Deleting file 'C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a'
C/C++: C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/objs-debug/rrc_switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchMeasurementsManager.o: No such file or directory
C/C++: make: *** [C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a] Error 1
C/C++: make: *** Waiting for unfinished jobs....

> Task :ReactAndroid:buildNdkBuildDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
25 actionable tasks: 2 executed, 23 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.
> Build command failed.
  Error while executing process C:\Users\ramie\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj NDK_LIBS_OUT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/lib NDK_APPLICATION_MK=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j12 NDK_APP_SHORT_COMMANDS=true butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
  make: Nothing to be done for 'fb'.
  make: Nothing to be done for 'glog'.
  make: Nothing to be done for 'glog_init'.
  [armeabi-v7a] SharedLibrary  : libbutter.so
  [armeabi-v7a] StaticLibrary  : libhermes-executor-common-debug.a
  [armeabi-v7a] StaticLibrary  : libjsireact.a
  [armeabi-v7a] SharedLibrary  : libyoga.so
  make: Nothing to be done for 'jsinspector'.
  make: Nothing to be done for 'logger'.
  make: Nothing to be done for 'react_config'.
  make: Nothing to be done for 'runtimeexecutor'.
  make: Nothing to be done for 'yoga'.
  [armeabi-v7a] SharedLibrary  : libreactperfloggerjni.so
  [armeabi-v7a] StaticLibrary  : librrc_scrollview.a
  make: Nothing to be done for 'reactperfloggerjni'.
  [armeabi-v7a] StaticLibrary  : libhermes-executor-common-release.a
  [armeabi-v7a] StaticLibrary  : libjscruntime.a
  [armeabi-v7a] SharedLibrary  : libfolly_json.so
  make: Nothing to be done for 'folly_json'.
  [armeabi-v7a] SharedLibrary  : libreact_debug.so
  [armeabi-v7a] SharedLibrary  : libjsi.so
  make: Nothing to be done for 'jsi'.
  make: Nothing to be done for 'react_debug'.
  [armeabi-v7a] SharedLibrary  : libreact_render_debug.so
  make: Nothing to be done for 'react_render_debug'.
  [armeabi-v7a] SharedLibrary  : libreact_render_mapbuffer.so
  make: Nothing to be done for 'react_render_mapbuffer'.
  [armeabi-v7a] SharedLibrary  : libreact_render_graphics.so
  make: Nothing to be done for 'react_render_graphics'.
  [armeabi-v7a] SharedLibrary  : libreact_utils.so
  make: Nothing to be done for 'react_utils'.
  [armeabi-v7a] SharedLibrary  : libfolly_futures.so
  make: Nothing to be done for 'folly_futures'.
  [armeabi-v7a] SharedLibrary  : libmapbufferjni.so
  make: Nothing to be done for 'mapbufferjni'.
  [armeabi-v7a] StaticLibrary  : libhermes-inspector.a
  [armeabi-v7a] SharedLibrary  : libreact_render_core.so
  make: Nothing to be done for 'react_render_core'.
  [armeabi-v7a] SharedLibrary  : libreact_render_leakchecker.so
  make: Nothing to be done for 'react_render_leakchecker'.
  [armeabi-v7a] SharedLibrary  : libreact_render_componentregistry.so
  make: Nothing to be done for 'react_render_componentregistry'.
  [armeabi-v7a] SharedLibrary  : libreact_render_runtimescheduler.so
  make: Nothing to be done for 'react_render_runtimescheduler'.
  [armeabi-v7a] SharedLibrary  : librrc_view.so
  make: Nothing to be done for 'rrc_view'.
  [armeabi-v7a] SharedLibrary  : librrc_unimplementedview.so
  [armeabi-v7a] SharedLibrary  : librrc_root.so
  make: Nothing to be done for 'rrc_root'.
  make: Nothing to be done for 'rrc_unimplementedview'.
  [armeabi-v7a] SharedLibrary  : libreact_render_attributedstring.so
  make: Nothing to be done for 'react_render_attributedstring'.
  [armeabi-v7a] SharedLibrary  : libreact_render_telemetry.so
  make: Nothing to be done for 'react_render_telemetry'.
  [armeabi-v7a] SharedLibrary  : libreactnativeutilsjni.so
  make: Nothing to be done for 'reactnativeutilsjni'.
  [armeabi-v7a] SharedLibrary  : libreact_render_mounting.so
  make: Nothing to be done for 'react_render_mounting'.
  [armeabi-v7a] SharedLibrary  : libreact_render_imagemanager.so
  make: Nothing to be done for 'react_render_imagemanager'.
  [armeabi-v7a] SharedLibrary  : libreact_render_uimanager.so
  make: Nothing to be done for 'react_render_uimanager'.
  [armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
  [armeabi-v7a] StaticLibrary  : librrc_switch.a
  [armeabi-v7a] SharedLibrary  : librrc_image.so
  [armeabi-v7a] SharedLibrary  : libreact_render_templateprocessor.so
  [armeabi-v7a] SharedLibrary  : libreact_render_animations.so
  [armeabi-v7a] SharedLibrary  : libreactnativejni.so
  [armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
  [armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp

  make: *** Deleting file 'C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a'
  C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/objs-debug/rrc_switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchMeasurementsManager.o: No such file or directory
  make: *** [C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a] Error 1
  make: *** Waiting for unfinished jobs....


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 18s

FAILURE: Build failed with an exception.

* What went wrong:
Could not dispatch a message to the daemon.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:buildNdkBuildDebug'.
> Build command failed.
  Error while executing process C:\Users\ramie\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj NDK_LIBS_OUT=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/lib NDK_APPLICATION_MK=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j12 NDK_APP_SHORT_COMMANDS=true butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
  make: Nothing to be done for 'fb'.
  make: Nothing to be done for 'glog'.
  make: Nothing to be done for 'glog_init'.
  [armeabi-v7a] SharedLibrary  : libbutter.so
  [armeabi-v7a] StaticLibrary  : libhermes-executor-common-debug.a
  [armeabi-v7a] StaticLibrary  : libjsireact.a
  [armeabi-v7a] SharedLibrary  : libyoga.so
  make: Nothing to be done for 'jsinspector'.
  make: Nothing to be done for 'logger'.
  make: Nothing to be done for 'react_config'.
  make: Nothing to be done for 'runtimeexecutor'.
  make: Nothing to be done for 'yoga'.
  [armeabi-v7a] SharedLibrary  : libreactperfloggerjni.so
  [armeabi-v7a] StaticLibrary  : librrc_scrollview.a
  make: Nothing to be done for 'reactperfloggerjni'.
  [armeabi-v7a] StaticLibrary  : libhermes-executor-common-release.a
  [armeabi-v7a] StaticLibrary  : libjscruntime.a
  [armeabi-v7a] SharedLibrary  : libfolly_json.so
  make: Nothing to be done for 'folly_json'.
  [armeabi-v7a] SharedLibrary  : libreact_debug.so
  [armeabi-v7a] SharedLibrary  : libjsi.so
  make: Nothing to be done for 'jsi'.
  make: Nothing to be done for 'react_debug'.
  [armeabi-v7a] SharedLibrary  : libreact_render_debug.so
  make: Nothing to be done for 'react_render_debug'.
  [armeabi-v7a] SharedLibrary  : libreact_render_mapbuffer.so
  make: Nothing to be done for 'react_render_mapbuffer'.
  [armeabi-v7a] SharedLibrary  : libreact_render_graphics.so
  make: Nothing to be done for 'react_render_graphics'.
  [armeabi-v7a] SharedLibrary  : libreact_utils.so
  make: Nothing to be done for 'react_utils'.
  [armeabi-v7a] SharedLibrary  : libfolly_futures.so
  make: Nothing to be done for 'folly_futures'.
  [armeabi-v7a] SharedLibrary  : libmapbufferjni.so
  make: Nothing to be done for 'mapbufferjni'.
  [armeabi-v7a] StaticLibrary  : libhermes-inspector.a
  [armeabi-v7a] SharedLibrary  : libreact_render_core.so
  make: Nothing to be done for 'react_render_core'.
  [armeabi-v7a] SharedLibrary  : libreact_render_leakchecker.so
  make: Nothing to be done for 'react_render_leakchecker'.
  [armeabi-v7a] SharedLibrary  : libreact_render_componentregistry.so
  make: Nothing to be done for 'react_render_componentregistry'.
  [armeabi-v7a] SharedLibrary  : libreact_render_runtimescheduler.so
  make: Nothing to be done for 'react_render_runtimescheduler'.
  [armeabi-v7a] SharedLibrary  : librrc_view.so
  make: Nothing to be done for 'rrc_view'.
  [armeabi-v7a] SharedLibrary  : librrc_unimplementedview.so
  [armeabi-v7a] SharedLibrary  : librrc_root.so
  make: Nothing to be done for 'rrc_root'.
  make: Nothing to be done for 'rrc_unimplementedview'.
  [armeabi-v7a] SharedLibrary  : libreact_render_attributedstring.so
  make: Nothing to be done for 'react_render_attributedstring'.
  [armeabi-v7a] SharedLibrary  : libreact_render_telemetry.so
  make: Nothing to be done for 'react_render_telemetry'.
  [armeabi-v7a] SharedLibrary  : libreactnativeutilsjni.so
  make: Nothing to be done for 'reactnativeutilsjni'.
  [armeabi-v7a] SharedLibrary  : libreact_render_mounting.so
  make: Nothing to be done for 'react_render_mounting'.
  [armeabi-v7a] SharedLibrary  : libreact_render_imagemanager.so
  make: Nothing to be done for 'react_render_imagemanager'.
  [armeabi-v7a] SharedLibrary  : libreact_render_uimanager.so
  make: Nothing to be done for 'react_render_uimanager'.
  [armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
  [armeabi-v7a] StaticLibrary  : librrc_switch.a
  [armeabi-v7a] SharedLibrary  : librrc_image.so
  [armeabi-v7a] SharedLibrary  : libreact_render_templateprocessor.so
  [armeabi-v7a] SharedLibrary  : libreact_render_animations.so
  [armeabi-v7a] SharedLibrary  : libreactnativejni.so
  [armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
  [armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
  [armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp

  make: *** Deleting file 'C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a'
  C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/objs-debug/rrc_switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchMeasurementsManager.o: No such file or directory
  make: *** [C:/Users/ramie/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\4td6d1y4/obj/local/armeabi-v7a/librrc_switch.a] Error 1
  make: *** Waiting for unfinished jobs....


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 18s

FAILURE: Build failed with an exception.

* What went wrong:
Could not dispatch a message to the daemon.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

    at makeError (C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\execa\index.js:174:9)
    at C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\execa\index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
    at async Command.handleAction (C:\Users\ramie\Desktop\TypeScript\react-native\newArch\node_modules\@react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

@cortinico
Copy link
Contributor

Closing as this issue has been essentially resolved (building with New Arch on Windows). @ramiel1999 please submit a new issue with reproducer

@sanjayjhaa
Copy link

Hi,

I am still getting same error with RN version 0.68.2 when New architecture is enabled.
Can someone please share how to fix it on 0.68.2 ( new app)
Is any specific version of NDK required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Android applications. Platform: Windows Building on Windows. Tech: Codegen Related to react-native-codegen Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests