Skip to content

make building stop at Built target portable_kernels #15407

@alexliyang

Description

@alexliyang

🐛 Describe the bug

when clone the repo, using the following cmd to cmake the android native compile:
cmake ..
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
-DANDROID_ABI=$ANDROID_ABI
-DANDROID_PLATFORM=$ANDROID_PLATFORM

get the following result:
-- BUILD_TESTING : OFF
-- CCACHE_PROGRAM : CCACHE_PROGRAM-NOTFOUND
-- CMAKE_BUILD_TYPE : Debug
-- CMAKE_CXX_COMPILER_ID : Clang
-- CMAKE_CXX_STANDARD : 17
-- CMAKE_SYSTEM_PROCESSOR : aarch64
-- CMAKE_TOOLCHAIN_FILE : /home/android-ndk-r28c/build/cmake/android.toolchain.cmake
-- EXECUTORCH_BUILD_ARM_BAREMETAL : OFF
-- EXECUTORCH_BUILD_CADENCE : OFF
-- EXECUTORCH_BUILD_COREML : OFF
-- EXECUTORCH_BUILD_CORTEX_M : OFF
-- EXECUTORCH_BUILD_CPUINFO : ON
-- EXECUTORCH_BUILD_CUDA : OFF
-- EXECUTORCH_BUILD_DEVTOOLS : OFF
-- EXECUTORCH_BUILD_EXECUTOR_RUNNER : ON
-- EXECUTORCH_BUILD_EXTENSION_APPLE : OFF
-- EXECUTORCH_BUILD_EXTENSION_DATA_LOADER : ON
-- EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL : ON
-- EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR : ON
-- EXECUTORCH_BUILD_EXTENSION_LLM : OFF
-- EXECUTORCH_BUILD_EXTENSION_LLM_APPLE : OFF
-- EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER : OFF
-- EXECUTORCH_BUILD_EXTENSION_MODULE : OFF
-- EXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP : OFF
-- EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL : ON
-- EXECUTORCH_BUILD_EXTENSION_TENSOR : OFF
-- EXECUTORCH_BUILD_EXTENSION_TRAINING : OFF
-- EXECUTORCH_BUILD_KERNELS_LLM : OFF
-- EXECUTORCH_BUILD_KERNELS_LLM_AOT : OFF
-- EXECUTORCH_BUILD_KERNELS_OPTIMIZED : OFF
-- EXECUTORCH_BUILD_KERNELS_QUANTIZED : OFF
-- EXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT : OFF
-- EXECUTORCH_BUILD_METAL : OFF
-- EXECUTORCH_BUILD_MPS : OFF
-- EXECUTORCH_BUILD_NEURON : OFF
-- EXECUTORCH_BUILD_OPENVINO : OFF
-- EXECUTORCH_BUILD_PORTABLE_OPS : ON
-- EXECUTORCH_BUILD_PTHREADPOOL : ON
-- EXECUTORCH_BUILD_PYBIND : OFF
-- EXECUTORCH_BUILD_QNN : OFF
-- EXECUTORCH_BUILD_SIZE_TEST : OFF
-- EXECUTORCH_BUILD_TESTS : OFF
-- EXECUTORCH_BUILD_TOKENIZERS_WASM : OFF
-- EXECUTORCH_BUILD_VGF : OFF
-- EXECUTORCH_BUILD_VULKAN : OFF
-- EXECUTORCH_BUILD_WASM : OFF
-- EXECUTORCH_BUILD_XNNPACK : OFF
-- EXECUTORCH_CADENCE_CPU_RUNNER : OFF
-- EXECUTORCH_COREML_BUILD_EXECUTOR_RUNNER : OFF
-- EXECUTORCH_ENABLE_DTYPE_SELECTIVE_BUILD : FALSE
-- EXECUTORCH_ENABLE_EVENT_TRACER : OFF
-- EXECUTORCH_ENABLE_LOGGING : ON
-- EXECUTORCH_ENABLE_PROGRAM_VERIFICATION : ON
-- EXECUTORCH_FLATBUFFERS_MAX_ALIGNMENT : 1024
-- EXECUTORCH_LOG_LEVEL : Info
-- EXECUTORCH_NNLIB_OPT : OFF
-- EXECUTORCH_OPTIMIZE_SIZE : OFF
-- EXECUTORCH_PAL_DEFAULT : posix
-- EXECUTORCH_PAL_DEFAULT_FILE_PATH : /home/executorch/runtime/platform/default/posix.cpp
-- EXECUTORCH_SELECT_OPS_LIST :
-- EXECUTORCH_SELECT_OPS_MODEL :
-- EXECUTORCH_SELECT_OPS_YAML :
-- EXECUTORCH_THREADPOOL_USE_ALL_LOGICAL_CORES : OFF
-- EXECUTORCH_THREADPOOL_USE_PERFORMANCE_CORES : OFF
-- EXECUTORCH_USE_CPP_CODE_COVERAGE : OFF
-- EXECUTORCH_USE_DL : ON
-- EXECUTORCH_XNNPACK_ENABLE_KLEIDI : ON
-- EXECUTORCH_XNNPACK_ENABLE_WEIGHT_CACHE : OFF
-- EXECUTORCH_XNNPACK_SHARED_WORKSPACE : ON
-- PYTHON_EXECUTABLE : python


-- Configuring done (336.3s)
-- Generating done (4.4s)
-- Build files have been written to:

then use: make -j8

[ 3%] Built target flatbuffers_ep
[ 5%] Built target flatcc_ep
[ 5%] Linking C static library libpthreadpool.a
[ 6%] Linking C static library libcpuinfo.a
[ 6%] Linking C static library libcpuinfo_internals.a
[ 6%] Built target common_schema
[ 7%] Built target scalar_type_schema
[ 8%] Linking CXX static library libgflags_nothreads_debug.a
[ 9%] Built target program_schema
[ 9%] Linking C static library /home/executorch/third-party/flatcc/lib/libflatccrt_d.a
[ 10%] Built target pthreadpool
[ 10%] Built target flat_tensor_schema
[ 15%] Built target cpuinfo
[ 20%] Built target cpuinfo_internals
[ 22%] Built target flatccrt
[ 23%] Built target gflags_nothreads_static
[ 23%] Linking CXX static library libexecutorch_core.a
[ 29%] Built target executorch_core
[ 30%] Linking CXX static library libextension_evalue_util.a
[ 31%] Linking CXX static library libextension_runner_util.a
[ 31%] Linking CXX static library libextension_data_loader.a
[ 32%] Linking CXX static library libexecutorch.a
[ 33%] Linking CXX static library libextension_flat_tensor.a
[ 33%] Linking CXX static library libextension_threadpool.a
[ 33%] Built target extension_evalue_util
[ 33%] Built target extension_runner_util
[ 33%] Built target extension_flat_tensor
[ 34%] Built target extension_data_loader
[ 35%] Built target executorch
[ 36%] Built target extension_threadpool
[ 36%] Linking CXX static library libkernels_util_all_deps.a
[ 41%] Built target kernels_util_all_deps
[ 41%] Linking CXX static library libportable_kernels.a
[ 98%] Built target portable_kernels

When running make, the build process always stops at “Built target portable_kernels” and does not continue further.

Versions

When running make, the build process always stops at “Built target portable_kernels” and does not continue further.

how to resolve this make problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions