You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A while ago, I created issue #17993 to discuss linking issues when trying to cross-compile protobuf for the arm64 architecture of an Nvidia Jetson. At the end of the discussion, I was able to pinpoint the exact location of the problem: there is only a compilation error when the package is compiled with the build_type=Debug configuration. This time, I also brought a Dockerfile that creates an environment similar to the Jetson using QEMU so that the generated binary can be compiled and executed. I'm using podman, but the commands to run the container in docker should be very similar.
The error that appears when trying to compile the project is:
undefined reference to symbol '_ZN4absl12lts_2024072212log_internal21CheckOpMessageBuilder7ForVar2Ev'
build-conan-jetson/3rdparty/full_deploy/host/abseil/20240722.0/Debug/armv8/lib/libabsl_log_internal_check_op.so.2407.0.0: error adding symbols: DSO missing from command line
Describe the bug
A while ago, I created issue #17993 to discuss linking issues when trying to cross-compile protobuf for the arm64 architecture of an Nvidia Jetson. At the end of the discussion, I was able to pinpoint the exact location of the problem: there is only a compilation error when the package is compiled with the
build_type=Debug
configuration. This time, I also brought a Dockerfile that creates an environment similar to the Jetson using QEMU so that the generated binary can be compiled and executed. I'm using podman, but the commands to run the container in docker should be very similar.The error that appears when trying to compile the project is:
How to reproduce it
Here are all the files used in the project:
CMakeLists.txt:
conanfile.py:
x86 profile:
jetson profile:
main.cpp:
simple.proto:
Dockerfile:
The 'profile' files should go in a
profiles
directory on the current working directory. All the other files should be in the same directory.Here are the compilation commands:
Running
make jetson
should be enough to reproduce the error.To generate the docker image and run it, on Ubuntu:
Then, inside the container:
If you want to test cross-compilation instead of native compilation, simply change the container creation command to:
And run:
The text was updated successfully, but these errors were encountered: