Hello Toradex-Team,
I’m working on a Qt-Torizon project. Until the last days I always worked on my Windows10 Laptop in WSL2 and is works fine, but realy slow. So we set up a new Ubuntu 24.04 build server (native linux machine) with more power. But now the problem occurred that our Qt project no longer gets cross compiled for the Toradex Verdin AM62 (but Local ADM62 still works). I also tried to build a clean new Qt-Torizon-Template project, but the same behaviour occurred.
The problem seems to be in the build task “build-configure-arm64”
Here is the terminal output from the “build-configure-arm64” task:
* Executing task: pwsh -nop .conf/validateDepsRunning.ps1
⚠️ VALIDATING ENVIRONMENT
✅ Environment is valid!
* Terminal will be reused by tasks, press any key to close it.
* Executing task: bash -c [[ ! -z "10.2.5.71" ]] && true || false
* Terminal will be reused by tasks, press any key to close it.
* Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false
* Terminal will be reused by tasks, press any key to close it.
* Executing task: sleep 1
* Terminal will be reused by tasks, press any key to close it.
* Executing task: sshpass -p scemtec scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/u.nickmann/Projects/Other/qtTest2/docker-compose.yml torizon@10.2.5.71:~/
Warning: Permanently added '10.2.5.71' (ED25519) to the list of known hosts.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST=10.2.5.71:2375 docker image prune -f --filter=dangling=true
Total reclaimed space: 0B
* Terminal will be reused by tasks, press any key to close it.
* Executing task: if [ false == false ]; then DOCKER_HOST=10.2.5.71:2375 docker compose -p torizon down --remove-orphans ; fi
Warning: No resource found to remove for project "torizon".
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST= docker build --pull -f /home/u.nickmann/Projects/Other/qtTest2/Dockerfile.sdk /home/u.nickmann/Projects/Other/qtTest2 -t cross-toolchain-arm64-qt-test2 --build-arg IMAGE_ARCH=arm64 --build-arg GPU= --build-arg APP_ROOT=/home/torizon/app
[+] Building 0.5s (9/9) FINISHED docker:default
=> [internal] load build definition from Dockerfile.sdk 0.0s
=> => transferring dockerfile: 2.14kB 0.0s
=> WARN: StageNameCasing: Stage name 'Build' should be lowercase (line 29) 0.0s
=> [internal] load metadata for docker.io/torizon/qt6-wayland:3.2.0 0.5s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 56B 0.0s
=> [1/5] FROM docker.io/torizon/qt6-wayland:3.2.0@sha256:c0e3b66d647c7444392a69b5bf5cf746854bdcf25343561555414dcb1a97b0d0 0.0s
=> CACHED [2/5] RUN apt-get -q -y update && if [ "" = "-vivante" ] || [ "" = "-imx8" ]; then apt-get -q 0.0s
=> CACHED [3/5] RUN apt-get -q -y update && apt-get -q -y install build-essential cmake qt6-base-private-dev 0.0s
=> CACHED [4/5] RUN apt-get -q -y update && apt-get -q -y install && apt-get clean && apt-get autoremove && 0.0s
=> CACHED [5/5] WORKDIR /home/torizon/app 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:aae109cdf799abb0df4ebfd6cdc9fdf204fd82195031e7a978147986edaecb73 0.0s
=> => naming to docker.io/library/cross-toolchain-arm64-qt-test2 0.0s
1 warning found (use --debug to expand):
- StageNameCasing: Stage name 'Build' should be lowercase (line 29)
* Terminal will be reused by tasks, press any key to close it.
* Executing task: DOCKER_HOST= docker run --rm -v /home/u.nickmann/Projects/Other/qtTest2:/home/torizon/app cross-toolchain-arm64-qt-test2 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -Bbuild-arm64
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v4) and no specific platform was requested
CMake Error: Unable to (re)create the private pkgRedirects directory:
/home/torizon/app/build-arm64/CMakeFiles/pkgRedirects
* The terminal process "/bin/bash '-c', 'DOCKER_HOST= docker run --rm -v /home/u.nickmann/Projects/Other/qtTest2:/home/torizon/app cross-toolchain-arm64-qt-test2 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -Bbuild-arm64'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
What does the error CMake Error: Unable to (re)create the private pkgRedirects directory: /home/torizon/app/build-arm64/CMakeFiles/pkgRedirects
mean and how to get rid of it? It may have something to do with the CMake permission? But I dont get it…
Any suggestions?
Regards Uwe