Failed to build docker ran-base image for arm64
Hello,
I am trying to build the ran-base image for a machine with arm64 architecture (tried with develop and w31), to ultimately build the oai-gnb-aerial image with -w Aerial.
I have downloaded ubuntu:jammy and made sure no mirrors are present.
However, some of the packages are not found, in particular all the ones for cross compilation:
13.75 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13.77 Reading package lists...
14.21 Building dependency tree...
14.30 Reading state information...
14.34 E: Unable to locate package libc6-dev-i386
14.34 E: Unable to locate package gcc-11-aarch64-linux-gnu
14.34 E: Unable to locate package g++-11-aarch64-linux-gnu
14.34 E: Couldn't find any package by regex 'g++-11-aarch64-linux-gnu'
I am using this command: docker build --no-cache . -f docker/Dockerfile.base.ubuntu22.cross-arm64 --tag ran-base:w33
So, I commented those lines, reinstalled the default gcc-11 and g++-11 compilers, and tried to build the oai-gnb-aerial anyways. However, the build failed and returned 100 errors. Here is a sample of the error:
35.55 /usr/include/simde/arm/neon/get_lane.h:279:5: error: incompatible type for argument 1 of 'vget_lane_f16'
35.55 279 | SIMDE_CONSTIFY_8_(vget_lane_f16, r, (HEDLEY_UNREACHABLE(), SIMDE_FLOAT16_VALUE(0.0)), lane, v);
35.55 | ^~~~~~~~~~~~~~~~~
35.55 | |
35.55 --
35.55 /usr/include/simde/arm/neon/get_lane.h:279:5: error: incompatible type for argument 1 of 'vget_lane_f16'
35.55 279 | SIMDE_CONSTIFY_8_(vget_lane_f16, r, (HEDLEY_UNREACHABLE(), SIMDE_FLOAT16_VALUE(0.0)), lane, v);
35.55 | ^~~~~~~~~~~~~~~~~
35.55 | |
35.55 --
35.55 /usr/include/simde/arm/neon/get_lane.h:279:5: error: incompatible type for argument 1 of 'vget_lane_f16'
35.55 279 | SIMDE_CONSTIFY_8_(vget_lane_f16, r, (HEDLEY_UNREACHABLE(), SIMDE_FLOAT16_VALUE(0.0)), lane, v);
35.55 | ^~~~~~~~~~~~~~~~~
35.55 | |
35.55 --
35.55 /usr/include/simde/arm/neon/sqrt.h:40:26: error: 'b' undeclared (first use in this function)
35.55 40 | return vsqrth_f16(a, b);
35.55 | ^
35.55 /usr/include/simde/arm/neon/sqrt.h:40:26: note: each undeclared identifier is reported only once for each function it appears in
35.55 /usr/include/simde/arm/neon/sqrt.h:40:12: error: too many arguments to function 'vsqrth_f16'
35.55 40 | return vsqrth_f16(a, b);
35.55 | ^~~~~~~~~~
35.55 In file included from /usr/lib/gcc/aarch64-linux-gnu/11/include/arm_neon.h:30943,
35.56 ERROR: 100 error. See /oai-ran/cmake_targets/log/all.txt
35.56 compilation of nr-softmodem nr-cuup params_libconfig coding rfsimulator dfts failed
35.56 build have failed
I am using the following command: docker build --no-cache . -f docker/Dockerfile.gNB.aerial.ubuntu22 --tag oai-gnb-aerial:w33
How can this be solved? Thank you.