Closed robertbcalhoun closed 1 month ago
Thank you Robert.
We have not tested the build-tool on Ubuntu 22.04. Can you confirm that it was the default gcc compiler version, 11.2.0-1 please.
Colm.
I'm using Ubuntu 22.04 to run docker, not compile the software. The software is compiled inside the container, using the cross-compiler specified by your docker container in install-packaages.sh
:
# Install cross compile toolchains if host is x86_64
if [ "$HOST_ARCH" == "x86_64" ]; then
apt-get update && apt-get install -y --no-install-recommends \
crossbuild-essential-arm64
fi
As of today, the version of gcc used to cross-compile armnn
inside the container is:
arm-user@dd63b47dc028:~$ /usr/bin/aarch64-linux-gnu-g++ --version
aarch64-linux-gnu-g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Adding explicit casts to tests/ExecuteNetwork/ArmNNExecutor.cpp
fixes the warnings. After that I could build the software successfully. I'll make a pull request.
-Rob
Hello Robert,
Would you mind creating a patch on mlplatform.org rather than the pull request please. If you'd rather not I can create it for you with your permission.
Colm.
This has since been fixed by: https://review.mlplatform.org/c/ml/armnn/+/12251
Builds using Arm NN Build Tool fail as of 1f3eb73c6c4f03181f657650bde3ff2b9e6bfae8 due to unaddressed gcc warnings and use of
-Werror
flag.Build environments:
Docker version 26.0.0, build 2ae903e
Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1
Commands tested:
docker build --build-arg SETUP_ARGS="--target-arch=aarch64 --all" --build-arg BUILD_ARGS="--target-arch=aarch64 --onnx-parser --neon-backend" --tag armnn:aarch64 --file docker/Dockerfile .
docker build --build-arg SETUP_ARGS="--target-arch=aarch64 --all" --build-arg BUILD_ARGS="--target-arch=aarch64 --tflite-classic-delegate --neon-backend --cl-backend" --tag armnn:aarch64 --file docker/Dockerfile .
The warnings are mostly in test execution code and are not indicative of real problems. Example:
Workaround:
disable
error=conversion
e.g.Truncated error log attached.
build-tool-fail-Werror.txt