# Toolchain problem ? VOXL-Vision-Hub fails to build

Source: https://forum.modalai.com/topic/4518/toolchain-problem-voxl-vision-hub-fails-to-build
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: starling
Posted: 2025-06-17 14:22:43 UTC by Hector Gutierrez
Replies: 10 · Views: 1702

## Hector Gutierrez · 2025-06-17 14:22:43 UTC

Good morning,

There seems to be an overall problem with the tool chain to build VOXL Vision Hub.
First, I installed voxl-docker and voxl-cross(4.0) as described on the bootcamp. 
I cloned voxl-vision-hub:   git clone https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/
Then followed the instructions to build the target:
$ cd voxl-vision-hub
$ voxl-docker -i voxl-cross
Inside voxl-cross docker: install build dependencies:  
voxl-cross(4.0)$  ./install_build_deps.sh qrb5165-2 dev
Then build:
voxl-cross(4.0)$  ./build.sh qrb5165-2

and then it fails to build !  After giving a *long* list of warnings, the error message is: 
[100%] Linking CXX executable voxl-vision-hub
/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: CMakeFiles/voxl-vision-hub.dir/offboard_vfc.c.o:(.bss+0x48): multiple definition of `offboard_log'; CMakeFiles/voxl-vision-hub.dir/offboard_mode.c.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/voxl-vision-hub.dir/build.make:521: src/voxl-vision-hub] Error 1
make[1]: *** [CMakeFiles/Makefile2:155: src/CMakeFiles/voxl-vision-hub.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

This is a major modalai package and it fails to build just following the instructions.
Please advise on how to proceed - This is somewhat urgent since the entire project is on hold if the tools for building don't work.
Thanks.

## Reply by tom (ModalAI staff) · 2025-06-17 17:06:56 UTC

@Hector-Gutierrez You don't want to be building for `qrb5165-2`, you want `qrb5165`

## Reply by tom (ModalAI staff) · 2025-06-17 17:08:03 UTC

@Hector-Gutierrez All of our packages get built on master and dev each night so if you're wondering whether the package is able to be built you can always check the status of the CI pipelines: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/-/pipelines

## Reply by Hector Gutierrez · 2025-06-17 18:47:44 UTC

Tom - thanks for the prompt response. I used qrb5165-2 since I'm running on Ubuntu 20.04 and the build instructions mention to use that option.  
I re-did the procedure (after deleting all files from the previous attempt) , this time I used qrb5165 for both dependencies and built.  Build fails, several warning, build error very similar as before:
[100%] Linking CXX executable voxl-vision-hub
/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: CMakeFiles/voxl-vision-hub.dir/offboard_vfc.c.o:(.bss+0x48): multiple definition of `offboard_log'; CMakeFiles/voxl-vision-hub.dir/offboard_mode.c.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/voxl-vision-hub.dir/build.make:521: src/voxl-vision-hub] Error 1
make[1]: *** [CMakeFiles/Makefile2:155: src/CMakeFiles/voxl-vision-hub.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

 I'm able to build other applications, so it seems my voxl-docker and voxl-cross are working properly.  Please advise on what else could I try. 
Thanks,  Hector

## Reply by Eric Katzfey (ModalAI staff) · 2025-06-17 19:11:54 UTC (in reply to Hector Gutierrez)

@Hector-Gutierrez What branch are you trying to build? If you install dependencies from the dev repo then you should also be building the dev branch of voxl-vision-hub

## Reply by tom (ModalAI staff) · 2025-06-17 19:15:31 UTC (in reply to Hector Gutierrez)

@Hector-Gutierrez Your VOXL2 is running Ubuntu 20 or your host machine is Ubuntu 20?

We don't build voxl-vision-hub for ubuntu 20 so that isn't correct

## Reply by tom (ModalAI staff) · 2025-06-17 19:17:47 UTC (in reply to tom)

@tom I believe we're also still building voxl-vision-hub with voxl-cross:V2.7, we're in a bit of a transition period of moving packages to the newer voxl-cross and I don't think voxl-vision-hub has been moved over yet

## Reply by Hector Gutierrez · 2025-06-17 19:18:46 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 
Hi Eric - the exact sequence I'm following is:

$ git clone https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/
$ cd voxl-vision-hub
$ voxl-docker -i voxl-cross
voxl-cross(4.0)$ ./install_build_deps.sh qrb5165 dev
voxl-cross(4.0)$ ./build.sh qrb5165

I've tried both options qrb5165 and qrb5165-2 and both fail at build.

Thanks,  Hector

## Reply by Hector Gutierrez · 2025-06-17 19:21:13 UTC (in reply to tom)

@tom ,  can I install and use voxl-cross(2.7)  concurrently with V4.0 ? Or do I have to delete my V4.0 installation ?

## Reply by tom (ModalAI staff) · 2025-06-17 19:24:24 UTC (in reply to Hector Gutierrez)

@Hector-Gutierrez You can use them concurrently, just specify which to run like so `voxl-docker -i voxl-cross:V2.7`

If you don't specify which version to use it'll default to whichever is tagged with `latest`

## Reply by Hector Gutierrez · 2025-06-17 19:43:49 UTC (in reply to tom)

@tom  - that solved the problem . The solution was to download and build using voxl-cross:V2.7
Thanks for the very prompt response !   regards,  Hector
