-
Notifications
You must be signed in to change notification settings - Fork 17
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 broken for bundle target for ARM architectures when USE_OPENSSL=ON #449
Comments
architecture specific includes are in see this https://askubuntu.com/questions/430705/how-to-use-apt-get-to-download-multi-arch-library |
@ekoby Thanks for that guidance. The build progresses further with that dependency satisfied. I addressed the issue by running: dpkg --add-architecture arm64
dpkg --add-architecture armhf
apt update
apt -y install libssl-dev:arm64 \
libssl-dev:armhf The next error is right near the end of the build. arm64
arm
The path to libssl.so in both cases includes "x86_64" which is the wrong architecture for the crossbuild. |
I can still reproduce this build error. arm# verbatim configure and build commands
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/mnt/docker/../toolchains/Linux-arm.cmake -DUSE_OPENSSL=ON -S /mnt/docker/.. -B /mnt/docker/../build-arm
cmake --build /mnt/docker/../build-arm --target package --verbose after configuring cmake the second cmake build command gets:
|
Is I change the config param to ❯ file build-arm/programs/ziti-edge-tunnel/ziti-edge-tunnel
build-arm/programs/ziti-edge-tunnel/ziti-edge-tunnel: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=e5734a9662808ddf4238799c0bf558f0e28d1b39, for GNU/Linux 3.2.0, with debug_info, not stripped There must be an issue with the way I'm building for OpenSSL. |
Reproduce the failed executable build for arch docker build --file ./docker/Dockerfile.linux-build -t ziti-edge-tunnel-builder .
docker run --name ziti-edge-tunnel-builder --rm --volume ${PWD}:/mnt ziti-edge-tunnel-builder --openssl arm |
I added the
If we can narrow the search to precisely what is generating this I've pushed the updated Dockerfile.linux-build to the branch so you can repro. |
I got past the wrong arch
Thanks for the hint @sabedevops! |
Next step is to resolve #543 and I'll do that here in the same branch. |
I tried to build the arm64 binary and ran into an issue with USE_OPENSSL=ON. I recognize that we're using mbedtls in GitHub CI, and the package builds are amd64 only, and so I'm wondering if building for ARM architectures with openssl is supported at all. I've attached the build log: arm64-openssl.log
Here's the incantation I attempted to build for ARM64.
The text was updated successfully, but these errors were encountered: