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] cross-compiling onnxruntime for arm32 and onnxruntime_ENABLE_CPUINFO not working. #20461

Open
lsjws2008 opened this issue Apr 25, 2024 · 3 comments
Labels
build build issues; typically submitted using template

Comments

@lsjws2008
Copy link

Describe the issue

I tried to cross-compile onnxruntime for arm32 development board on Ubuntu 20.04. I followed the cross-compilation guide provided by . It might be that onnx does not support arm's cpuinfo, so I set onnxruntime_ENABLE_CPUINFO=OFF. However, it seems that this setting doesn't work.

Urgency

Normal

Target platform

Arm32

Build script

./build.sh --config RelWithDebInfo --update --build --build_shared_lib --parallel --skip_submodule_sync --cmake_extra_defines CMAKE_TOOLCHAIN_FILE=/home/ubuntu/onnxruntime/cmake/tool.cmake Protobuf_LIBRARIES=/usr/local/lib/libprotobuf.a Protobuf_INCLUDE_DIR=/usr/local/include/ onnxruntime_ENABLE_CPUINFO=OFF protobuf_BUILD_SHARED_LIBS=OFF ONNX_CUSTOM_PROTOC_EXECUTABLE=/usr/local/bin/protoc CMAKE_OSX_ARCHITECTURES=arm

Error / output

image
image

Visual Studio Version

1.13.1

GCC / Compiler Version

8.3.0

@lsjws2008 lsjws2008 added the build build issues; typically submitted using template label Apr 25, 2024
@lsjws2008 lsjws2008 changed the title [Build] [Build] cross-compiling onnxruntime for arm32 and onnxruntime_ENABLE_CPUINFO not working. Apr 25, 2024
@snnn
Copy link
Member

snnn commented Apr 25, 2024

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label May 26, 2024
@snnn
Copy link
Member

snnn commented May 28, 2024

CMAKE_OSX_ARCHITECTURES is not needed for Linux build. It is for Apple's operating systems.

@github-actions github-actions bot removed the stale issues that have not been addressed in a while; categorized by a bot label May 29, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants