Closed aleluiah closed 1 year ago
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?
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.
exactly the same issue am facing visual studio developer command prompt also failed after carefully following the linked instruction
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.
Thansk for the report @nibblesnbits I will look into this. To help me understand:
Yes, it happens in a new project only after new architecture is enabled.
From: Nicola Corti @.> Sent: Thursday, June 30, 2022 10:51:23 AM To: facebook/react-native @.> Cc: Stephen Collins @.>; Mention @.> Subject: Re: [facebook/react-native] Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] FAILED (Issue #34084)
Thansk for the report @nibblesnbitshttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnibblesnbits&data=05%7C01%7C%7C387ec99b87594a8320c008da5aa800b7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637921974854590259%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h7RlGhGJ4h539uXmUmbGSDjPrFVZUslpz2GPVkw9sP8%3D&reserved=0 I will look into this. To help me understand:
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffacebook%2Freact-native%2Fissues%2F34084%23issuecomment-1171319719&data=05%7C01%7C%7C387ec99b87594a8320c008da5aa800b7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637921974854590259%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=r36qxRZjwqmh1GqEczdBz%2FkFWlLv8ASpr1PsD2PIFtI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABODKJN6TN66N3V22TXBNNLVRWX6XANCNFSM5Z7TUX4A&data=05%7C01%7C%7C387ec99b87594a8320c008da5aa800b7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637921974854590259%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CLDLZcrKpJDSTKG0tAihbz5wNl9i0k8UB1yOfD1aFPk%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
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.
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.
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
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?
Yes we are
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 https://github.com/facebook/react-native/issues/34116. special thanks to @JoseLion, @wfern and @cortinico for their time and effort to help reproduce and fix this issue.
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
@jslok you do not need to add the hermesCommand line. clean your build or create a fresh project and use the pr
@aleluiah I get the same error without hermesCommand line. Using a fresh install with the pr.
@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
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.
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
@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.
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.
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
@truediogo thanks a lot. Yes, I am using Ubuntu. Let me try this. Hopefully it will work ❤️
But now ended with the same exact problem. 😂
Task :ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes] FAILED
@jslok sorry to hear the proposed fix didn't work. I think it is because your first error was on :hermes-engine:buildCMakeRelease
task and the second one in :hermes-engine:buildCMakeMinSizeRel
task, so it seems we actually need to use the correct variant to build the path. I think I know how we can do this, but it requires a few changes. I'll guide you so you can give it a try if you like 🙂
Again, using the changes in PR #34151 modify react.gradle in the following lines:
- def getHermesCommand = {
+ def getHermesCommand(targetName) {
def builtHermesc = hermesOverrideDir ?
- new File(hermesOverrideDir, "build/bin/$hermescBin") :
+ new File(hermesOverrideDir, "build/bin/$targetName/$hermescBin") :
- new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/$hermescBin")
+ new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/$targetName/$hermescBin")
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
- commandLine("cmd", "/c", getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
+ commandLine("cmd", "/c", getHermesCommand(targetName), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
} else {
- commandLine(getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
+ commandLine(getHermesCommand(targetName), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags)
}
That's it! I hope that solves it.
Let me know how it goes, I'll be happy to add the change to open PR or create a new one 🙂
@JoseLion Just tried the latest changes and still no luck. Same error. After some further digging it appears the getHermesCommand function is not getting called at all. It appears the whole doLast task on ln 283 is not getting run.
I am also facing exactly the same issue.
Any Updates?
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
Do you happen to know how to install icu4c for Windows? I have tried downloading the library from their site and copying the files into C:\Windows but it did not work.
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
Do you happen to know how to install icu4c for Windows? I have tried downloading the library from their site and copying the files into C:\Windows but it did not work.
You need also to add ICU binaries into system environment variables https://unicode-org.github.io/icu/userguide/icu4c/#windows-platform
Hi, I'm having trouble building my project with the new architecture on windows too. During the compiling process it says that it's using Windows 10 ICU. It's failing after the Cmake of hermes and the other components so I think this part is ok, do you really need the extra ICU libs for the other steps of the build process?
Edit: Just noticed this warning..
Failed to find all ICU components (missing: ICU_INCLUDE_DIR _ICU_REQUIRED_LIBS_FOUND) (Required is at least version "52")
So I think it's missing some of the components needed to build properly.
Edit2: Followed the procedure mentioned by @truediogo and now I have the following
-- Found the following ICU libraries: -- uc (required) -- i18n (required) -- data (required) -- uc (required) -- Found ICU: D:/icu/32/include (found suitable version "71.1", minimum required is "52")
But it still saying other header files are missing.
-- Looking for dlfcn.h -- Looking for dlfcn.h - not found -- Looking for errno.h -- Looking for errno.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for link.h -- Looking for link.h - not found -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for malloc/malloc.h -- Looking for malloc/malloc.h - not found [...]
Edit3: Just built a clean project using default template from react-native init. If I use --active-arch-only everything is smooth and flawless.. I didn't changed anything at all. PS: The warnings mentioned above still present, but the project is building fine.
But this problem occurs when building for all the architectures.
Task :ReactAndroid:configureCMakeDebug[armeabi-v7a] C/C++: debug|armeabi-v7a :CMake Warning in E:/projetos/reactnice/node_modules/react-native/ReactCommon/react/renderer/components/progressbar/CMakeLists.txt: C/C++: debug|armeabi-v7a : The object file directory C/C++: debug|armeabi-v7a : E:/projetos/reactnice/node_modules/react-native/ReactAndroid/.cxx/Debug/483m38n2/armeabi-v7a/ReactCommon/react/renderer/components/progressbar/CMakeFiles/rrc_progressbar.dir/./ C/C++: debug|armeabi-v7a : has 176 characters. The maximum full path to an object file is 250 C/C++: debug|armeabi-v7a : characters (see CMAKE_OBJECT_PATH_MAX). Object file C/C++: debug|armeabi-v7a : android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp.o C/C++: debug|armeabi-v7a : cannot be safely placed under this directory. The build may not work C/C++: debug|armeabi-v7a : correctly. Task :ReactAndroid:buildCMakeDebug[armeabi-v7a][fabricjni,hermes-executor-debug,etc] FAILED
I noticed the warnings about max pull path length. Dunno if this is what's causing the problems.
On the other project I'm trying to upgrade to the new architecture I can't build even using the flag for just the active architecture. So there's maybe something missing in the NDK/configuration process there.
after upgrading to RN. 0.69.1, I was struggling to solve this issue since last week I am able to fix this issue, check out below for some tips:
make sure you have done the environment setup for the new RN version - https://reactnative.dev/docs/environment-setup try to verify it using - npx @react-native-community/cli doctor
open Android studio --> open AVD Manager --> create virtual device --> select API level 31 as your Image (it's not working for API 32 in my system)
then, from your root project - cd android && ./gradlew --status && ./gradlew --stop && ./gradlew clean && cd ..
Let me know if this works !! 🙂
Sadly no progress with this building under windows.
Finally I was able to make this work in Windows.
I wen't ahead and created a WSL2 instance with ubuntu and I can build the same project fine. (It's a clean project)
But in the windows machine the build fails due to the maximum full path to an object file.
Here's the log output.
First during the compile phase there's a warning about the AndroidProgressbarMeasurementsManager.cpp:
C/C++: debug|arm64-v8a :CMake Warning in E:/projetos/emifmobile/node_modules/react-native/ReactCommon/react/renderer/components/progressbar/CMakeLists.txt: C/C++: debug|arm64-v8a : The object file directory C/C++: debug|arm64-v8a : E:/projetos/emifmobile/node_modules/react-native/ReactAndroid/.cxx/Debug/3d4m3e59/arm64-v8a/ReactCommon/react/renderer/components/progressbar/CMakeFiles/rrc_progressbar.dir/./ C/C++: debug|arm64-v8a : has 175 characters. The maximum full path to an object file is 250 C/C++: debug|arm64-v8a : characters (see CMAKE_OBJECT_PATH_MAX). Object file C/C++: debug|arm64-v8a : android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp.o C/C++: debug|arm64-v8a : cannot be safely placed under this directory. The build may not work C/C++: debug|arm64-v8a : correctly.
Then, later on the build process I get this error:
E:\AndroidSdk\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.
I've added back in the app/build.gradle some of the code from 0.68.1 to test.. but I had no success.
// Fix for windows limit on number of character in file paths and in command lines if (Os.isFamily(Os.FAMILY_WINDOWS)) { arguments "NDK_APP_SHORT_COMMANDS=true" }
Adding the following fixed it for me:
+ import org.apache.tools.ant.taskdefs.condition.Os
if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for arch64
ndkVersion = "24.0.8215888"
+} else if (Os.isFamily(Os.FAMILY_WINDOWS)) {
+ // For Windows Users, we need to use NDK 23, otherwise the build will
+ // fail due to paths longer than the OS limit
+ ndkVersion = "23.1.7779620"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
I hope this helps you guys find some path to solve your issues. Full repo with changes can be checked here
I think there are a few different error being debugged here. Tried all of the above and still get this error when trying run-android or when doing a clean:
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:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\3u5w71b1\arm64-v8a libhermes}
ninja: Entering directory `C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\3u5w71b1\arm64-v8a'
ninja: error: 'C:/reactnice/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
I get this error in VS 2022 command prompt as well as the regular windows command prompt. Is that a sign I have some misconfiguration in VS 2022 cmd?
You should always use VS 2022 cmd prompt. Did you checked if you are getting any errors about ICU lib? Did the others architectures finished the build process with no errors? Post the whole build log if you can.
I think there are a few different error being debugged here. Tried all of the above and still get this error when trying run-android or when doing a clean:
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:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\3u5w71b1\arm64-v8a libhermes} ninja: Entering directory `C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\3u5w71b1\arm64-v8a' ninja: error: 'C:/reactnice/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
I get this error in VS 2022 command prompt as well as the regular windows command prompt. Is that a sign I have some misconfiguration in VS 2022 cmd?
ICU libs appear to be ok. But there is this other issue: Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
. Is this significant and how did you guys fix it?
No outputs appear in the build folder.
Full build log:
C:\reactnice>npx react-native run-android --variant=release
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1083 file(s) to forward-jetify. Using 12 workers...
info JS server already running.
info Installing the app...
> 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.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.19044.
-- Found the following ICU libraries:
-- uc (required)
-- i18n (required)
-- data (required)
-- uc (required)
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Found 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:/reactnice/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes
> Task :ReactAndroid:hermes-engine:buildHermes
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
LLVHDemangle.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\llvh\lib\Demangle\Debug\LLVHDemangle.lib
dtoa.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\dtoa\Debug\dtoa.lib
zip.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\zip\Debug\zip.lib
LLVHSupport.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\external\llvh\lib\Support\Debug\LLVHSupport.lib
hermesFrontEndDefs.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\FrontEndDefs\Debug\hermesFrontEndDefs.lib
hermesPlatformUnicode.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Platform\Unicode\Debug\hermesPlatformUnicode.lib
hermesOptimizer.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Debug\hermesOptimizer.lib
hermesRegex.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Regex\Debug\hermesRegex.lib
hermesSupport.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Support\Debug\hermesSupport.lib
hermesADT.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\ADT\Debug\hermesADT.lib
hermesFlowParser.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\FlowParser\Debug\hermesFlowParser.lib
hermesInst.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Inst\Debug\hermesInst.lib
hermesAST.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\AST\Debug\hermesAST.lib
hermesAST2JS.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\AST2JS\Debug\hermesAST2JS.lib
hermesParser.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Parser\Debug\hermesParser.lib
hermesSourceMap.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\SourceMap\Debug\hermesSourceMap.lib
hermesFrontend.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\Debug\hermesFrontend.lib
hermesBackend.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\BCGen\Debug\hermesBackend.lib
hermesHBCBackend.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\BCGen\HBC\Debug\hermesHBCBackend.lib
hermesCompilerDriver.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\lib\CompilerDriver\Debug\hermesCompilerDriver.lib
hermesc.vcxproj -> C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\bin\Debug\hermesc.exe
> Task :ReactAndroid:hermes-engine:buildCMakeMinSizeRel[arm64-v8a][libhermes] FAILED
C/C++: ninja: error: 'C:/reactnice/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
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
47 actionable tasks: 9 executed, 38 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.
icu dir: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86;C:/icu/lib64
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\jslok\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\2z5p6i1a\arm64-v8a libhermes}
ninja: Entering directory `C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\2z5p6i1a\arm64-v8a'
ninja: error: 'C:/reactnice/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.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
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:installRelease -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.
icu dir: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x86;C:/icu/lib64
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\jslok\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\2z5p6i1a\arm64-v8a libhermes}
ninja: Entering directory `C:\reactnice\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\MinSizeRel\2z5p6i1a\arm64-v8a'
ninja: error: 'C:/reactnice/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.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
at makeError (C:\reactnice\node_modules\execa\index.js:174:9)
at C:\reactnice\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\reactnice\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\reactnice\node_modules\@react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.
ICU libs appear to be ok. But there is this other issue:
Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
. Is this significant and how did you guys fix it?No outputs appear in the build folder.
Mine has the same warning about Backtrace. I was able to build it even with this warning. I remember having the same error about ninja, but it was solved when I fixed all the other configurations. I've seen the same error in this issue maybe you can find a solution there.
Edit: After trying to build using --variant=release I found out that the sample project was missing the changes from the PR made by @JoseLion to fix the hermes bin directory.
So I added the changes in the patch-package postinstall. Maybe this fix your problem too. Now I can build the project with run-android/run-android --active-arch-only/run-android --variant=release without any issues. I hope this helps.
@Skullcan Thanks ! using ndk23 build was successful but metro server crashes by throwing this error -
events.js:352
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, lstat 'C:\Users\Deepu\Desktop\TestProject\android\app\build\intermediates\cxx\Debug\5a2q5y1z\obj\local\x86\libtestproject_appmodules.so.tmp36e6ba9'
Emitted 'error' event on NodeWatcher instance at:
at C:\Users\Deepu\Desktop\TestProject\node_modules\metro\node_modules\jest-haste-map\build\watchers\NodeWatcher.js:275:14
at FSReqCallback.oncomplete (fs.js:192:21) {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'C:\\Users\\Deepu\\Desktop\\TestProject\\android\\app\\build\\intermediates\\cxx\\Debug\\5a2q5y1z\\obj\\local\\x86\\libtestproject_appmodules.so.tmp36e6ba9'
}
App Successfully Build and Run on very first build but if we re build the project then metro server crashes
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 whenhermes-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 thebuiltHermesc
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 pathsI hope this helps 🙂
PS: We also might need to determine the type of build (
Release
orDebug
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
I used these fixes and additionally built the node_modules\react-native\ReactAndroid\hermes-engine\build\hermes\Hermes.sln manually in release mode. It throws some errors but creates the missing exe. After that I run yarn Android and everything works fine.
I am on windows machine and used VS Community 2019
@testbuddy Thanks Bro !
Now NodeWatcher can find build Hermes path. But new error occur -
Error: EPERM: operation not permitted, lstat 'C:\Users\Deepu\Desktop\TestProject\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\2s2p2x1a\obj\arm64-v8a\libreact_render_textlayoutmanager.so.tmp5e83367' d\intermediates\cxx\Debug
Emitted 'error' event on NodeWatcher instance at:
at C:\Users\Deepu\Desktop\TestProject\node_modules\metro\node_modules\jest-haste-map\build\watchers\NodeWatcher.js:275:14 4
at FSReqCallback.oncomplete (fs.js:192:21) {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'C:\\Users\\Deepu\\Desktop\\TestProject\\node_modules\\react-native\\ReactAndroid\\build\\intermediates\\cxx\\Debug\\2s2p2x1a\\obj\\arm64-v8a\2s2p2x1a\\obj\\arm64-v8a\\libreact_render_textlayoutmanager.so.tmp5e83367'
}
NodeWatcher can't find libreact_render_textlayoutmanager.so.tmp5e83367 but it exist in node module with name libreact_render_textlayoutmanager.so
what is that .tmp5e83367
can you explain me ?
Plus one here. Had the same problem with lack of harmes.exe, built the solution in VS 2022, then AndroidProgressBarMeasurementsManager became missing.
PS D:\rnProject\yhd-super-app> npx react-native info
npm WARN config global --global, --local are deprecated. Use --location=global instead.
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12500
Memory: 1.84 GB / 15.72 GB
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\node_global\yarn.CMD
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
Android NDK: 24.0.8215888
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
Visual Studio: 17.2.32616.157 (Visual Studio Community 2022)
Languages:
Java: 11.0.15.1
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.2 => 0.69.2
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
yarn run v1.22.19
$ react-native run-android --active-arch-only
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1427 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
info Detected architectures x86
info Installing the app...
> Configure project :app
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
> Configure project :nl_scan_module
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.
> Configure project :react-native-screens
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
> Configure project :ReactAndroid
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
> Configure project :yhd_base_core
WARNING:API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
> Configure project :ReactAndroid:hermes-engine
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
WARNING:[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
[CXX5202] This app only has 32-bit [x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
> 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.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
-- Found the following ICU libraries:
-- uc (required)
-- i18n (required)
-- uc (required)
-- The following ICU libraries were not found:
-- data (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR _ICU_REQUIRED_LIBS_FOUND) (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: D:/rnProject/yhd-super-app/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes
> Task :ReactAndroid:hermes-engine:buildHermes
[ 0%] Built target LLVHDemangle
[ 25%] Built target LLVHSupport
[ 25%] Built target hermesFrontEndDefs
[ 29%] Built target hermesPlatformUnicode
[ 32%] Built target hermesRegex
[ 35%] Built target dtoa
[ 45%] Built target hermesSupport
[ 45%] Built target hermesInst
[ 58%] Built target hermesOptimizer
[ 61%] Built target hermesAST
[ 64%] Built target hermesParser
[ 74%] Built target hermesFrontend
[ 74%] Built target hermesADT
[ 74%] Built target hermesFlowParser
[ 77%] Built target hermesSourceMap
[ 80%] Built target hermesAST2JS
[ 83%] Built target hermesBackend
[ 96%] Built target hermesHBCBackend
[100%] Built target zip
[100%] Built target hermesCompilerDriver
[100%] Built target hermesc
> Task :ReactAndroid:hermes-engine:configureCMakeRelease[x86]
C/C++: debug|x86 :CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
C/C++: debug|x86 : The OLD behavior for policy CMP0026 will be removed from a future version
C/C++: debug|x86 : of CMake.
C/C++: debug|x86 : The cmake-policies(7) manual explains that the OLD behaviors of all
C/C++: debug|x86 : policies are deprecated and that a policy should be set to OLD only under
C/C++: debug|x86 : specific short-term circumstances. Projects should be ported to the NEW
C/C++: debug|x86 : behavior and not rely on setting a policy to OLD.
C/C++: debug|x86 :CMake Warning at external/llvh/cmake/modules/GetHostTriple.cmake:18 (message):
C/C++: debug|x86 : LLVM_HOST_TRIPLE can't be computed on Windows with this toolchain
C/C++: debug|x86 :Call Stack (most recent call first):
C/C++: debug|x86 : external/llvh/cmake/config-ix.cmake:360 (get_host_triple)
C/C++: debug|x86 : external/llvh/CMakeLists.txt:21 (include)
> Task :ReactAndroid:hermes-engine:buildCMakeRelease[x86][libhermes] FAILED
C/C++: ninja: Entering directory `D:\rnProject\yhd-super-app\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1s50k391\x86'
C/C++: In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Memory.cpp:21:
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:51:12: error: use of undeclared identifier 'PROT_READ'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:53:12: error: use of undeclared identifier 'PROT_WRITE'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:12: error: use of undeclared identifier 'PROT_READ'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:24: error: use of undeclared identifier 'PROT_WRITE'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:12: error: use of undeclared identifier 'PROT_READ'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:24: error: use of undeclared identifier 'PROT_EXEC'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:12: error: use of undeclared identifier 'PROT_READ'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:24: error: use of undeclared identifier 'PROT_WRITE'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:37: error: use of undeclared identifier 'PROT_EXEC'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:72:12: error: use of undeclared identifier 'PROT_EXEC'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:78:10: error: use of undeclared identifier 'PROT_NONE'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:100:17: error: use of undeclared identifier 'MAP_PRIVATE'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:104:3: error: use of undeclared identifier 'MAP_ANON'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:120:18: error: no member named 'mmap' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:122:15: error: use of undeclared identifier 'MAP_FAILED'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:149:14: error: no member named 'munmap' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:187:18: error: no member named 'mprotect' in the global namespace
C/C++: In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Path.cpp:1111:
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:15: error: variable has incomplete type 'struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:10: note: forward declaration of 'stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:178:17: error: use of undeclared identifier 'MAXPATHLEN'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:286:9: error: no member named 'mkdir' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:15: error: variable has incomplete type 'struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:10: note: forward declaration of 'stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:17: error: variable has incomplete type 'struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:12: note: forward declaration of 'stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:529:7: error: use of undeclared identifier 'S_ISDIR'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:531:12: error: use of undeclared identifier 'S_ISREG'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:533:12: error: use of undeclared identifier 'S_ISBLK'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:535:12: error: use of undeclared identifier 'S_ISCHR'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:537:12: error: use of undeclared identifier 'S_ISFIFO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:539:12: error: use of undeclared identifier 'S_ISSOCK'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:541:12: error: use of undeclared identifier 'S_ISLNK'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:42: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:43: error: expected ')'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:35: note: to match this '('
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:42: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:66: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:30: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:47: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:62: error: member access into incomplete type 'const struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:515:12: error: use of undeclared identifier 'STDOUT_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:568:13: error: use of undeclared identifier 'STDERR_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:578:17: error: no member named 'lseek' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:694:21: error: no member named 'write' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:742:11: error: no member named 'lseek' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:777:35: error: use of undeclared identifier 'isatty'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:856:27: error: use of undeclared identifier 'STDERR_FILENO'
C/C++: In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Process.cpp:94:
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:69:2: warning: Cannot get usage times on this platform [-W#warnings]
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:82:2: error: Cannot get the page size on this machine
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:84:32: error: use of undeclared identifier 'page_size'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:111:2: warning: Cannot get malloc info on this platform [-W#warnings]
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:183:9: error: no type named 'close' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:30: error: use of undeclared identifier 'STDIN_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:44: error: use of undeclared identifier 'STDOUT_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:59: error: use of undeclared identifier 'STDERR_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:199:25: error: cannot use incomplete type 'const int []' as a range
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:17: error: variable has incomplete type 'struct stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:12: note: forward declaration of 'stat'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:202:32: error: no member named 'fstat' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:36: error: no member named 'open' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:54: error: use of undeclared identifier 'O_RDWR'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:217:21: error: assigning to 'int' from incompatible type 'decltype(F())' (aka 'void')
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:223:14: error: use of undeclared identifier 'dup2'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:247:9: error: no member named 'close' in the global namespace
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:265:36: error: use of undeclared identifier 'STDIN_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:269:36: error: use of undeclared identifier 'STDOUT_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:273:36: error: use of undeclared identifier 'STDERR_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:395:34: error: use of undeclared identifier 'STDOUT_FILENO'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:399:34: error: use of undeclared identifier 'STDERR_FILENO'
C/C++: In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Program.cpp:79:
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:43: error: use of undeclared identifier 'O_RDONLY'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:54: error: use of undeclared identifier 'O_WRONLY'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:63: error: use of undeclared identifier 'O_CREAT'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:270:15: error: use of undeclared identifier 'fork'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:288:21: error: use of undeclared identifier 'dup2'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:306:9: error: use of undeclared identifier 'execve'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:309:9: error: use of undeclared identifier 'execv'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:316:7: error: use of undeclared identifier '_exit'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:349:5: error: use of undeclared identifier 'alarm'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:371:9: error: use of undeclared identifier 'alarm'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:392:5: error: use of undeclared identifier 'alarm'
C/C++: D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:459:32: error: use of undeclared identifier '_SC_ARG_MAX'
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
31 actionable tasks: 6 executed, 25 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
Warning: NMake does not support parallel builds. Ignoring parallel build command line option.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[x86][libhermes]'.
> Build command failed.
Error while executing process C:\Users\S010323\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C D:\rnProject\yhd-super-app\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1s50k391\x86 libhermes}
ninja: Entering directory `D:\rnProject\yhd-super-app\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1s50k391\x86'
[1/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regfree.c.o
[2/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regerror.c.o
[3/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Locale.cpp.o
[4/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/ManagedStatic.cpp.o
[5/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Mutex.cpp.o
[6/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Memory.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Memory.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Memory.cpp:21:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:51:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:53:12: error: use of undeclared identifier 'PROT_WRITE'
return PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:24: error: use of undeclared identifier 'PROT_WRITE'
return PROT_READ | PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:24: error: use of undeclared identifier 'PROT_EXEC'
return PROT_READ | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:24: error: use of undeclared identifier 'PROT_WRITE'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:37: error: use of undeclared identifier 'PROT_EXEC'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:72:12: error: use of undeclared identifier 'PROT_EXEC'
return PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:78:10: error: use of undeclared identifier 'PROT_NONE'
return PROT_NONE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:100:17: error: use of undeclared identifier 'MAP_PRIVATE'
int MMFlags = MAP_PRIVATE |
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:104:3: error: use of undeclared identifier 'MAP_ANON'
MAP_ANON
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:120:18: error: no member named 'mmap' in the global namespace
void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages,
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:122:15: error: use of undeclared identifier 'MAP_FAILED'
if (Addr == MAP_FAILED) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:149:14: error: no member named 'munmap' in the global namespace
if (0 != ::munmap(M.Address, M.Size))
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:187:18: error: no member named 'mprotect' in the global namespace
int Result = ::mprotect((void *)Start, End - Start, Protect);
~~^
17 errors generated.
[7/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/NativeFormatting.cpp.o
[8/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/MD5.cpp.o
[9/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regcomp.c.o
[10/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_os_ostream.cpp.o
[11/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/LineIterator.cpp.o
[12/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Path.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Path.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Path.cpp:1111:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:15: error: variable has incomplete type 'struct stat'
struct stat sb;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:10: note: forward declaration of 'stat'
struct stat sb;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:178:17: error: use of undeclared identifier 'MAXPATHLEN'
char exe_path[MAXPATHLEN];
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:286:9: error: no member named 'mkdir' in the global namespace
if (::mkdir(p.begin(), Perms) == -1) {
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:15: error: variable has incomplete type 'struct stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:10: note: forward declaration of 'stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:17: error: variable has incomplete type 'struct stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:12: note: forward declaration of 'stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:529:7: error: use of undeclared identifier 'S_ISDIR'
if (S_ISDIR(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:531:12: error: use of undeclared identifier 'S_ISREG'
else if (S_ISREG(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:533:12: error: use of undeclared identifier 'S_ISBLK'
else if (S_ISBLK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:535:12: error: use of undeclared identifier 'S_ISCHR'
else if (S_ISCHR(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:537:12: error: use of undeclared identifier 'S_ISFIFO'
else if (S_ISFIFO(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:539:12: error: use of undeclared identifier 'S_ISSOCK'
else if (S_ISSOCK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:541:12: error: use of undeclared identifier 'S_ISLNK'
else if (S_ISLNK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:42: error: member access into incomplete type 'const struct stat'
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:43: error: expected ')'
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:35: note: to match this '('
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:42: error: member access into incomplete type 'const struct stat'
Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:66: error: member access into incomplete type 'const struct stat'
Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:30: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:47: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:62: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[13/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\raw_ostream.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:515:12: error: use of undeclared identifier 'STDOUT_FILENO'
return STDOUT_FILENO;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:568:13: error: use of undeclared identifier 'STDERR_FILENO'
if (FD <= STDERR_FILENO)
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:578:17: error: no member named 'lseek' in the global namespace
off_t loc = ::lseek(FD, 0, SEEK_CUR);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:694:21: error: no member named 'write' in the global namespace
ssize_t ret = ::write(FD, Ptr, ChunkSize);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:742:11: error: no member named 'lseek' in the global namespace
pos = ::lseek(FD, off, SEEK_SET);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:777:35: error: use of undeclared identifier 'isatty'
if (S_ISCHR(statbuf.st_mode) && isatty(FD))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:856:27: error: use of undeclared identifier 'STDERR_FILENO'
static raw_fd_ostream S(STDERR_FILENO, false, true);
^
7 errors generated.
[14/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/PrettyStackTrace.cpp.o
[15/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Regex.cpp.o
[16/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/SmallPtrSet.cpp.o
[17/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Process.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Process.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Process.cpp:94:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:69:2: warning: Cannot get usage times on this platform [-W#warnings]
#warning Cannot get usage times on this platform
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:82:2: error: Cannot get the page size on this machine
#error Cannot get the page size on this machine
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:84:32: error: use of undeclared identifier 'page_size'
return static_cast<unsigned>(page_size);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:111:2: warning: Cannot get malloc info on this platform [-W#warnings]
#warning Cannot get malloc info on this platform
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:183:9: error: no type named 'close' in the global namespace
::close(FD);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:30: error: use of undeclared identifier 'STDIN_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:44: error: use of undeclared identifier 'STDOUT_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:59: error: use of undeclared identifier 'STDERR_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:199:25: error: cannot use incomplete type 'const int []' as a range
for (int StandardFD : StandardFDs) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:17: error: variable has incomplete type 'struct stat'
struct stat st;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:12: note: forward declaration of 'stat'
struct stat st;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:202:32: error: no member named 'fstat' in the global namespace
if (RetryAfterSignal(-1, ::fstat, StandardFD, &st) < 0) {
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:36: error: no member named 'open' in the global namespace
auto Open = [&]() { return ::open("/dev/null", O_RDWR); };
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:54: error: use of undeclared identifier 'O_RDWR'
auto Open = [&]() { return ::open("/dev/null", O_RDWR); };
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:217:21: error: assigning to 'int' from incompatible type 'decltype(F())' (aka 'void')
if ((NullFD = RetryAfterSignal(-1, Open)) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:223:14: error: use of undeclared identifier 'dup2'
else if (dup2(NullFD, StandardFD) < 0)
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:247:9: error: no member named 'close' in the global namespace
if (::close(FD) < 0)
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:265:36: error: use of undeclared identifier 'STDIN_FILENO'
return FileDescriptorIsDisplayed(STDIN_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:269:36: error: use of undeclared identifier 'STDOUT_FILENO'
return FileDescriptorIsDisplayed(STDOUT_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:273:36: error: use of undeclared identifier 'STDERR_FILENO'
return FileDescriptorIsDisplayed(STDERR_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:395:34: error: use of undeclared identifier 'STDOUT_FILENO'
return FileDescriptorHasColors(STDOUT_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:399:34: error: use of undeclared identifier 'STDERR_FILENO'
return FileDescriptorHasColors(STDERR_FILENO);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[18/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/MemoryBuffer.cpp.o
[19/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Program.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Program.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Program.cpp:79:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:43: error: use of undeclared identifier 'O_RDONLY'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:54: error: use of undeclared identifier 'O_WRONLY'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:63: error: use of undeclared identifier 'O_CREAT'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:270:15: error: use of undeclared identifier 'fork'
int child = fork();
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:288:21: error: use of undeclared identifier 'dup2'
if (-1 == dup2(1,2)) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:306:9: error: use of undeclared identifier 'execve'
execve(PathStr.c_str(), const_cast<char **>(Argv),
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:309:9: error: use of undeclared identifier 'execv'
execv(PathStr.c_str(), const_cast<char **>(Argv));
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:316:7: error: use of undeclared identifier '_exit'
_exit(errno == ENOENT ? 127 : 126);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:349:5: error: use of undeclared identifier 'alarm'
alarm(SecondsToWait);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:371:9: error: use of undeclared identifier 'alarm'
alarm(0);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:392:5: error: use of undeclared identifier 'alarm'
alarm(0);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:459:32: error: use of undeclared identifier '_SC_ARG_MAX'
static long ArgMax = sysconf(_SC_ARG_MAX);
^
12 errors generated.
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 18s
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 -PreactNativeDebugArchitectures=x86 -PreactNativeArchitectures=x86
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
Warning: NMake does not support parallel builds. Ignoring parallel build command line option.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[x86][libhermes]'.
> Build command failed.
Error while executing process C:\Users\S010323\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C D:\rnProject\yhd-super-app\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1s50k391\x86 libhermes}
ninja: Entering directory `D:\rnProject\yhd-super-app\node_modules\react-native\ReactAndroid\hermes-engine\.cxx\Release\1s50k391\x86'
[1/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regfree.c.o
[2/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regerror.c.o
[3/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Locale.cpp.o
[4/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/ManagedStatic.cpp.o
[5/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Mutex.cpp.o
[6/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Memory.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Memory.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Memory.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Memory.cpp:21:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:51:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:53:12: error: use of undeclared identifier 'PROT_WRITE'
return PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:55:24: error: use of undeclared identifier 'PROT_WRITE'
return PROT_READ | PROT_WRITE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:57:24: error: use of undeclared identifier 'PROT_EXEC'
return PROT_READ | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:12: error: use of undeclared identifier 'PROT_READ'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:24: error: use of undeclared identifier 'PROT_WRITE'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:60:37: error: use of undeclared identifier 'PROT_EXEC'
return PROT_READ | PROT_WRITE | PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:72:12: error: use of undeclared identifier 'PROT_EXEC'
return PROT_EXEC;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:78:10: error: use of undeclared identifier 'PROT_NONE'
return PROT_NONE;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:100:17: error: use of undeclared identifier 'MAP_PRIVATE'
int MMFlags = MAP_PRIVATE |
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:104:3: error: use of undeclared identifier 'MAP_ANON'
MAP_ANON
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:120:18: error: no member named 'mmap' in the global namespace
void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages,
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:122:15: error: use of undeclared identifier 'MAP_FAILED'
if (Addr == MAP_FAILED) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:149:14: error: no member named 'munmap' in the global namespace
if (0 != ::munmap(M.Address, M.Size))
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Memory.inc:187:18: error: no member named 'mprotect' in the global namespace
int Result = ::mprotect((void *)Start, End - Start, Protect);
~~^
17 errors generated.
[7/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/NativeFormatting.cpp.o
[8/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/MD5.cpp.o
[9/326] Building C object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/regcomp.c.o
[10/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_os_ostream.cpp.o
[11/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/LineIterator.cpp.o
[12/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Path.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Path.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Path.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Path.cpp:1111:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:15: error: variable has incomplete type 'struct stat'
struct stat sb;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:105:10: note: forward declaration of 'stat'
struct stat sb;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:178:17: error: use of undeclared identifier 'MAXPATHLEN'
char exe_path[MAXPATHLEN];
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:286:9: error: no member named 'mkdir' in the global namespace
if (::mkdir(p.begin(), Perms) == -1) {
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:15: error: variable has incomplete type 'struct stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:326:10: note: forward declaration of 'stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:17: error: variable has incomplete type 'struct stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:458:12: note: forward declaration of 'stat'
struct stat buf;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:529:7: error: use of undeclared identifier 'S_ISDIR'
if (S_ISDIR(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:531:12: error: use of undeclared identifier 'S_ISREG'
else if (S_ISREG(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:533:12: error: use of undeclared identifier 'S_ISBLK'
else if (S_ISBLK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:535:12: error: use of undeclared identifier 'S_ISCHR'
else if (S_ISCHR(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:537:12: error: use of undeclared identifier 'S_ISFIFO'
else if (S_ISFIFO(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:539:12: error: use of undeclared identifier 'S_ISSOCK'
else if (S_ISSOCK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:541:12: error: use of undeclared identifier 'S_ISLNK'
else if (S_ISLNK(Mode))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:42: error: member access into incomplete type 'const struct stat'
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:43: error: expected ')'
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:557:35: note: to match this '('
perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:42: error: member access into incomplete type 'const struct stat'
Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:558:66: error: member access into incomplete type 'const struct stat'
Result = file_status(typeForMode(Status.st_mode), Perms, Status.st_dev,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:30: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:47: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:559:62: error: member access into incomplete type 'const struct stat'
Status.st_nlink, Status.st_ino, Status.st_atime,
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Path.inc:546:61: note: forward declaration of 'llvh::sys::fs::stat'
static std::error_code fillStatus(int StatRet, const struct stat &Status,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[13/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\raw_ostream.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/raw_ostream.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:515:12: error: use of undeclared identifier 'STDOUT_FILENO'
return STDOUT_FILENO;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:568:13: error: use of undeclared identifier 'STDERR_FILENO'
if (FD <= STDERR_FILENO)
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:578:17: error: no member named 'lseek' in the global namespace
off_t loc = ::lseek(FD, 0, SEEK_CUR);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:694:21: error: no member named 'write' in the global namespace
ssize_t ret = ::write(FD, Ptr, ChunkSize);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:742:11: error: no member named 'lseek' in the global namespace
pos = ::lseek(FD, off, SEEK_SET);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:777:35: error: use of undeclared identifier 'isatty'
if (S_ISCHR(statbuf.st_mode) && isatty(FD))
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/raw_ostream.cpp:856:27: error: use of undeclared identifier 'STDERR_FILENO'
static raw_fd_ostream S(STDERR_FILENO, false, true);
^
7 errors generated.
[14/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/PrettyStackTrace.cpp.o
[15/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Regex.cpp.o
[16/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/SmallPtrSet.cpp.o
[17/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Process.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Process.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Process.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Process.cpp:94:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:69:2: warning: Cannot get usage times on this platform [-W#warnings]
#warning Cannot get usage times on this platform
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:82:2: error: Cannot get the page size on this machine
#error Cannot get the page size on this machine
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:84:32: error: use of undeclared identifier 'page_size'
return static_cast<unsigned>(page_size);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:111:2: warning: Cannot get malloc info on this platform [-W#warnings]
#warning Cannot get malloc info on this platform
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:183:9: error: no type named 'close' in the global namespace
::close(FD);
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:30: error: use of undeclared identifier 'STDIN_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:44: error: use of undeclared identifier 'STDOUT_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:198:59: error: use of undeclared identifier 'STDERR_FILENO'
const int StandardFDs[] = {STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO};
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:199:25: error: cannot use incomplete type 'const int []' as a range
for (int StandardFD : StandardFDs) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:17: error: variable has incomplete type 'struct stat'
struct stat st;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:200:12: note: forward declaration of 'stat'
struct stat st;
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:202:32: error: no member named 'fstat' in the global namespace
if (RetryAfterSignal(-1, ::fstat, StandardFD, &st) < 0) {
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:36: error: no member named 'open' in the global namespace
auto Open = [&]() { return ::open("/dev/null", O_RDWR); };
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:216:54: error: use of undeclared identifier 'O_RDWR'
auto Open = [&]() { return ::open("/dev/null", O_RDWR); };
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:217:21: error: assigning to 'int' from incompatible type 'decltype(F())' (aka 'void')
if ((NullFD = RetryAfterSignal(-1, Open)) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:223:14: error: use of undeclared identifier 'dup2'
else if (dup2(NullFD, StandardFD) < 0)
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:247:9: error: no member named 'close' in the global namespace
if (::close(FD) < 0)
~~^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:265:36: error: use of undeclared identifier 'STDIN_FILENO'
return FileDescriptorIsDisplayed(STDIN_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:269:36: error: use of undeclared identifier 'STDOUT_FILENO'
return FileDescriptorIsDisplayed(STDOUT_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:273:36: error: use of undeclared identifier 'STDERR_FILENO'
return FileDescriptorIsDisplayed(STDERR_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:395:34: error: use of undeclared identifier 'STDOUT_FILENO'
return FileDescriptorHasColors(STDOUT_FILENO);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Process.inc:399:34: error: use of undeclared identifier 'STDERR_FILENO'
return FileDescriptorHasColors(STDERR_FILENO);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[18/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/MemoryBuffer.cpp.o
[19/326] Building CXX object external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o
FAILED: external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o
C:\Users\S010323\AppData\Local\Android\Sdk\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android21 --gcc-toolchain=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/S010323/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DHERMESVM_ALLOW_COMPRESSED_POINTERS -DHERMESVM_ALLOW_CONCURRENT_GC -DHERMESVM_ALLOW_CONTIGUOUS_HEAP -DHERMESVM_ALLOW_INLINE_ASM -DHERMESVM_GC_HADES -DHERMESVM_HEAP_SEGMENT_SIZE_KB=4096 -DHERMESVM_INDIRECT_THREADING -DHERMES_ENABLE_DEBUGGER -DHERMES_ENABLE_INTL -DHERMES_IS_MOBILE_BUILD -DHERMES_LLVM -DHERMES_PLATFORM_UNICODE=HERMES_PLATFORM_UNICODE_JAVA -DHERMES_RELEASE_VERSION="\"for RN 0.69.3\"" -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/flowparser/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/include -Iinclude -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/include -ID:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/gen/include -Iexternal/llvh/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wno-range-loop-analysis -ffunction-sections -fdata-sections -faddrsig -fvisibility=hidden -O2 -DNDEBUG -fPIC -std=c++17 -fno-exceptions -fno-rtti -MD -MT external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o -MF external\llvh\lib\Support\CMakeFiles\LLVHSupport.dir\Program.cpp.o.d -o external/llvh/lib/Support/CMakeFiles/LLVHSupport.dir/Program.cpp.o -c D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Program.cpp
In file included from D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Program.cpp:79:
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:43: error: use of undeclared identifier 'O_RDONLY'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:54: error: use of undeclared identifier 'O_WRONLY'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:108:63: error: use of undeclared identifier 'O_CREAT'
int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:270:15: error: use of undeclared identifier 'fork'
int child = fork();
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:288:21: error: use of undeclared identifier 'dup2'
if (-1 == dup2(1,2)) {
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:306:9: error: use of undeclared identifier 'execve'
execve(PathStr.c_str(), const_cast<char **>(Argv),
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:309:9: error: use of undeclared identifier 'execv'
execv(PathStr.c_str(), const_cast<char **>(Argv));
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:316:7: error: use of undeclared identifier '_exit'
_exit(errno == ENOENT ? 127 : 126);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:349:5: error: use of undeclared identifier 'alarm'
alarm(SecondsToWait);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:371:9: error: use of undeclared identifier 'alarm'
alarm(0);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:392:5: error: use of undeclared identifier 'alarm'
alarm(0);
^
D:/rnProject/yhd-super-app/node_modules/react-native/sdks/hermes/external/llvh/lib/Support/Unix/Program.inc:459:32: error: use of undeclared identifier '_SC_ARG_MAX'
static long ArgMax = sysconf(_SC_ARG_MAX);
^
12 errors generated.
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.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 18s
at makeError (D:\rnProject\yhd-super-app\node_modules\execa\index.js:174:9)
at D:\rnProject\yhd-super-app\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\rnProject\yhd-super-app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\rnProject\yhd-super-app\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.
patch file
diff --git a/node_modules/react-native/ReactAndroid/build.gradle b/node_modules/react-native/ReactAndroid/build.gradle
index b2d44d1..a45fec9 100644
--- a/node_modules/react-native/ReactAndroid/build.gradle
+++ b/node_modules/react-native/ReactAndroid/build.gradle
@@ -8,7 +8,7 @@
plugins {
id("com.android.library")
id("com.facebook.react")
- id("org.jetbrains.kotlin.android") version "1.6.10"
+ id("org.jetbrains.kotlin.android")
id("maven-publish")
id("de.undercouch.download")
}
diff --git a/node_modules/react-native/react.gradle b/node_modules/react-native/react.gradle
index 2e9d8e5..aca7c90 100644
--- a/node_modules/react-native/react.gradle
+++ b/node_modules/react-native/react.gradle
@@ -105,17 +105,18 @@ def getHermesCommand = {
// 2. If the project is building hermes-engine from source, use hermesc from there
// Also note that user can override the hermes source location with
// the `REACT_NATIVE_OVERRIDE_HERMES_DIR` env variable.
+ def hermescBin = Os.isFamily(Os.FAMILY_WINDOWS) ? 'hermesc.exe' : 'hermesc'
def hermesOverrideDir = System.getenv("REACT_NATIVE_OVERRIDE_HERMES_DIR")
def builtHermesc = hermesOverrideDir ?
- new File(hermesOverrideDir, "build/bin/hermesc") :
- new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/hermesc")
+ new File(hermesOverrideDir, "build/bin/$hermescBin") :
+ new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/$hermescBin")
if (builtHermesc.exists()) {
return builtHermesc.getAbsolutePath()
}
// 3. If the react-native contains a pre-built hermesc, use it.
- def prebuiltHermesPath = "node_modules/react-native/sdks/hermesc/%OS-BIN%/hermesc"
+ def prebuiltHermesPath = "node_modules/react-native/sdks/hermesc/%OS-BIN%/$hermescBin"
.replaceAll("%OS-BIN%", getHermesOSBin())
.replace('/' as char, File.separatorChar);
def prebuiltHermes = new File(reactRoot, prebuiltHermesPath)
diff --git a/node_modules/react-native/scripts/.packager.bat b/node_modules/react-native/scripts/.packager.bat
new file mode 100644
index 0000000..e89260e
--- /dev/null
+++ b/node_modules/react-native/scripts/.packager.bat
@@ -0,0 +1 @@
+set RCT_METRO_PORT=8081
\ No newline at end of file
patch file
diff --git a/node_modules/react-native/ReactAndroid/build.gradle b/node_modules/react-native/ReactAndroid/build.gradle index b2d44d1..a45fec9 100644 --- a/node_modules/react-native/ReactAndroid/build.gradle +++ b/node_modules/react-native/ReactAndroid/build.gradle @@ -8,7 +8,7 @@ plugins { id("com.android.library") id("com.facebook.react") - id("org.jetbrains.kotlin.android") version "1.6.10" + id("org.jetbrains.kotlin.android") id("maven-publish") id("de.undercouch.download") } diff --git a/node_modules/react-native/react.gradle b/node_modules/react-native/react.gradle index 2e9d8e5..aca7c90 100644 --- a/node_modules/react-native/react.gradle +++ b/node_modules/react-native/react.gradle @@ -105,17 +105,18 @@ def getHermesCommand = { // 2. If the project is building hermes-engine from source, use hermesc from there // Also note that user can override the hermes source location with // the `REACT_NATIVE_OVERRIDE_HERMES_DIR` env variable. + def hermescBin = Os.isFamily(Os.FAMILY_WINDOWS) ? 'hermesc.exe' : 'hermesc' def hermesOverrideDir = System.getenv("REACT_NATIVE_OVERRIDE_HERMES_DIR") def builtHermesc = hermesOverrideDir ? - new File(hermesOverrideDir, "build/bin/hermesc") : - new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/hermesc") + new File(hermesOverrideDir, "build/bin/$hermescBin") : + new File(reactRoot, "node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/bin/$hermescBin") if (builtHermesc.exists()) { return builtHermesc.getAbsolutePath() } // 3. If the react-native contains a pre-built hermesc, use it. - def prebuiltHermesPath = "node_modules/react-native/sdks/hermesc/%OS-BIN%/hermesc" + def prebuiltHermesPath = "node_modules/react-native/sdks/hermesc/%OS-BIN%/$hermescBin" .replaceAll("%OS-BIN%", getHermesOSBin()) .replace('/' as char, File.separatorChar); def prebuiltHermes = new File(reactRoot, prebuiltHermesPath) diff --git a/node_modules/react-native/scripts/.packager.bat b/node_modules/react-native/scripts/.packager.bat new file mode 100644 index 0000000..e89260e --- /dev/null +++ b/node_modules/react-native/scripts/.packager.bat @@ -0,0 +1 @@ +set RCT_METRO_PORT=8081 \ No newline at end of file
Tried it doesnt work tho
I can't build it even with ICU installed on Windows
After install ICU and verify all requirements it still throws:
> Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-07-20-RNv0.70.0-bc97c5399e0789c0a323f8e1431986e207a9e8ba
> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Found the following ICU libraries:
-- uc (required)
-- i18n (required)
-- data (required)
-- uc (required)
-- 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:/dev/react-native/RN070RC2/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes
> Task :ReactAndroid:hermes-engine:buildHermes
[ 3%] Built target LLVHDemangle
[ 30%] Built target LLVHSupport
[ 30%] Built target hermesFrontEndDefs
[ 30%] Building CXX object lib/Platform/Unicode/CMakeFiles/hermesPlatformUnicode.dir/PlatformUnicodeICU.cpp.obj
PlatformUnicodeICU.cpp
D:\dev\react-native\RN070RC2\node_modules\react-native\sdks\hermes\lib\Platform\Unicode\PlatformUnicodeICU.cpp(80):
error C3861: 'localtime_r': identifier not found
> Task :ReactAndroid:hermes-engine:buildHermes FAILED
@Skullcan did you manage to build successfully without WSL? And can you post your logs when build successfully?
@Skullcan did you manage to build successfully without WSL? And can you post your logs when build successfully?
Yes, I was able to make it work in both Windows and WSL. But I was using react native 0.69.1 never tried 0.70
Edit: Full bundleRelease build log: https://pastebin.com/aRCaBs8c
yarn android --active-arch-only build log: https://pastebin.com/FDTV54sq
Both on windows 11
Any Updates?
I got same problem but if fixed that wit install libicu-dev my os is mint 20.3 ubuntu base 20.04
sudo apt -y libicu-dev
and the problem is solved
I can't build it even with ICU installed on Windows
After install ICU and verify all requirements it still throws:
> Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE Download https://github.com/facebook/hermes/tarball/hermes-2022-07-20-RNv0.70.0-bc97c5399e0789c0a323f8e1431986e207a9e8ba > Task :ReactAndroid:hermes-engine:configureBuildForHermes -- Found the following ICU libraries: -- uc (required) -- i18n (required) -- data (required) -- uc (required) -- 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:/dev/react-native/RN070RC2/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes > Task :ReactAndroid:hermes-engine:buildHermes [ 3%] Built target LLVHDemangle [ 30%] Built target LLVHSupport [ 30%] Built target hermesFrontEndDefs [ 30%] Building CXX object lib/Platform/Unicode/CMakeFiles/hermesPlatformUnicode.dir/PlatformUnicodeICU.cpp.obj PlatformUnicodeICU.cpp D:\dev\react-native\RN070RC2\node_modules\react-native\sdks\hermes\lib\Platform\Unicode\PlatformUnicodeICU.cpp(80): error C3861: 'localtime_r': identifier not found > Task :ReactAndroid:hermes-engine:buildHermes FAILED
@Skullcan did you manage to build successfully without WSL? And can you post your logs when build successfully?
Im getting the same error
same on MAC OS with RN 0.69.4
` FAILURE: Build completed with 2 failures.
What went wrong: Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
A problem occurred starting process 'command 'cmake''
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.
`
On Windows 10, with react-native@0.70.-rc.4 which already includes the missing .exe fix it still errors with the following:
/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
I can see the hermesc.exe file inside /bin/Debug but it seems to look for the Release variant.
Manually copying the binary to the release directory did help for this error (still running into other issues though)
same on MAC OS with RN 0.69.4
` FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
- What went wrong: Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
A problem occurred starting process 'command 'cmake''
- 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.
`
Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED
FAILURE: Build failed with an exception.
@azizmobarak Do you find any solution yet??
Description
Hi i tried to build my react native project but am getting the following error
Version
0.69.0
Output of
npx react-native info
Execution failed for task ':ReactAndroid:hermes-engine:buildCMakeRelease[arm64-v8a][libhermes]'.
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