onnxruntime: [JAVA Bindings + ARM64] ONNXRuntime build fail
Describe the bug Following the documentation https://github.com/microsoft/onnxruntime/blob/master/dockerfiles/README.md#arm-32v7, I still cannot get a successful build while enable java build with arm64.
- arm64 build is good with argument
--arm64 - arm64+java is failed with argument
--arm64 --build_java
System information (Docker Host)
- OS Platform and Distribution:
Linux Ubuntu 18.04 on AWS instance - QEMU:
qemu-user-static/bionic-updates,bionic-security,now 1:2.11+dfsg-1ubuntu7.36 amd64 [installed] - Docker CE:
docker-ce/bionic,now 5:20.10.3~3-0~ubuntu-bionic amd64 [installed,upgradable to: 5:20.10.4~3-0~ubuntu-bionic]docker-ce-cli/bionic,now 5:20.10.3~3-0~ubuntu-bionic amd64 [installed,upgradable to: 5:20.10.4~3-0~ubuntu-bionic]
System information (Docker Image/Container)
-
OS Platform:
FROM Docker image: balenalib/raspberrypi3-python:latest-stretch-build -
Docker Container:
root@672b24c38f99:/code# uname -r5.4.0-1038-aws -
ONNX Runtime installed from: source
-
ONNX Runtime version: master branch clone on Feb 26, 2021
git log last commit:commit d5175795d2b7f2db18b0390f394a49238f814668Author: Pranav Prakash <pranav-prakash@users.noreply.github.com>Date: Fri Feb 26 10:21:37 2021 -0800 -
Python version: installed by the Dockerfile (Dockerfile.java.arm64)
Python 3.8.5 (default, Jul 21 2020, 14:14:58)[GCC 6.3.0 20170516] on linux -
CMake: installed by the Dockerfile (Dockerfile.java.arm64)
cmake-3.18.3 -
Gradle:
6.3installed by the Dockerfile (Dockerfile.java.arm64) -
JDK version: installed by the Dockerfile (Dockerfile.java.arm64)
openjdk version "1.8.0_275"OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)OpenJDK Client VM (build 25.275-b01, mixed mode)
To Reproduce
- launch a new aws instance using platform Linux 18.04 ubuntu
- install Docker CE
- install ARM emulator
- run docker build command:
docker build -t onnxruntime-java-arm64 Dockerfile.java.arm64 .using (Dockerfile.java.arm64)
Expected behavior successful build
Error message
CMake Error at onnxruntime_java.cmake:135 (message):
Java is currently not supported on 32-bit x86 architecture
Call Stack (most recent call first):
CMakeLists.txt:1498 (include)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
It works with gcc-8 and g+±8. Awesome and appreciate the help 👯