-
Notifications
You must be signed in to change notification settings - Fork 39
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
Value too large for defined data type - Compiling for ARM-HF using Docker Emulation #270
Comments
One potential is to cross-compile, rather than use emulation. Zenoh-C cross compile steps are provided here. Summary of steps here:
ament_vendor(zenoh_c_vendor
VCS_URL https://github.com/eclipse-zenoh/zenoh-c.git
VCS_VERSION 548ee8dde0f53a58c06e68a2949949b31140c36c
CMAKE_ARGS
"-DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS}"
"-DZENOHC_CUSTOM_TARGET=armv7-unknown-linux-gnueabihf"
)
# Install arm gcc compiler
apt-get install gcc-arm-linux-gnueabihf
# install rustup - remove any rustc currently existing on system first
apt-get remove rustc
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Source
source $HOME/.carg/env
# Add rustup target
rustup target add armv7-unknown-linux-gnueabihf
Can, and should, the CMakeLists.txt be altered in some way to allow for a command line argument to be provided when running the colcon build command to set the |
I think that is a fine option to have in A PR adding that option would be welcome. |
Pull request created. Given a solution has been found to the issue, happy for conversation to occur in the PR instead as it is now more around implementation. |
Closed with #272 |
Attempting to compile RMW Zenoh for ARM-HF using Docker Emulation. After creating a ARM-HF (Linux/arm/v7) docker image and running an interactive container emulating the ARM architecture. I get the following error when attempting to build the zenoh_c_vendor package.
Dockerfile
Colcon Build Error
I believe it has to do with the issue outlined here. However, I am not familiar with cargo and unsure on how to apply a solution to the CMakeList.txt within the zenoh_c_vendor package.
The text was updated successfully, but these errors were encountered: