Error: rmf_adapter.cpython-312-aarch64-linux-gnu.so: file too short (#639)

Posted by @akshay-ka:

Hello,

I have installed rmf packages from source inside a docker container.
I am currently working on the free_fleet package.
This morning, I deleted the free_fleet package existing in my workspace and did a new clone of the main branch from the official github repo.

All of a sudden, I get the following error (see screenshot below).

I’m not getting much idea why this error occurs or how to solve this ?

Could anyone provide guidance or clarification? Any help would be appreciated.

Note: colcon build and sourcing the workspace are done correctly.


Edited by @akshay-ka at 2025-03-14T08:56:10Z

Chosen answer

Answer chosen by @aaronchongth at 2025-03-17T02:22:25Z.
Answered by @aaronchongth:

Note: colcon build and sourcing the workspace are done correctly.

Sanity check, have you tried deleting install, build, log and rebuilding the entire workspace from source?

If possible please provide the Dockerfile for building the workspace inside a container so we can investigate more.

Posted by @aaronchongth:

Note: colcon build and sourcing the workspace are done correctly.

Sanity check, have you tried deleting install, build, log and rebuilding the entire workspace from source?

If possible please provide the Dockerfile for building the workspace inside a container so we can investigate more.


This is the chosen answer.

Posted by @akshay-ka:

As you mentioned, I cleaned the rmf_ws and built the packages once again. The issue is now solved.
However, I didn’t try this as a very first attempt to solve this issue, because it takes almost 60 min to build all the rmf packages.

Thanks for the support.


Edited by @akshay-ka at 2025-03-14T10:53:26Z

Posted by @aaronchongth:

Install ccache to speed up re-builds, this just caches built binaries on your machine, and if you are rebuilding, it will help skip lots of unrelated packages,

sudo apt install ccache -y
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc

Posted by @akshay-ka:

Okay, I’ll try this. Thanks.