executorch
executorch copied to clipboard
add missing cmake flag to set up JNI for LLama Android Demo
Compilation of JNI library results in the following error, due to missing cmake flag -DANDROID_PLATFORM=android-23
[ 92%] Built target statusor
[ 92%] Building CXX object re2/CMakeFiles/re2.dir/re2/prog.cc.o
[ 93%] Building CXX object re2/CMakeFiles/re2.dir/re2/re2.cc.o
[ 94%] Linking CXX shared library libexecutorch_jni.so
[ 94%] Building CXX object re2/CMakeFiles/re2.dir/re2/regexp.cc.o
[ 94%] Linking CXX static library libabsl_log_flags.a
[ 94%] Built target log_flags
ld: error: undefined symbol: stderr
>>> referenced by Posix.cpp:101 (/home/salykova/Projects/executorch/runtime/platform/target/Posix.cpp:101)
>>> Posix.cpp.o:(et_pal_current_ticks) in archive /home/salykova/Projects/executorch/cmake-out-android/lib/libexecutorch_no_prim_ops.a
>>> referenced by Posix.cpp:101 (/home/salykova/Projects/executorch/runtime/platform/target/Posix.cpp:101)
>>> Posix.cpp.o:(et_pal_current_ticks) in archive /home/salykova/Projects/executorch/cmake-out-android/lib/libexecutorch_no_prim_ops.a
[ 95%] Building CXX object re2/CMakeFiles/re2.dir/re2/set.cc.o
[ 95%] Building CXX object re2/CMakeFiles/re2.dir/re2/simplify.cc.o
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [CMakeFiles/executorch_jni.dir/build.make:151: libexecutorch_jni.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:738: CMakeFiles/executorch_jni.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 95%] Building CXX object re2/CMakeFiles/re2.dir/re2/tostring.cc.o
[ 96%] Building CXX object re2/CMakeFiles/re2.dir/re2/unicode_casefold.cc.o
[ 96%] Building CXX object re2/CMakeFiles/re2.dir/re2/unicode_groups.cc.o
[ 96%] Building CXX object re2/CMakeFiles/re2.dir/util/rune.cc.o
[ 97%] Building CXX object re2/CMakeFiles/re2.dir/util/strutil.cc.o
[ 97%] Linking CXX static library libabsl_flags_usage_internal.a
[ 97%] Built target flags_usage_internal
[ 97%] Linking CXX static library libre2.a
[ 97%] Built target re2
gmake: *** [Makefile:136: all] Error 2
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3619
- :page_facing_up: Preview Python docs built from this PR
Note: Links to docs will display an error until the docs builds have been completed.
:x: 2 New Failures
As of commit 97200e426c4696beccfe724f35fbab9c62bfcbdb with merge base 99ec946944719f4ed20d0f5cafe4f1f8a7ebbcc3 ():
NEW FAILURES - The following jobs have failed:
-
Android / test-llama-app / mobile-job (android) (gh)
Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
-
Apple / upload-frameworks-ios (gh)
Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
This comment was automatically generated by Dr. CI and updates every 15 minutes.
@kirklandsign has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@kirklandsign merged this pull request in pytorch/executorch@121b04c4e7dd5d8a1e92242dbd6df39e970c1a68.
Thank you @salykova