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] Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] FAILED #34084

Closed
aleluiah opened this issue Jun 27, 2022 · 90 comments
Labels
Impact: Errors During Build Platform: Android Android applications. Platform: Windows Building on Windows. Tech: Hermes Hermes Engine: https://hermesengine.dev/ Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@aleluiah
Copy link

aleluiah commented Jun 27, 2022

Description

Hi i tried to build my react native project but am getting the following error

> Task :ReactAndroid:downloadBoost
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

> Task :ReactAndroid:downloadBoost UP-TO-DATE

> Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

> Task :ReactAndroid:downloadFmt UP-TO-DATE
Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz

> Task :ReactAndroid:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.06.28.00.tar.gz

> Task :ReactAndroid:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz

> Task :ReactAndroid:downloadLibevent UP-TO-DATE
Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

> Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- Found the following ICU libraries:
--   uc (required)
--   i18n (required)
--   data (required)
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY) (Required is at least version "52")
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- CMAKE_HOST_SYSTEM_NAME = Windows
-- CMAKE_SYSTEM_NAME = Windows
-- HERMES_APPLE_TARGET_PLATFORM =
-- CMAKE_CROSSCOMPILING = FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes

> Task :ReactAndroid:hermes-engine:buildHermes
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  LLVHDemangle.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\llvh\lib\Demangle\Debug\LLVHDemangle.lib
  dtoa.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\dtoa\Debug\dtoa.lib
  LLVHSupport.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\llvh\lib\Support\Debug\LLVHSupport.lib
  zip.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\zip\Debug\zip.lib
  hermesOptimizer.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Debug\hermesOptimizer.lib
  hermesFrontEndDefs.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\FrontEndDefs\Debug\hermesFrontEndDefs.lib
  hermesPlatformUnicode.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Platform\Unicode\Debug\hermesPlatformUnicode.lib
  hermesRegex.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Regex\Debug\hermesRegex.lib
  hermesSupport.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Support\Debug\hermesSupport.lib
  hermesADT.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\ADT\Debug\hermesADT.lib
  hermesFlowParser.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\FlowParser\Debug\hermesFlowParser.lib
  hermesAST.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\AST\Debug\hermesAST.lib
  hermesParser.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Parser\Debug\hermesParser.lib
  hermesAST2JS.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\AST2JS\Debug\hermesAST2JS.lib
  hermesSourceMap.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\SourceMap\Debug\hermesSourceMap.lib
  hermesInst.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Inst\Debug\hermesInst.lib
  hermesFrontend.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Debug\hermesFrontend.lib
  hermesBackend.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\BCGen\Debug\hermesBackend.lib
  hermesHBCBackend.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\BCGen\HBC\Debug\hermesHBCBackend.lib
  hermesCompilerDriver.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\CompilerDriver\Debug\hermesCompilerDriver.lib
  hermesc.vcxproj -> C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\bin\Debug\hermesc.exe

> Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]
C/C++: ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

> Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] 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
34 actionable tasks: 8 executed, 26 up-to-date
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


Using Windows 10 built-in ICU

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]'.
> Build command failed.
  Error while executing process C:\Users\alade\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1c2w6o2l\arm64-v8a libhermes}
  ninja: Entering directory `C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1c2w6o2l\arm64-v8a'

  ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it


* 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 3m 54s

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
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


Using Windows 10 built-in ICU

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]'.
> Build command failed.
  Error while executing process C:\Users\alade\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1c2w6o2l\arm64-v8a libhermes}
  ninja: Entering directory `C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1c2w6o2l\arm64-v8a'

  ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it


* 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 3m 54s

    at makeError (C:\Users\alade\Desktop\Cliqueon\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
    at C:\Users\alade\Desktop\Cliqueon\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (C:\Users\alade\Desktop\Cliqueon\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
    at async Command.handleAction (C:\Users\alade\Desktop\Cliqueon\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.

C:\Users\alade\Desktop\Cliqueon>yarn android

Version

0.69.0

Output of npx react-native info

Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]'.

Build command failed.
Error while executing process C:\Users\alade\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine.cxx\Release\1c2w6o2l\arm64-v8a libhermes}
ninja: Entering directory `C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine.cxx\Release\1c2w6o2l\arm64-v8a'

ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

Steps to reproduce

react native init project
yarn android
os architecture: windows 10 5gb ram
processor: intel dual core 64bit processor
os: windows 10

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

290688604_1084972242438413_537003635989804412_n

@aleluiah aleluiah added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Jun 27, 2022
@react-native-bot react-native-bot added the Platform: Android Android applications. label Jun 27, 2022
@cortinico
Copy link
Contributor

Using the New Architecture with Hermes on Windows is quite challenging at this stage. Could you follow the instructions here: https://reactnative.dev/architecture/bundled-hermes#android-users-on-new-architecture-building-on-windows and confirm if it solves your issue?

@cortinico cortinico added Tech: Hermes Hermes Engine: https://hermesengine.dev/ Impact: Errors During Build and removed Needs: Triage 🔍 labels Jun 27, 2022
@K-Leon
Copy link
Contributor

K-Leon commented Jun 28, 2022

We saw the same issue and couldn't solve it by following the linked instructions.
The hermesc.exe in Debug Folder exists, Release Folder is empty leading to this error. We tried it on different Windows 10 Systems.

It happens also if you ran the task directly from Visual Studio Developer Command Prompot:
gradlew.bat :ReactAndroid:hermes-engine:assembleRelease
gradlew.bat :ReactAndroid:hermes-engine:assembleDebug fails too, because it tries to link against a release hermesc.exe which obviously doesn't exist.

@aleluiah
Copy link
Author

exactly the same issue am facing visual studio developer command prompt also failed after carefully following the linked instruction

@nibblesnbits
Copy link

nibblesnbits commented Jun 29, 2022

Same; two errors. for debug build (npx react-native run-android):

> Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] FAILED
C/C++: ninja: error: 'D:/git/random/MyApp/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

with gradlew.bat bundleRelease:

info Writing bundle output to:, D:\git\random\MyApp\android\app\build\generated\assets\react\release\index.android.bundle
info Writing sourcemap output to:, D:\git\random\MyApp\android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 7 asset files
info Done copying assets

> Task :app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

* Where:
Script 'D:\git\random\MyApp\node_modules\react-native\react.gradle' line: 126

* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> java.lang.Exception: Couldn't determine Hermesc location. Please set `project.ext.react.hermesCommand` to the path of the hermesc binary file. node_modules/react-native/sdks/hermesc/%OS-BIN%/hermesc

It seems the debug build is trying to depend on a release build of hermes, but an attempt at a release build assumes one already exists. 🤷

EDIT: Might be worth noting that node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\bin\Debug\hermesc.exe DOES exists after npx react-native run-android, but the error message indicates that for some reason it's looking for node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe, not the debug one.

@cortinico
Copy link
Contributor

Thansk for the report @nibblesnbits I will look into this. To help me understand:

  • Is this happening on a newly created project?
  • I assume you're enablign the New Architecture in your project right?

@nibblesnbits
Copy link

nibblesnbits commented Jun 30, 2022 via email

@RominHalltari
Copy link

RominHalltari commented Jun 30, 2022

Same happening for me when updating my project to react native 0.69.1 with the new architecture enabled.

Could not determine the dependencies of task ':ReactAndroid:buildCMakeDebug[x86_64][fabricjni,hermes-executor-debug,etc]'.
> Could not resolve all task dependencies for configuration ':ReactAndroid:debugCompileClasspath'.
   > Could not resolve project :ReactAndroid:hermes-engine.
     Required by:
         project :ReactAndroid
      > No matching configuration of project :ReactAndroid:hermes-engine was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.1', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

@nibblesnbits
Copy link

Still broken with 0.69.1, and did notice this output:

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The following ICU libraries were not found:
--   uc (required)
--   i18n (required)
--   data (required)
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "52")
Using Windows 10 built-in ICU
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- CMAKE_HOST_SYSTEM_NAME = Windows
-- CMAKE_SYSTEM_NAME = Windows
-- HERMES_APPLE_TARGET_PLATFORM =
-- CMAKE_CROSSCOMPILING = FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: D:/git/random/MyApp/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes

Not sure if it's relevant as the Debug\hermesc.exe does still get built.

@aleluiah
Copy link
Author

aleluiah commented Jul 5, 2022

when i set the hermesCommand variable and run bundleRelease i get the following error
:ReactAndroid:hermes-engine:buildCMakeMinSizeRel[arm64-v8a][libhermes] FAILED
C/C++: ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/MinSizeRel/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeMinSizeRel[arm64-v8a][libhermes]'.

Build command failed.
Error while executing process C:\Users\alade\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine.cxx\MinSizeRel\615g326p\arm64-v8a libhermes}
ninja: Entering directory `C:\Users\alade\Desktop\Cliqueon\node_modules\react-native\ReactAndroid\hermes-engine.cxx\MinSizeRel\615g326p\arm64-v8a'

ninja: error: 'C:/Users/alade/Desktop/Cliqueon/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/MinSizeRel/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

  • 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.

i also noticed the error below:
LLVM_HOST_TRIPLE can't be computed on Windows with this toolchain

@cortinico
Copy link
Contributor

I'm not able to reproduce still. Just as a sanity check: you folks installed Visual Studio 22 Community Edition and are running inside a Visual Studio console right?

@K-Leon
Copy link
Contributor

K-Leon commented Jul 5, 2022

Yes we are

@aleluiah
Copy link
Author

aleluiah commented Jul 7, 2022

Good day folks @JoseLion said he was able to reproduce the error and fix the issue check out the link below to see how he did it #34116. special thanks to @JoseLion, @wfern and @cortinico for their time and effort to help reproduce and fix this issue.

@jslok
Copy link

jslok commented Jul 7, 2022

Followed the android/windows instructions, added the hermesCommand line, and using the PR by @JoseLion and I still get this error:

* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]'.
> Build command failed.
  Error while executing process C:\Users\jslok\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\jslok\Projects\rn691\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\143t4o5q\arm64-v8a libhermes}
  ninja: Entering directory `C:\Users\jslok\Projects\rn691\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\143t4o5q\arm64-v8a'

  ninja: error: 'C:/Users/jslok/Projects/rn691/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

@aleluiah
Copy link
Author

aleluiah commented Jul 9, 2022

@jslok you do not need to add the hermesCommand line. clean your build or create a fresh project and use the pr

@jslok
Copy link

jslok commented Jul 9, 2022

@aleluiah I get the same error without hermesCommand line. Using a fresh install with the pr.

@aleluiah
Copy link
Author

aleluiah commented Jul 9, 2022

@jslok modified your node modules react-native react.gradle file directly. the downside to this approach is that the changes won't persist in your react.gradle file but at least you would be able to build successfully. replace the following code in your node modules/reaact-native/react.gradle with the code below :
/ 3. If the react-native contains a pre-built hermesc, use it.
def hermescBin = Os.isFamily(Os.FAMILY_WINDOWS) ? 'hermesc.exe' : 'hermesc'
def prebuiltHermesPath = ("node_modules/react-native/sdks/hermesc/%OS-BIN%/" + hermescBin)
.replaceAll("%OS-BIN%", getHermesOSBin())
.replace('/' as char, File.separatorChar);
Make sure to init your project in the windows c: directory to shorten the path as much as possible. also please don't forget to run your build in a visual studio power shell command prompt

@jslok
Copy link

jslok commented Jul 9, 2022

That seems to be the same as using the pr from @JoseLion, no? I tried it both ways and no dice. Also reinstalled VS 2022 CE with C++ and build tools and using vs command prompt.

@JoseLion
Copy link
Contributor

JoseLion commented Jul 11, 2022

Based on the error message (which is very similar to what we were getting in #34116), it seems that the hermesc.exe path is incorrect when hermes-engine is built from source.

The message says the file ...hermes-engine/build/hermes/bin/Release/hermesc.exe is missing, and I think it's because the path in react.gradle is actually ...hermes-engine/build/hermes/bin/hermesc.exe. I can make the change in the opened PR if someone can confirm changing the path works since I'm currently not using the new architecture 😅

To give it a try, use the changes in PR #34151 and modify react.gradle to change the definition of the builtHermesc variable to the following:

def builtHermesc = hermesOverrideDir
  ? new File(hermesOverrideDir, "build/bin/Release/$hermescBin")
  : new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/Release/$hermescBin")

Note the additional /Release/ in the paths

I hope this helps 🙂

PS: We also might need to determine the type of build (Release or Debug I think) to build the path correctly in each case. But we can figure it out once we know the change is corrrect 🤔

cc. @cortinico

@jslok
Copy link

jslok commented Jul 11, 2022

@JoseLion Still getting the error with that change.

May be worth mentioning when using --variant=release I get a different but similar error:

* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeMinSizeRel[arm64-v8a][libhermes]'.
> Build command failed.
  Error while executing process C:\Users\jslok\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\rn69\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\1g4l3p20\arm64-v8a libhermes}
  ninja: Entering directory `C:\rn69\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\1g4l3p20\arm64-v8a'

  ninja: error: 'C:/rn69/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/MinSizeRel/hermesc.exe', needed by 'lib/InternalBytecode/InternalBytecode.hbc', missing and no known rule to make it

Thus I tried using /MinSizeRel/ instead of /Release/ and still no success.

@MuhammadRafeh
Copy link

Same issue with me

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The following ICU libraries were not found:
--   uc (required)
--   i18n (required)
--   data (required)
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "52")
CMake Error at CMakeLists.txt:520 (message):
  Unable to find ICU.

@truediogo
Copy link

truediogo commented Jul 11, 2022

Same issue with me

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The following ICU libraries were not found:
--   uc (required)
--   i18n (required)
--   data (required)
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "52")
CMake Error at CMakeLists.txt:520 (message):
  Unable to find ICU.

@MuhammadRafeh
This problem is because your system won't have ICU, i got the same problem using Ubuntu 22.04 and solved by installing from the source.

git clone https://github.com/unicode-org/icu
cd icu/icu4c
cd source
./configure --prefix=/usr 
make
sudo make install

@MuhammadRafeh
Copy link

@truediogo thanks a lot. Yes, I am using Ubuntu. Let me try this. Hopefully it will work ❤️

@MuhammadRafeh
Copy link

But now ended with the same exact problem. 😂

Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] FAILED

@therafi
Copy link

therafi commented Sep 28, 2022

@alabsi91 the error is in the text: the file path is too deep. This is a Windows limitation. Try putting your dev folder closer to the root.

@alabsi91
Copy link

@therafi I have my dev folder right here D:/myproject isn't that enough ?? Should I put it in the c:/ drive ?

@therawk
Copy link

therawk commented Sep 28, 2022

@joe-sam
Copy link

joe-sam commented Sep 29, 2022

@alabsi91
Don't waste time as the windows registry fix is an undocumented key and sadly no longer works!!!
https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

What worked for me was shortening the project folder name down to just one character. e.g. D:/a .
This is a silly windows bug but has been around for more than ten years.
Compiler Software unaware of the key will continue to enforce the 250 char limit to prevent system damage.
You could try compiling within the linux environment using WSL.

@mganandraj
Copy link
Contributor

Windows already can handle long file names but it requires the apps to opt into it by prefixing the file paths with a special sequence and by avoiding certain old APIs. Android ndk21 still uses the old binutils distribution whose 'ar' utility still can't support long file paths. We will be in much better shape once we upgrade to ndk23.

@alabsi91
Copy link

I fixed the The maximum full path issue by following the instructions here.

  • Now I have this error :
  D:/project/node_modules/react-native/ReactCommon/yoga/yoga/CompactValue.h:177:41: error: static_assert with no message is a C++17 extension [-Werror,-Wc++17-extensions] 
      static_assert(sizeof(f) == sizeof(u));
                                          ^
                                          , ""

@mganandraj
Copy link
Contributor

@alabsi91 Are you on main or 0.70-stable ? Could you share full log ?

The error might be related to this commit: e7a8d21

@therafi
Copy link

therafi commented Oct 1, 2022

I've created a couple of PRs : #34790 #34791

@therafi Could you please try these?

I can confirm that these worked. Thanks!

@mganandraj I'm noticing that your PR failed due to some unrelated error during the automated tests.

It might help someone to know that I did initially receive this error when I had tried to do a yarn android from on a fresh init without these changes.

CMake Error: Error: generator : NMake Makefiles
Does not match the generator used previously: Visual Studio 16 2019
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

But it's all good when clean.

Note that I just applied your diffs on my current code when testing and didn't go through the trouble of checking out the exact PR.

@alabsi91
Copy link

alabsi91 commented Oct 1, 2022

@mganandraj I'm using "react-native": "0.70.1" in a newly created project.

  • I reran .\gradlew assembleRelease inside the Developer Command Prompt for VS 2022 to share the full log and for some reason I was getting a different error now same as here
  • so I used your PR Fixing failure building RN codegen CLI on Windows  #34791 and I was able to build successfully for the first time, thank you.

@rayhk6
Copy link

rayhk6 commented Oct 11, 2022 via email

@cortinico
Copy link
Contributor

Just a heads up that this was fixed in RN 0.70.3.
Please update and report if you still have the problems.

We're also looking into simplifying the setup for Windows on RN 0.71 so you won't face those problems anymore in the future.

@alabsi91
Copy link

  • newly created project :
> Task :ReactAndroid:buildCMakeRelWithDebInfo[arm64-v8a][fabricjni,hermes-executor-release,etc] FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:buildCMakeRelWithDebInfo[arm64-v8a][fabricjni,hermes-executor-release,etc]'.
> Build command failed.
  Error while executing process C:\Users\alabs\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C D:\AwesomeProject\node_modules\react-native\ReactAndroid\.cxx\RelWithDebInfo\2w506u4s\arm64-v8a fabricjni hermes-executor-release jscexecutor jsijniprofiler reactnativeblob reactnativejni reactperfloggerjni turbomodulejsijni}
  ninja: Entering directory `D:\AwesomeProject\node_modules\react-native\ReactAndroid\.cxx\RelWithDebInfo\2w506u4s\arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/system/ThreadId.cpp.o
  [2/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/memory/detail/MallocImpl.cpp.o
  [3/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/lang/ToAscii.cpp.o
  [4/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/lang/SafeAssert.cpp.o
  [5/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/synchronization/ParkingLot.cpp.o
  [6/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/system/ThreadName.cpp.o
  [7/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/Demangle.cpp.o
  [8/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/detail/Futex.cpp.o
  [9/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/Unicode.cpp.o
  [10/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/portability/SysUio.cpp.o
  [11/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/lang/CString.cpp.o
  [12/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/hash/SpookyHashV2.cpp.o
  [13/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/SharedMutex.cpp.o
  [14/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/FileUtil.cpp.o
  [15/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/net/NetOps.cpp.o
  [16/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/Conv.cpp.o
  [17/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGValue.cpp.o
  [18/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/log.cpp.o
  [19/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/detail/UniqueInstance.cpp.o
  [20/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/event/event.cpp.o
  [21/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/internal/experiments.cpp.o
  [22/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGEnums.cpp.o
  [23/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/ScopeGuard.cpp.o
  [24/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGNodePrint.cpp.o
  [25/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGStyle.cpp.o
  [26/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/container/detail/F14Table.cpp.o
  [27/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/String.cpp.o
  [28/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGConfig.cpp.o
  [29/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/json_pointer.cpp.o
  [30/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGLayout.cpp.o
  [31/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/Utils.cpp.o
  [32/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/JSBundleType.cpp.o
  [33/345] Building CXX object ReactCommon/reactperflogger/CMakeFiles/reactperflogger.dir/reactperflogger/BridgeNativeModulePerfLogger.cpp.o
  [34/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/Format.cpp.o
  [35/345] Linking CXX static library ReactCommon\reactperflogger\libreactperflogger.a
  [36/345] Building CXX object ReactCommon/logger/CMakeFiles/logger.dir/react_native_log.cpp.o
  [37/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/YGNode.cpp.o
  [38/345] Building CXX object ReactCommon/yoga/CMakeFiles/yogacore.dir/yoga/Yoga.cpp.o
  [39/345] Linking CXX static library ReactCommon\yoga\libyogacore.a
  [40/345] Building CXX object ReactCommon/jsiexecutor/CMakeFiles/jsireact.dir/jsireact/JSINativeModules.cpp.o
  [41/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/JSExecutor.cpp.o
  [42/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/dynamic.cpp.o
  [43/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/ReactMarker.cpp.o
  [44/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/JSBigString.cpp.o
  [45/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/RAMBundleRegistry.cpp.o
  [46/345] Building CXX object ReactCommon/jsi/CMakeFiles/jsi.dir/jsi/jsilib-windows.cpp.o
  [47/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/Instance.cpp.o
  [48/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/json.cpp.o
  [49/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/MethodCall.cpp.o
  [50/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/JSIndexedRAMBundle.cpp.o
  [51/345] Building CXX object ReactCommon/jsi/CMakeFiles/jsi.dir/jsi/jsilib-posix.cpp.o
  [52/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/ModuleRegistry.cpp.o
  [53/345] Building CXX object ReactCommon/hermes/executor/CMakeFiles/hermes-executor-common.dir/JSITracing.cpp.o
  [54/345] Building CXX object build/third-party-ndk/folly/CMakeFiles/folly_runtime.dir/folly/concurrency/CacheLocality.cpp.o
  [55/345] Building CXX object ReactCommon/react/config/CMakeFiles/react_config.dir/ReactNativeConfig.cpp.o
  [56/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/CxxNativeModule.cpp.o
  [57/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_config.so
  [58/345] Building CXX object ReactCommon/jsi/CMakeFiles/jsi.dir/jsi/jsi.cpp.o
  [59/345] Building CXX object ReactCommon/jsiexecutor/CMakeFiles/jsireact.dir/jsireact/JSIExecutor.cpp.o
  [60/345] Building CXX object ReactCommon/react/debug/CMakeFiles/react_debug.dir/react_native_assert.cpp.o
  [61/345] Building CXX object ReactCommon/jsinspector/CMakeFiles/jsinspector.dir/InspectorInterfaces.cpp.o
  [62/345] Building CXX object ReactCommon/react/renderer/runtimescheduler/CMakeFiles/react_render_runtimescheduler.dir/RuntimeSchedulerCallInvoker.cpp.o
  [63/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libjsinspector.so
  [64/345] Building CXX object ReactCommon/react/renderer/runtimescheduler/CMakeFiles/react_render_runtimescheduler.dir/Task.cpp.o
  [65/345] Building CXX object ReactCommon/jsi/CMakeFiles/jscruntime.dir/JSCRuntime.cpp.o
  [66/345] Building CXX object ReactCommon/jsi/CMakeFiles/jsi.dir/jsi/JSIDynamic.cpp.o
  [67/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventBeat.cpp.o
  [68/345] Building CXX object ReactCommon/react/renderer/runtimescheduler/CMakeFiles/react_render_runtimescheduler.dir/RuntimeScheduler.cpp.o
  [69/345] Building CXX object ReactCommon/hermes/executor/CMakeFiles/hermes-executor-common.dir/HermesExecutorFactory.cpp.o
  [70/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/NativeToJsBridge.cpp.o
  [71/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/ShadowViewMutation.cpp.o
  [72/345] Building CXX object ReactCommon/react/renderer/runtimescheduler/CMakeFiles/react_render_runtimescheduler.dir/RuntimeSchedulerBinding.cpp.o
  [73/345] Building CXX object ReactCommon/react/renderer/animations/CMakeFiles/react_render_animations.dir/LayoutAnimationDriver.cpp.o
  [74/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/ShadowView.cpp.o
  [75/345] Building CXX object ReactCommon/react/renderer/componentregistry/CMakeFiles/react_render_componentregistry.dir/componentNameByReactViewName.cpp.o
  [76/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/TelemetryController.cpp.o
  [77/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/StubView.cpp.o
  [78/345] Building CXX object ReactCommon/cxxreact/CMakeFiles/reactnative.dir/SampleCxxModule.cpp.o
  [79/345] Building CXX object ReactCommon/react/renderer/animations/CMakeFiles/react_render_animations.dir/utils.cpp.o
  [80/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/StubViewTree.cpp.o
  [81/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/stubs.cpp.o
  [82/345] Building CXX object ReactCommon/react/renderer/attributedstring/CMakeFiles/react_render_attributedstring.dir/ParagraphAttributes.cpp.o
  [83/345] Building CXX object ReactCommon/react/renderer/attributedstring/CMakeFiles/react_render_attributedstring.dir/AttributedStringBox.cpp.o
  [84/345] Building CXX object ReactCommon/react/renderer/attributedstring/CMakeFiles/react_render_attributedstring.dir/AttributedString.cpp.o
  [85/345] Building CXX object ReactCommon/react/renderer/attributedstring/CMakeFiles/react_render_attributedstring.dir/TextAttributes.cpp.o
  [86/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/MountingTransaction.cpp.o
  [87/345] Building CXX object ReactCommon/react/renderer/componentregistry/CMakeFiles/react_render_componentregistry.dir/ComponentDescriptorProviderRegistry.cpp.o    
  [88/345] Building CXX object ReactCommon/react/renderer/componentregistry/CMakeFiles/react_render_componentregistry.dir/ComponentDescriptorRegistry.cpp.o
  [89/345] Building CXX object ReactCommon/react/renderer/animations/CMakeFiles/react_render_animations.dir/LayoutAnimationKeyFrameManager.cpp.o
  [90/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/MountingCoordinator.cpp.o
  [91/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/ShadowTreeRevision.cpp.o
  [92/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JReactCxxErrorHandler.cpp.o
  [93/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/ShadowTreeRegistry.cpp.o
  [94/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JReactMarker.cpp.o
  [95/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/AsyncEventBeat.cpp.o
  [96/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JReactSoftExceptionLogger.cpp.o
  [97/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JInspector.cpp.o
  [98/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JSLogging.cpp.o
  [99/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JMessageQueueThread.cpp.o
  [100/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/CxxModuleWrapper.cpp.o
  [101/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JRuntimeExecutor.cpp.o
  [102/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/Differentiator.cpp.o
  [103/345] Building CXX object ReactCommon/react/renderer/mounting/CMakeFiles/react_render_mounting.dir/ShadowTree.cpp.o
  [104/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/NativeTime.cpp.o
  [105/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JRuntimeScheduler.cpp.o
  [106/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/ComponentFactory.cpp.o
  [107/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JniJSModulesUnbundle.cpp.o
  [108/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JSLoader.cpp.o
  [109/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/NativeArray.cpp.o
  [110/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/JavaModuleWrapper.cpp.o
  [111/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/MethodInvoker.cpp.o
  [112/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/NativeMap.cpp.o
  [113/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/NativeCommon.cpp.o
  [114/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/EventBeatManager.cpp.o
  [115/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/WritableNativeArray.cpp.o
  [116/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/OnLoad.cpp.o
  [117/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/CMakeFiles/reactperfloggerjni.dir/reactperflogger/OnLoad.cpp.o       
  [118/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/CMakeFiles/callinvokerholder.dir/ReactCommon/CallInvokerHolder.cpp.o
  [119/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/ReadableNativeMap.cpp.o
  [120/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/Binding.cpp.o
  [121/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/ProxyExecutor.cpp.o
  [122/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/ModuleRegistryBuilder.cpp.o
  [123/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/ReadableNativeArray.cpp.o
  [124/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/signalhandler.cc.o
  [125/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/WritableNativeMap.cpp.o
  [126/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/vlog_is_on.cc.o
  [127/345] Building ASM object build/third-party-ndk/boost/CMakeFiles/boost.dir/asm/arm64-v8a/ontop_arm64_aapcs_elf_gas.S.o
  [128/345] Building ASM object build/third-party-ndk/boost/CMakeFiles/boost.dir/asm/arm64-v8a/make_arm64_aapcs_elf_gas.S.o
  [129/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/CMakeFiles/mapbufferjni.dir/react/common/mapbuffer/OnLoad.cpp.o     
  [130/345] Building ASM object build/third-party-ndk/boost/CMakeFiles/boost.dir/asm/arm64-v8a/jump_arm64_aapcs_elf_gas.S.o
  [131/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/utilities.cc.o
  [132/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/cached-powers.cc.o
  [133/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/CMakeFiles/mapbufferjni.dir/react/common/mapbuffer/JReadableMapBuffer.cpp.o
  [134/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/diy-fp.cc.o
  [135/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/symbolize.cc.o
  [136/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/bignum-dtoa.cc.o
  [137/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/CMakeFiles/mapbufferjni.dir/react/common/mapbuffer/JWritableMapBuffer.cpp.o
  [138/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/bignum.cc.o
  [139/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/CMakeFiles/turbomodulejsijni.dir/ReactCommon/CompositeTurboModuleManagerDelegate.cpp.o
  [140/345] Linking CXX static library build\third-party-ndk\boost\libboost.a
  [141/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/fixed-dtoa.cc.o
  [142/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/strtod.cc.o
  [143/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/fast-dtoa.cc.o
  [144/345] Building CXX object build/third-party-ndk/double-conversion/CMakeFiles/double-conversion.dir/double-conversion/double-conversion.cc.o
  [145/345] Linking CXX static library build\third-party-ndk\double-conversion\libdouble-conversion.a
  [146/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/raw_logging.cc.o
  [147/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/jscexecutor/CMakeFiles/jscexecutor.dir/OnLoad.cpp.o
  [148/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/CMakeFiles/turbomodulejsijni.dir/ReactCommon/OnLoad.cpp.o
  [149/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/demangle.cc.o
  [150/345] Building CXX object ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/CMakeFiles/jsijniprofiler.dir/OnLoad.cpp.o
  [151/345] Building CXX object build/third-party-ndk/glog/CMakeFiles/glog.dir/glog-0.3.5/src/logging.cc.o
  [152/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/ReactNativeConfigHolder.cpp.o
  [153/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/CMakeFiles/reactnativeblob.dir/BlobCollector.cpp.o
  [154/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libglog.so
  [155/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/CMakeFiles/turbomodulejsijni.dir/ReactCommon/TurboModuleManager.cpp.o
  [156/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\liblogger.so
  [157/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/StateWrapperImpl.cpp.o
  [158/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/JBackgroundExecutor.cpp.o
  [159/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/FabricMountItem.cpp.o
  [160/345] Building CXX object ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/CMakeFiles/jsijniprofiler.dir/HermesSamplingProfiler.cpp.o
  [161/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/CMakeFiles/reactnativeblob.dir/OnLoad.cpp.o
  [162/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/OnLoad.cpp.o
  [163/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/JFabricUIManager.cpp.o
  [164/345] Building CXX object ReactCommon/react/renderer/telemetry/CMakeFiles/react_render_telemetry.dir/SurfaceTelemetry.cpp.o
  [165/345] Building CXX object ReactCommon/react/renderer/telemetry/CMakeFiles/react_render_telemetry.dir/TransactionTelemetry.cpp.o
  [166/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/AsynchronousEventBeat.cpp.o
  [167/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/SurfaceHandlerBinding.cpp.o
  [168/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/DynamicPropsUtilities.cpp.o
  [169/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ComponentDescriptor.cpp.o
  [170/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/BatchedEventQueue.cpp.o
  [171/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/SynchronousEventBeat.cpp.o
  [172/345] Building CXX object ReactCommon/react/renderer/uimanager/CMakeFiles/react_render_uimanager.dir/bindingUtils.cpp.o
  [173/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/SchedulerToolbox.cpp.o
  [174/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/SurfaceManager.cpp.o
  [175/345] Building CXX object ReactCommon/react/renderer/uimanager/CMakeFiles/react_render_uimanager.dir/SurfaceRegistryBinding.cpp.o
  [176/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/SurfaceHandler.cpp.o
  [177/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/FabricMountingManager.cpp.o
  [178/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventTarget.cpp.o
  [179/345] Building CXX object ReactCommon/react/renderer/components/switch/CMakeFiles/rrc_switch.dir/b411b697ec3d304a2e36061411fbb402/AndroidSwitchMeasurementsManager.cpp.o
  [180/345] Building CXX object ReactCommon/react/renderer/templateprocessor/CMakeFiles/react_render_templateprocessor.dir/UITemplateProcessor.cpp.o
  [181/345] Building CXX object ReactCommon/react/renderer/components/switch/CMakeFiles/rrc_switch.dir/c5f66b7ece4ff89b14bb0673873f572f/androidswitch/AndroidSwitchShadowNode.cpp.o
  [182/345] Building CXX object build/third-party-ndk/fmt/CMakeFiles/fmt.dir/src/format.cc.o
  [183/345] Linking CXX static library build\third-party-ndk\fmt\libfmt.a
  [184/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/YogaLayoutableShadowNode.cpp.o
  [185/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventListener.cpp.o
  [186/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/YogaStylableProps.cpp.o
  [187/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libfolly_runtime.so
  [188/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventDispatcher.cpp.o
  [189/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/ViewShadowNode.cpp.o
  [190/345] Building CXX object ReactCommon/react/renderer/scheduler/CMakeFiles/react_render_scheduler.dir/Scheduler.cpp.o
  [191/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_debug.so
  [192/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libjsi.so
  [193/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/LayoutConstraints.cpp.o
  [194/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventEmitter.cpp.o
  [195/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libruntimeexecutor.so
  [196/345] Linking CXX static library ReactCommon\jsi\libjscruntime.a
  [197/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawEvent.cpp.o
  [198/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/Sealable.cpp.o
  [199/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventQueueProcessor.cpp.o
  [200/345] Building CXX object ReactCommon/react/renderer/uimanager/CMakeFiles/react_render_uimanager.dir/UIManager.cpp.o
  [201/345] Linking CXX static library ReactCommon\cxxreact\libreactnative.a
  [202/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/EventQueue.cpp.o
  [203/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/LayoutMetrics.cpp.o
  [204/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawPropsKey.cpp.o
  [205/345] Linking CXX static library ReactCommon\jsiexecutor\libjsireact.a
  [206/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/LayoutableShadowNode.cpp.o
  [207/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawPropsKeyMap.cpp.o
  [208/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ShadowNodeTraits.cpp.o
  [209/345] Linking CXX static library ReactCommon\hermes\executor\libhermes-executor-common.a
  [210/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/CoreComponentsRegistry.cpp.o
  [211/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawProps.cpp.o
  [212/345] Building CXX object ReactCommon/react/renderer/graphics/CMakeFiles/react_render_graphics.dir/platform/cxx/react/renderer/graphics/Color.cpp.o
  [213/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/Props.cpp.o
  [214/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawValue.cpp.o
  [215/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/State.cpp.o
  [216/345] Building CXX object ReactCommon/react/renderer/uimanager/CMakeFiles/react_render_uimanager.dir/UIManagerBinding.cpp.o
  [217/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ShadowNodeFamilyFragment.cpp.o
  [218/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ShadowNode.cpp.o
  [219/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/RawPropsParser.cpp.o
  [220/345] Building CXX object ReactCommon/react/renderer/imagemanager/CMakeFiles/react_render_imagemanager.dir/ImageResponseObserverCoordinator.cpp.o
  [221/345] Building CXX object ReactCommon/react/renderer/imagemanager/CMakeFiles/react_render_imagemanager.dir/ImageResponse.cpp.o
  [222/345] Building CXX object ReactCommon/react/renderer/debug/CMakeFiles/react_render_debug.dir/DebugStringConvertibleItem.cpp.o
  [223/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ShadowNodeFragment.cpp.o
  [224/345] Building CXX object ReactCommon/react/renderer/debug/CMakeFiles/react_render_debug.dir/DebugStringConvertible.cpp.o
  [225/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/StateUpdate.cpp.o
  [226/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_debug.so
  [227/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/ShadowNodeFamily.cpp.o
  [228/345] Building CXX object ReactCommon/react/renderer/core/CMakeFiles/react_render_core.dir/UnbatchedEventQueue.cpp.o
  [229/345] Building CXX object ReactCommon/react/renderer/graphics/CMakeFiles/react_render_graphics.dir/Transform.cpp.o
  [230/345] Building CXX object ReactCommon/react/renderer/imagemanager/CMakeFiles/react_render_imagemanager.dir/ImageTelemetry.cpp.o
  [231/345] Building CXX object ReactCommon/react/renderer/imagemanager/CMakeFiles/react_render_imagemanager.dir/platform/cxx/react/renderer/imagemanager/ImageRequest.cpp.o
  [232/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/Touch.cpp.o
  [233/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/TouchEvent.cpp.o
  [234/345] Building CXX object ReactCommon/react/renderer/imagemanager/CMakeFiles/react_render_imagemanager.dir/platform/cxx/react/renderer/imagemanager/ImageManager.cpp.o
  [235/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/PointerEvent.cpp.o
  [236/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/ViewEventEmitter.cpp.o
  [237/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/TouchEventEmitter.cpp.o
  [238/345] Building CXX object ReactCommon/react/renderer/components/scrollview/CMakeFiles/rrc_scrollview.dir/ScrollViewEventEmitter.cpp.o
  [239/345] Building CXX object ReactCommon/react/renderer/components/scrollview/CMakeFiles/rrc_scrollview.dir/ScrollViewState.cpp.o
  [240/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/AccessibilityProps.cpp.o
  [241/345] Building CXX object ReactCommon/react/renderer/components/modal/CMakeFiles/rrc_modal.dir/ModalHostViewState.cpp.o
  [242/345] Building CXX object ReactCommon/react/renderer/components/scrollview/CMakeFiles/rrc_scrollview.dir/ScrollViewProps.cpp.o
  [243/345] Building CXX object ReactCommon/react/renderer/components/scrollview/CMakeFiles/rrc_scrollview.dir/ScrollViewShadowNode.cpp.o
  [244/345] Building CXX object ReactCommon/react/renderer/components/progressbar/CMakeFiles/rrc_progressbar.dir/9b24037a332c72f1b12e93ed6d3e7fb7/AndroidProgressBarShadowNode.cpp.o
  [245/345] Building CXX object ReactCommon/react/renderer/components/slider/CMakeFiles/rrc_slider.dir/SliderState.cpp.o
  [246/345] Building CXX object ReactCommon/react/renderer/components/view/CMakeFiles/rrc_view.dir/ViewProps.cpp.o
  [247/345] Building CXX object ReactCommon/react/renderer/components/progressbar/CMakeFiles/rrc_progressbar.dir/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp.o
  [248/345] Building CXX object ReactCommon/react/renderer/components/textinput/CMakeFiles/rrc_textinput.dir/5e70116dc665c4e710525a6c00ec9619/AndroidTextInputProps.cpp.o
  [249/345] Building CXX object ReactCommon/react/renderer/components/textinput/CMakeFiles/rrc_textinput.dir/5e70116dc665c4e710525a6c00ec9619/AndroidTextInputState.cpp.o
  [250/345] Building CXX object ReactCommon/react/renderer/components/slider/CMakeFiles/rrc_slider.dir/SliderShadowNode.cpp.o
  [251/345] Building CXX object ReactCommon/react/renderer/components/root/CMakeFiles/rrc_root.dir/RootShadowNode.cpp.o
  [252/345] Building CXX object ReactCommon/react/renderer/components/textinput/CMakeFiles/rrc_textinput.dir/5e70116dc665c4e710525a6c00ec9619/AndroidTextInputShadowNode.cpp.o
  [253/345] Building CXX object ReactCommon/react/renderer/components/image/CMakeFiles/rrc_image.dir/ImageEventEmitter.cpp.o
  [254/345] Building CXX object ReactCommon/react/renderer/components/slider/CMakeFiles/rrc_slider.dir/platform/android/react/renderer/components/slider/SliderMeasurementsManager.cpp.o
  [255/345] Building CXX object ReactCommon/react/renderer/components/root/CMakeFiles/rrc_root.dir/RootProps.cpp.o
  [256/345] Building CXX object ReactCommon/react/renderer/components/image/CMakeFiles/rrc_image.dir/ImageState.cpp.o
  [257/345] Building CXX object ReactCommon/react/renderer/components/image/CMakeFiles/rrc_image.dir/ImageShadowNode.cpp.o
  [258/345] Building CXX object ReactAndroid/src/main/jni/react/jni/CMakeFiles/reactnativejni.dir/CatalystInstanceImpl.cpp.o
  [259/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/TextProps.cpp.o
  [260/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/BaseTextShadowNode.cpp.o
  [261/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/TextShadowNode.cpp.o
  [262/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/RawTextProps.cpp.o
  [263/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/RawTextShadowNode.cpp.o
  [264/345] Building CXX object ReactCommon/react/renderer/components/image/CMakeFiles/rrc_image.dir/ImageProps.cpp.o
  [265/345] Building CXX object ReactCommon/react/utils/CMakeFiles/react_utils.dir/ManagedObjectWrapper.mm.o
  [266/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/BaseTextProps.cpp.o
  [267/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/ParagraphEventEmitter.cpp.o
  [268/345] Building CXX object ReactCommon/react/renderer/components/unimplementedview/CMakeFiles/rrc_unimplementedview.dir/UnimplementedViewProps.cpp.o
  [269/345] Building CXX object ReactCommon/react/renderer/components/unimplementedview/CMakeFiles/rrc_unimplementedview.dir/UnimplementedViewComponentDescriptor.cpp.o
  [270/345] Building CXX object ReactCommon/react/utils/CMakeFiles/react_utils.dir/RunLoopObserver.cpp.o
  [271/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/ParagraphProps.cpp.o
  [272/345] Building CXX object ReactCommon/react/renderer/components/unimplementedview/CMakeFiles/rrc_unimplementedview.dir/UnimplementedViewShadowNode.cpp.o
  [273/345] Building CXX object ReactCommon/react/bridging/CMakeFiles/react_bridging.dir/LongLivedObject.cpp.o
  [274/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/ParagraphShadowNode.cpp.o
  [275/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/ReactCommon/TurboModulePerfLogger.cpp.o
  [276/345] Linking CXX static library ReactCommon\react\bridging\libreact_bridging.a
  [277/345] Building CXX object ReactCommon/react/renderer/mapbuffer/CMakeFiles/react_render_mapbuffer.dir/MapBuffer.cpp.o
  [278/345] Building CXX object ReactCommon/react/renderer/mapbuffer/CMakeFiles/react_render_mapbuffer.dir/MapBufferBuilder.cpp.o
  [279/345] Building CXX object ReactCommon/react/renderer/components/text/CMakeFiles/rrc_text.dir/ParagraphState.cpp.o
  [280/345] Building CXX object ReactCommon/react/renderer/leakchecker/CMakeFiles/react_render_leakchecker.dir/LeakChecker.cpp.o
  [281/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/ReactCommon/TurboModuleBinding.cpp.o
  [282/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/ReactCommon/TurboModule.cpp.o
  [283/345] Building CXX object ReactCommon/react/renderer/leakchecker/CMakeFiles/react_render_leakchecker.dir/WeakFamilyRegistry.cpp.o
  [284/345] Building CXX object ReactAndroid/src/main/jni/first-party/fb/CMakeFiles/fb.dir/log.cpp.o
  [285/345] Building CXX object ReactCommon/react/renderer/textlayoutmanager/CMakeFiles/react_render_textlayoutmanager.dir/TextMeasureCache.cpp.o
  [286/345] Building CXX object ReactAndroid/src/main/jni/first-party/fb/CMakeFiles/fb.dir/assert.cpp.o
  [287/345] Building CXX object ReactCommon/react/renderer/components/modal/CMakeFiles/rrc_modal.dir/ModalHostViewShadowNode.cpp.o
  [288/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libfb.so 
  [289/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/ReactCommon/TurboModuleUtils.cpp.o
  [290/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreactperfloggerjni.so
  [291/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_graphics.so
  [292/345] Building CXX object ReactAndroid/src/main/jni/first-party/yogajni/CMakeFiles/yoga.dir/jni/YogaJniException.cpp.o
  [293/345] Building CXX object ReactAndroid/src/main/jni/first-party/fbgloginit/CMakeFiles/glog_init.dir/glog_init.cpp.o
  [294/345] Building CXX object ReactAndroid/src/main/jni/first-party/yogajni/CMakeFiles/yoga.dir/jni/yogajni.cpp.o
  [295/345] Linking CXX static library ReactAndroid\src\main\java\com\facebook\react\turbomodule\core\jni\libcallinvokerholder.a
  [296/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libglog_init.so
  [297/345] Building CXX object ReactAndroid/src/main/jni/first-party/yogajni/CMakeFiles/yoga.dir/jni/common.cpp.o
  [298/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_utils.so
  [299/345] Building CXX object ReactAndroid/src/main/jni/first-party/yogajni/CMakeFiles/yoga.dir/jni/corefunctions.cpp.o
  [300/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_mapbuffer.so
  [301/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_core.so
  [302/345] Building CXX object ReactAndroid/src/main/jni/first-party/yogajni/CMakeFiles/yoga.dir/jni/YGJNIVanilla.cpp.o
  [303/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_componentregistry.so
  [304/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_runtimescheduler.so
  [305/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_leakchecker.so
  [306/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libyoga.so
  [307/345] Building CXX object build/generated/source/codegen/jni/CMakeFiles/react_codegen_rncore.dir/react/renderer/components/rncore/ShadowNodes.cpp.o
  [308/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libmapbufferjni.so
  [309/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_view.so
  [310/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_attributedstring.so
  [311/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_unimplementedview.so
  [312/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_scrollview.so
  [313/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_root.so
  [314/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreactnativejni.so
  [315/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_telemetry.so
  [316/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libjsijniprofiler.so
  [317/345] Building CXX object ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CMakeFiles/fabricjni.dir/EventEmitterWrapper.cpp.o
  [318/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreactnativeblob.so
  [319/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libjscexecutor.so
  [320/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_mounting.so
  [321/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_imagemanager.so
  [322/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/ReactCommon/TurboCxxModule.cpp.o
  [323/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_uimanager.so
  [324/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_image.so
  [325/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_animations.so
  [326/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_templateprocessor.so
  [327/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_scheduler.so
  [328/345] Building CXX object ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/CMakeFiles/hermes-executor-release.dir/OnLoad.cpp.o
  [329/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libhermes-executor-release.so
  [330/345] Building CXX object build/generated/source/codegen/jni/CMakeFiles/react_codegen_rncore.dir/react/renderer/components/rncore/EventEmitters.cpp.o
  [331/345] Building CXX object ReactCommon/react/renderer/textlayoutmanager/CMakeFiles/react_render_textlayoutmanager.dir/bb83bae29660f0016653d39f60ee439a/TextLayoutManager.cpp.o
  [332/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_render_textlayoutmanager.so
  [333/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_text.so
  [334/345] Building CXX object ReactCommon/react/nativemodule/core/CMakeFiles/react_nativemodule_core.dir/platform/android/ReactCommon/JavaTurboModule.cpp.o
  [335/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\librrc_textinput.so
  [336/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_nativemodule_core.so
  [337/345] Building CXX object build/generated/source/codegen/jni/CMakeFiles/react_codegen_rncore.dir/react/renderer/components/rncore/Props.cpp.o
  [338/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libturbomodulejsijni.so
  [339/345] Building CXX object build/generated/source/codegen/jni/CMakeFiles/react_codegen_rncore.dir/rncore-generated.cpp.o
  [340/345] Linking CXX shared library D:\AwesomeProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\RelWithDebInfo\2w506u4s\obj\arm64-v8a\libreact_codegen_rncore.so
  [341/345] Linking CXX static library ReactCommon\react\renderer\components\progressbar\librrc_progressbar.a
  FAILED: ReactCommon/react/renderer/components/progressbar/librrc_progressbar.a
  cmd.exe /C "cd . && C:\Users\alabs\AppData\Local\Android\Sdk\cmake\3.18.1\bin\cmake.exe -E rm -f ReactCommon\react\renderer\components\progressbar\librrc_progressbar.a && C:\Users\alabs\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar.exe qc ReactCommon\react\renderer\components\progressbar\librrc_progressbar.a  @ReactCommon\react\renderer\components\progressbar\CMakeFiles\rrc_progressbar.rsp && C:\Users\alabs\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ranlib.exe ReactCommon\react\renderer\components\progressbar\librrc_progressbar.a && cd ."
  C:\Users\alabs\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar.exe: ReactCommon/react/renderer/components/progressbar/CMakeFiles/rrc_progressbar.dir/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp.o: No such file or directory   
  [342/345] Linking CXX static library ReactCommon\react\renderer\components\modal\librrc_modal.a
  [343/345] Linking CXX static library ReactCommon\react\renderer\components\switch\librrc_switch.a
  [344/345] Linking CXX static library ReactCommon\react\renderer\components\slider\librrc_slider.a
  ninja: build stopped: subcommand failed.



* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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

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.5.1/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 19m 56s
42 actionable tasks: 37 executed, 5 up-to-date

D:\AwesomeProject\android>

@mganandraj
Copy link
Contributor

@alabsi91 The log snippet says the static library creation is failing which points to the limitation of the "ar" tool in ndk 21 to handle the file paths more than 260 chars long. This restriction might go away once we switch to ndk 23 or higher. By the way, Did you enable long file path support in windows ? https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

@cortinico Great to hear about the plans to simplify the Hermes builds. Lmk if you need any help in coding or testing ..

@alabsi91
Copy link

  • I already have long path enabled on my system.
  • Bumping NDK version in android\build.gradle file to version 23.2.8568313 worked :
buildscript {
    ext {
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

        if (System.properties['os.arch'] == "aarch64") {
            // For M1 Users we need to use the NDK 24 which added support for aarch64
           ndkVersion = "21.4.7075529"
           ndkVersion = "24.0.8215888"
        } else {
            // Otherwise we default to the side-by-side NDK version from AGP.
-          ndkVersion = "21.4.7075529"
+          ndkVersion = "23.2.8568313"
        }
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.2.1")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("de.undercouch:gradle-download-task:5.0.1")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

@mganandraj thank you again .

@bhaveshdotstudio
Copy link

@alabsi91 not working above solution..........

@marcosPerezRubio
Copy link

Same problem here with 0.70.4... Going to test with the ndk 23 "trick".

@keyboardTC
Copy link

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.

Process 'command 'cmd'' finished with non-zero exit value 1

@sanketsirohiya
Copy link

@marcosPerezRubio Were you able to solve the issue with the 'ndk trick'?

@sanketsirohiya
Copy link

@cortinico Getting this issue on a Mac M1 machine, with a fresh new architecture project. None of the solutions mentioned here works. Any pointers would be appreciated.

@marcosPerezRubio
Copy link

@sanketsirohiya No, I'm currently building the app without enabling the new architecture.

Gonna wait to the 0.71 next release to see if it's fixed.

@filipepalheta
Copy link

BUILD FAILED in 28s

at makeError (C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\barbeariapalhetapp\node_modules\@react-native-community\cli\build\index.js:142:9)

info Run CLI with --verbose flag for more details.

C:\barbeariapalhetapp>npx react-native run-android
info Starting JS server...
info Installing the app...

Configure project :app
Checking the license for package NDK (Side by side) 23.1.7779620 in C:\Users\Filipe\AppData\Local\Android\Sdk\licenses
License for package NDK (Side by side) 23.1.7779620 accepted.
Preparing "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)".
"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" ready.
Installing NDK (Side by side) 23.1.7779620 in C:\Users\Filipe\AppData\Local\Android\Sdk\ndk\23.1.7779620
"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" complete.
"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" finished.

Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
C:\barbeariapalhetapp\node_modules\react-native-reanimated\android\react-native-reanimated-70-hermes.aar

Task :ReactAndroid:downloadBoost UP-TO-DATE
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

Task :ReactAndroid:downloadFmt UP-TO-DATE
Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz

Task :ReactAndroid:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

Task :ReactAndroid:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz

Task :ReactAndroid:downloadLibevent UP-TO-DATE
Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-09-14-RNv0.70.1-2a6b111ab289b55d7b78b5fdf105f466ba270fd7

Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Configuring incomplete, errors occurred!
See also "C:/barbeariapalhetapp/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".
See also "C:/barbeariapalhetapp/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeError.log".

Task :ReactAndroid:hermes-engine:configureBuildForHermes 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.5.1/userguide/command_line_interface.html#sec:command_line_warnings
24 actionable tasks: 1 executed, 23 up-to-date
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.

Process 'command 'cmd'' finished with non-zero exit value 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.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • 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.
==============================================================================

BUILD FAILED in 5m 17s

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
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_C_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:64 (project):
The CMAKE_CXX_COMPILER:

cl

is not a full path and was not found in the PATH.

To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.

Process 'command 'cmd'' finished with non-zero exit value 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.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • 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.
==============================================================================

BUILD FAILED in 5m 17s

at makeError (C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\barbeariapalhetapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\barbeariapalhetapp\node_modules\@react-native-community\cli\build\index.js:142:9)

info Run CLI with --verbose flag for more details.

@cortinico same error in React Native 0.70.5

@mganandraj
Copy link
Contributor

@filipepalheta From reading the error message, i think you are not building from Visual Studio environment. In 0.70.x, you are required to build from VS environment to build the hermes compiler ..

@Joh4nnesHartl
Copy link

Any updates to this issue? it is especially annoying when trying to build it in the cloud with expo eas

[RUN_GRADLEW] -- The following ICU libraries were not found:
[RUN_GRADLEW] --   uc (required)
[RUN_GRADLEW] --   i18n (required)
[RUN_GRADLEW] --   data (required)
[RUN_GRADLEW] --   uc (required)
[RUN_GRADLEW] -- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "52")
[RUN_GRADLEW] -- Configuring incomplete, errors occurred!

Is the only workaround to install the ICU libs locally?

For running it locally just run sudo apt-get install libicu-dev (Ubuntu 22.04) then it works locally.

@cortinico
Copy link
Contributor

Gonna wait to the 0.71 next release to see if it's fixed.

In 0.71, we removed the need to build the Hermes compiler locally when on New Architecture. So this issue on Windows, and similar ones, should be fixed.

For the time being, yes, you need icu installed for Windows and you need to build from the Visual Studio console when running on the New Architecture. It's described here: https://reactnative.dev/architecture/bundled-hermes#android-users-on-new-architecture-building-on-windows

@cortinico
Copy link
Contributor

This issue is fixed in React Native 0.71 (as this task won't be executing anymore).
Please migrate to 0.71 and try again. If the issue persists, open a new issue. Thank you

@Edison4mobile
Copy link

Edison4mobile commented Nov 9, 2023

I am having same problem 0.71.14

System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Memory: 86.52 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
    Watchman: 2023.11.06.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.14.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
    Android SDK:
      API Levels: 23, 26, 28, 31, 33, 34
      Build Tools: 29.0.2, 30.0.3, 31.0.0, 33.0.0, 34.0.0
      System Images: android-34 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.10811636
    Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.14 => 0.71.14 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
[ 53%] Building CXX object lib/Support/CMakeFiles/hermesSupport.dir/Semaphore.cpp.o

> Task :react-native:ReactAndroid:hermes-engine:buildHermes 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.5.1/userguide/command_line_interface.html#sec:command_line_warnings
644 actionable tasks: 4 executed, 640 up-to-date
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


/Users/vilayhongbounthanh/Work/6.Task/metamask-mobile/node_modules/react-native/sdks/hermes/lib/Support/Semaphore.cpp:35:3: error: use of undeclared identifier 'assert'
  assert(semPtr_ != nullptr && "sem_open should have succeeded");
  ^
1 error generated.
make[3]: *** [lib/Support/CMakeFiles/hermesSupport.dir/Semaphore.cpp.o] Error 1
make[2]: *** [lib/Support/CMakeFiles/hermesSupport.dir/all] Error 2
make[1]: *** [tools/hermesc/CMakeFiles/hermesc.dir/rule] Error 2
make: *** [hermesc] Error 2

@amitach
Copy link

amitach commented Nov 21, 2023

I have the same issue in 0.71.14

@erTongWang
Copy link

"react-native": "^0.70.9", This version has the same problem,Do you have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Impact: Errors During Build Platform: Android Android applications. Platform: Windows Building on Windows. Tech: Hermes Hermes Engine: https://hermesengine.dev/ Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests