Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find jsi/jsi.cpp when trying to build React Native #3

Open
MartinCura opened this issue Sep 25, 2024 · 0 comments
Open

Cannot find jsi/jsi.cpp when trying to build React Native #3

MartinCura opened this issue Sep 25, 2024 · 0 comments

Comments

@MartinCura
Copy link

Hi there! I'm trying to use TextDecoder in React Native, following @codybrouwers steps as he outlined here (he also asked in #2).

But i'm having a problem with JSI when building, at least for Android:

[RUN_GRADLEW] C/C++: CMake Error at CMakeLists.txt:18 (add_library):
[RUN_GRADLEW] C/C++:   Cannot find source file:
[RUN_GRADLEW] C/C++:     /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp

Are there any more steps necessary than just installing the library and trying to polyfill it? Sorry i'm still kinda new to this so if you need any more info to answer.

Thank you!!

Trace (from right before it errors out) ... [RUN_GRADLEW] > Task :react-native-community_slider:mergeReleaseNativeLibs NO-SOURCE [RUN_GRADLEW] > Task :react-native-community_slider:copyReleaseJniLibsProjectOnly [RUN_GRADLEW] > Task :expo-modules-core:mergeReleaseNativeLibs [RUN_GRADLEW] > Task :react-native-fast-encoder:configureCMakeRelWithDebInfo[arm64-v8a] FAILED [RUN_GRADLEW] C/C++: CMake Warning (dev) in CMakeLists.txt: [RUN_GRADLEW] C/C++: No project() command is present. The top-level CMakeLists.txt file must [RUN_GRADLEW] C/C++: contain a literal, direct call to the project() command. Add a line of [RUN_GRADLEW] C/C++: code such as [RUN_GRADLEW] C/C++: project(ProjectName) [RUN_GRADLEW] C/C++: near the top of the file, but after cmake_minimum_required(). [RUN_GRADLEW] C/C++: CMake is pretending there is a "project(Project)" command on the first [RUN_GRADLEW] C/C++: line. [RUN_GRADLEW] C/C++: This warning is for project developers. Use -Wno-dev to suppress it. [RUN_GRADLEW] C/C++: CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] C/C++: Cannot find source file: [RUN_GRADLEW] C/C++: /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp [RUN_GRADLEW] C/C++: Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h [RUN_GRADLEW] C/C++: .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc [RUN_GRADLEW] C/C++: CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] C/C++: No SOURCES given to target: fast-encoder [RUN_GRADLEW] C/C++: CMake Generate step failed. Build files cannot be regenerated correctly. [RUN_GRADLEW] > Task :expo:compileReleaseKotlin [RUN_GRADLEW] w: file:///tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:20:34 'ReactFeatureFlags' is deprecated. Deprecated in Java [RUN_GRADLEW] w: file:///tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:153:11 'ReactFeatureFlags' is deprecated. Deprecated in Java [RUN_GRADLEW] w: file:///tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:161:34 'constructor ReactDelegate(Activity!, ReactNativeHost!, String?, Bundle?)' is deprecated. Deprecated in Java [RUN_GRADLEW] w: file:///tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:231:10 'ReactFeatureFlags' is deprecated. Deprecated in Java [RUN_GRADLEW] FAILURE: Build failed with an exception. [RUN_GRADLEW] * What went wrong: [RUN_GRADLEW] Execution failed for task ':react-native-fast-encoder:configureCMakeRelWithDebInfo[arm64-v8a]'. [RUN_GRADLEW] > [CXX1429] error when building with cmake using /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/CMakeLists.txt: -- The C compiler identification is Clang 17.0.2 [RUN_GRADLEW] -- The CXX compiler identification is Clang 17.0.2 [RUN_GRADLEW] -- Detecting C compiler ABI info [RUN_GRADLEW] -- Detecting C compiler ABI info - done [RUN_GRADLEW] -- Check for working C compiler: /home/martin/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped [RUN_GRADLEW] -- Detecting C compile features [RUN_GRADLEW] -- Detecting C compile features - done [RUN_GRADLEW] -- Detecting CXX compiler ABI info [RUN_GRADLEW] -- Detecting CXX compiler ABI info - done [RUN_GRADLEW] -- Check for working CXX compiler: /home/martin/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped [RUN_GRADLEW] -- Detecting CXX compile features [RUN_GRADLEW] -- Detecting CXX compile features - done [RUN_GRADLEW] -- Configuring done [RUN_GRADLEW] [RUN_GRADLEW] C++ build system [configure] failed while executing: [RUN_GRADLEW] /home/martin/Android/Sdk/cmake/3.22.1/bin/cmake \ [RUN_GRADLEW] -H/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android \ [RUN_GRADLEW] -DCMAKE_SYSTEM_NAME=Android \ [RUN_GRADLEW] -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ [RUN_GRADLEW] -DCMAKE_SYSTEM_VERSION=23 \ [RUN_GRADLEW] -DANDROID_PLATFORM=android-23 \ [RUN_GRADLEW] -DANDROID_ABI=arm64-v8a \ [RUN_GRADLEW] -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \ [RUN_GRADLEW] -DANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 \ [RUN_GRADLEW] -DCMAKE_ANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 \ [RUN_GRADLEW] -DCMAKE_TOOLCHAIN_FILE=/home/martin/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \ [RUN_GRADLEW] -DCMAKE_MAKE_PROGRAM=/home/martin/Android/Sdk/cmake/3.22.1/bin/ninja \ [RUN_GRADLEW] "-DCMAKE_CXX_FLAGS=-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all" \ [RUN_GRADLEW] -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a \ [RUN_GRADLEW] -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a \ [RUN_GRADLEW] -DCMAKE_BUILD_TYPE=RelWithDebInfo \ [RUN_GRADLEW] -B/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/.cxx/RelWithDebInfo/675v6z13/arm64-v8a \ [RUN_GRADLEW] -GNinja \ [RUN_GRADLEW] -DNODE_MODULES_DIR=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/android/../node_modules [RUN_GRADLEW] from /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android [RUN_GRADLEW] CMake Warning (dev) in CMakeLists.txt: [RUN_GRADLEW] No project() command is present. The top-level CMakeLists.txt file must [RUN_GRADLEW] contain a literal, direct call to the project() command. Add a line of [RUN_GRADLEW] code such as [RUN_GRADLEW] [RUN_GRADLEW] project(ProjectName) [RUN_GRADLEW] [RUN_GRADLEW] near the top of the file, but after cmake_minimum_required(). [RUN_GRADLEW] CMake is pretending there is a "project(Project)" command on the first [RUN_GRADLEW] line. [RUN_GRADLEW] This warning is for project developers. Use -Wno-dev to suppress it. [RUN_GRADLEW] [RUN_GRADLEW] CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] Cannot find source file: [RUN_GRADLEW] [RUN_GRADLEW] /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp [RUN_GRADLEW] [RUN_GRADLEW] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h [RUN_GRADLEW] .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc [RUN_GRADLEW] [RUN_GRADLEW] [RUN_GRADLEW] CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] No SOURCES given to target: fast-encoder [RUN_GRADLEW] [RUN_GRADLEW] [RUN_GRADLEW] CMake Generate step failed. Build files cannot be regenerated correctly. : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2 [RUN_GRADLEW] -- The CXX compiler identification is Clang 17.0.2 [RUN_GRADLEW] -- Detecting C compiler ABI info [RUN_GRADLEW] -- Detecting C compiler ABI info - done [RUN_GRADLEW] -- Check for working C compiler: /home/martin/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped [RUN_GRADLEW] -- Detecting C compile features [RUN_GRADLEW] -- Detecting C compile features - done [RUN_GRADLEW] -- Detecting CXX compiler ABI info [RUN_GRADLEW] -- Detecting CXX compiler ABI info - done [RUN_GRADLEW] -- Check for working CXX compiler: /home/martin/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped [RUN_GRADLEW] -- Detecting CXX compile features [RUN_GRADLEW] -- Detecting CXX compile features - done [RUN_GRADLEW] -- Configuring done [RUN_GRADLEW] [RUN_GRADLEW] C++ build system [configure] failed while executing: [RUN_GRADLEW] /home/martin/Android/Sdk/cmake/3.22.1/bin/cmake \ [RUN_GRADLEW] -H/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android \ [RUN_GRADLEW] -DCMAKE_SYSTEM_NAME=Android \ [RUN_GRADLEW] -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ [RUN_GRADLEW] -DCMAKE_SYSTEM_VERSION=23 \ [RUN_GRADLEW] -DANDROID_PLATFORM=android-23 \ [RUN_GRADLEW] -DANDROID_ABI=arm64-v8a \ [RUN_GRADLEW] -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \ [RUN_GRADLEW] -DANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 \ [RUN_GRADLEW] -DCMAKE_ANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 \ [RUN_GRADLEW] -DCMAKE_TOOLCHAIN_FILE=/home/martin/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \ [RUN_GRADLEW] -DCMAKE_MAKE_PROGRAM=/home/martin/Android/Sdk/cmake/3.22.1/bin/ninja \ [RUN_GRADLEW] "-DCMAKE_CXX_FLAGS=-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all" \ [RUN_GRADLEW] -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a \ [RUN_GRADLEW] -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a \ [RUN_GRADLEW] -DCMAKE_BUILD_TYPE=RelWithDebInfo \ [RUN_GRADLEW] -B/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/.cxx/RelWithDebInfo/675v6z13/arm64-v8a \ [RUN_GRADLEW] -GNinja \ [RUN_GRADLEW] -DNODE_MODULES_DIR=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/android/../node_modules [RUN_GRADLEW] from /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android [RUN_GRADLEW] CMake Warning (dev) in CMakeLists.txt: [RUN_GRADLEW] No project() command is present. The top-level CMakeLists.txt file must [RUN_GRADLEW] contain a literal, direct call to the project() command. Add a line of [RUN_GRADLEW] code such as [RUN_GRADLEW] [RUN_GRADLEW] project(ProjectName) [RUN_GRADLEW] [RUN_GRADLEW] near the top of the file, but after cmake_minimum_required(). [RUN_GRADLEW] [RUN_GRADLEW] CMake is pretending there is a "project(Project)" command on the first [RUN_GRADLEW] line. [RUN_GRADLEW] This warning is for project developers. Use -Wno-dev to suppress it. [RUN_GRADLEW] [RUN_GRADLEW] CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] Cannot find source file: [RUN_GRADLEW] [RUN_GRADLEW] /tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp [RUN_GRADLEW] [RUN_GRADLEW] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h [RUN_GRADLEW] .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc [RUN_GRADLEW] [RUN_GRADLEW] [RUN_GRADLEW] CMake Error at CMakeLists.txt:18 (add_library): [RUN_GRADLEW] No SOURCES given to target: fast-encoder [RUN_GRADLEW] [RUN_GRADLEW] [RUN_GRADLEW] CMake Generate step failed. Build files cannot be regenerated correctly. [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85) [RUN_GRADLEW] at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59) [RUN_GRADLEW] at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:246) [RUN_GRADLEW] at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:246) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32) [RUN_GRADLEW] at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:246) [RUN_GRADLEW] at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:112) [RUN_GRADLEW] at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:90) [RUN_GRADLEW] at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:65) [RUN_GRADLEW] at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51) [RUN_GRADLEW] at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:63) [RUN_GRADLEW] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [RUN_GRADLEW] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [RUN_GRADLEW] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [RUN_GRADLEW] at java.base/java.lang.reflect.Method.invoke(Method.java:569) [RUN_GRADLEW] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125) [RUN_GRADLEW] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) [RUN_GRADLEW] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) [RUN_GRADLEW] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44) [RUN_GRADLEW] at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41) [RUN_GRADLEW] at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74) [RUN_GRADLEW] at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55) [RUN_GRADLEW] at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50) [RUN_GRADLEW] at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28) [RUN_GRADLEW] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67) [RUN_GRADLEW] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26) [RUN_GRADLEW] at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:67) [RUN_GRADLEW] at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:45) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75) [RUN_GRADLEW] at org.gradle.internal.Either$Right.fold(Either.java:175) [RUN_GRADLEW] at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73) [RUN_GRADLEW] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48) [RUN_GRADLEW] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46) [RUN_GRADLEW] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35) [RUN_GRADLEW] at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76) [RUN_GRADLEW] at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54) [RUN_GRADLEW] at java.base/java.util.Optional.orElseGet(Optional.java:364) [RUN_GRADLEW] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54) [RUN_GRADLEW] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36) [RUN_GRADLEW] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37) [RUN_GRADLEW] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:106) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36) [RUN_GRADLEW] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38) [RUN_GRADLEW] at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36) [RUN_GRADLEW] at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23) [RUN_GRADLEW] at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75) [RUN_GRADLEW] at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31) [RUN_GRADLEW] at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67) [RUN_GRADLEW] at java.base/java.util.Optional.orElseGet(Optional.java:364) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67) [RUN_GRADLEW] at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39) [RUN_GRADLEW] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46) [RUN_GRADLEW] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34) [RUN_GRADLEW] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48) [RUN_GRADLEW] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35) [RUN_GRADLEW] at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:209) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:166) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) [RUN_GRADLEW] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) [RUN_GRADLEW] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) [RUN_GRADLEW] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42) [RUN_GRADLEW] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331) [RUN_GRADLEW] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318) [RUN_GRADLEW] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314) [RUN_GRADLEW] at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80) [RUN_GRADLEW] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314) [RUN_GRADLEW] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303) [RUN_GRADLEW] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463) [RUN_GRADLEW] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380) [RUN_GRADLEW] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) [RUN_GRADLEW] at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47) [RUN_GRADLEW] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [RUN_GRADLEW] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [RUN_GRADLEW] at java.base/java.lang.Thread.run(Thread.java:840) [RUN_GRADLEW] Caused by: com.android.ide.common.process.ProcessException: Error while executing process /home/martin/Android/Sdk/cmake/3.22.1/bin/cmake with arguments {-H/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=23 -DANDROID_PLATFORM=android-23 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 -DCMAKE_ANDROID_NDK=/home/martin/Android/Sdk/ndk/26.1.10909125 -DCMAKE_TOOLCHAIN_FILE=/home/martin/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home/martin/Android/Sdk/cmake/3.22.1/bin/ninja -DCMAKE_CXX_FLAGS=-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/build/intermediates/cxx/RelWithDebInfo/675v6z13/obj/arm64-v8a -DCMAKE_BUILD_TYPE=RelWithDebInfo -B/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/node_modules/react-native-fast-encoder/android/.cxx/RelWithDebInfo/675v6z13/arm64-v8a -GNinja -DNODE_MODULES_DIR=/tmp/martin/eas-build-local-nodejs/85ae27bf-7af3-4cbb-b577-785cb582bbc6/build/apps/frontend/mobile/android/../node_modules} [RUN_GRADLEW] at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73) [RUN_GRADLEW] at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48) [RUN_GRADLEW] at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277) [RUN_GRADLEW] ... 141 more [RUN_GRADLEW] Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/martin/Android/Sdk/cmake/3.22.1/bin/cmake'' finished with non-zero exit value 1 [RUN_GRADLEW] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442) [RUN_GRADLEW] at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46) [RUN_GRADLEW] ... 142 more [RUN_GRADLEW] * Try: [RUN_GRADLEW] > Run with --stacktrace option to get the stack trace. [RUN_GRADLEW] > Run with --info or --debug option to get more log output. [RUN_GRADLEW] > Run with --scan to get full insights. [RUN_GRADLEW] > Get more help at https://help.gradle.org. [RUN_GRADLEW] BUILD FAILED in 4m 41s [RUN_GRADLEW] 642 actionable tasks: 642 executed [RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
npx exited with non-zero code: 1
Error: build command failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant