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

[Build] Error building with ACL EP on aarch64 linux (Raspberry Pi 5) #23741

Open
andresovela opened this issue Feb 18, 2025 · 0 comments
Open
Labels
build build issues; typically submitted using template ep:ACL issues related to ACL execution provider

Comments

@andresovela
Copy link

Describe the issue

I followed the build instructions in https://onnxruntime.ai/docs/build/inferencing.html to try to build ONNX Runtime with the ACL Execution Provider, but the build fails.

It seems that the ACL directories are not part of the include directories for some reason.

Urgency

No response

Target platform

aarch64 linux (Raspberry Pi 5)

Build script

VERBOSE=1 ./build.sh --config RelWithDebInfo --parallel --compile_no_warning_as_error --skip_submodule_sync --use_acl --acl_home=../arm_compute-v25.02-linux-aarch64-cpu-bin --acl_libs=../arm_compute-v25.02-linux-aarch64-cpu-bin/lib/armv8a-neon-asserts

Error / output

[ 43%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/home/aic/dev/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DONLY_C_LOCALE=0 -DONNX_ML=1 -DONNX_NAMESPACE=onnx -DONNX_USE_LITE_PROTO=1 -DORT_ENABLE_STREAM -DPLATFORM_POSIX -DUSE_ACL=1 -D_GNU_SOURCE -D__ONNX_NO_DOC_STRINGS -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/utf8_range-src -I/home/aic/dev/onnxruntime/include/onnxruntime -I/home/aic/dev/onnxruntime/include/onnxruntime/core/session -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/pytorch_cpuinfo-src/include -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo -I/home/aic/dev/onnxruntime/onnxruntime -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/abseil_cpp-src -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/safeint-src -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/gsl-src/include -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/date-src/include -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/onnx-src -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/onnx-build -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/protobuf-src/src -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/flatbuffers-src/include -I/home/aic/dev/onnxruntime/build/Linux/RelWithDebInfo/_deps/mp11-src/include -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Wno-maybe-uninitialized -MD -MT CMakeFiles/onnxruntime_optimizer.dir/home/aic/dev/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o -MF CMakeFiles/onnxruntime_optimizer.dir/home/aic/dev/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o.d -o CMakeFiles/onnxruntime_optimizer.dir/home/aic/dev/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc.o -c /home/aic/dev/onnxruntime/onnxruntime/core/optimizer/attention_fusion.cc
In file included from /home/aic/dev/onnxruntime/onnxruntime/core/providers/acl/acl_common.cc:10:
/home/aic/dev/onnxruntime/onnxruntime/core/providers/acl/acl_common.h:11:10: fatal error: arm_compute/core/experimental/Types.h: No such file or directory
   11 | #include "arm_compute/core/experimental/Types.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/onnxruntime_providers_acl.dir/build.make:79: CMakeFiles/onnxruntime_providers_acl.dir/home/aic/dev/onnxruntime/onnxruntime/core/providers/acl/acl_common.cc.o] Error 1

Visual Studio Version

No response

GCC / Compiler Version

No response

@andresovela andresovela added the build build issues; typically submitted using template label Feb 18, 2025
@github-actions github-actions bot added the ep:ACL issues related to ACL execution provider label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:ACL issues related to ACL execution provider
Projects
None yet
Development

No branches or pull requests

1 participant