Toolchain problem ? VOXL-Vision-Hub fails to build
-
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-2and 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 2This 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. -
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-2and 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 2This 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.@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
-
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 2I'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 -
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 2I'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@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
-
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 2I'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 -
@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
-
@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
@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 qrb5165I've tried both options qrb5165 and qrb5165-2 and both fail at build.
Thanks, Hector
-
@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
@tom , can I install and use voxl-cross(2.7) concurrently with V4.0 ? Or do I have to delete my V4.0 installation ?
-
@tom , can I install and use voxl-cross(2.7) concurrently with V4.0 ? Or do I have to delete my V4.0 installation ?
-
@Hector-Gutierrez You can use them concurrently, just specify which to run like so
voxl-docker -i voxl-cross:V2.7If you don't specify which version to use it'll default to whichever is tagged with
latest@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
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login