Skip to content
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

Gazebo9/Gazebo11 build error on armhf: multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>' #3208

Closed
dongpan90 opened this issue Apr 9, 2022 · 1 comment · Fixed by #3283

Comments

@dongpan90
Copy link

dongpan90 commented Apr 9, 2022

Environment:
Linux pi-desktop 5.4.0-1058-raspi #65-Ubuntu SMP PREEMPT Fri Mar 25 12:34:25 UTC 2022 armv7l armv7l armv7l GNU/Linux

Build package: gazebo-gazebo9_9.19.0

Build Error:

[ 18%] Linking CXX shared library libgazebo_common.so
/usr/bin/ld: CMakeFiles/gazebo_common.dir/ColladaLoader.cc.o:(.rodata+0x4): multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/ColladaLoader.cc.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.data.rel.ro+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/CommonIface.cc.o:(.rodata+0x0): multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/CommonIface.cc.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.data.rel.ro+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/Material.cc.o:(.rodata+0x0): multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/Material.cc.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.data.rel.ro+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/ModelDatabase.cc.o:(.rodata+0x4): multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/ModelDatabase.cc.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.data.rel.ro+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/SystemPaths.cc.o:(.rodata+0x0): multiple definition of `typeinfo name for SingletonT<gazebo::common::ModelDatabase>'; CMakeFiles/gazebo_common.dir/ModelDatabase.cc.o:(.rodata+0x30): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/SystemPaths.cc.o:(.data.rel.ro+0x0): multiple definition of `typeinfo for SingletonT<gazebo::common::ModelDatabase>'; CMakeFiles/gazebo_common.dir/ModelDatabase.cc.o:(.data.rel.ro+0x8): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/SystemPaths.cc.o:(.rodata+0x30): multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.rodata+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/SystemPaths.cc.o:(.data.rel.ro+0x8): multiple definition of `typeinfo for SingletonT<gazebo::common::SystemPaths>'; CMakeFiles/gazebo_common.dir/BVHLoader.cc.o:(.data.rel.ro+0x0): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/MeshCSG.cc.o:(.rodata+0x1c): multiple definition of `typeinfo name for SingletonT<gazebo::common::MeshManager>'; CMakeFiles/gazebo_common.dir/MeshManager.cc.o:(.rodata+0x1fc): first defined here
/usr/bin/ld: CMakeFiles/gazebo_common.dir/MeshCSG.cc.o:(.data.rel.ro+0x8): multiple definition of `typeinfo for SingletonT<gazebo::common::MeshManager>'; CMakeFiles/gazebo_common.dir/MeshManager.cc.o:(.data.rel.ro+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [gazebo/common/CMakeFiles/gazebo_common.dir/build.make:805: gazebo/common/libgazebo_common.so.9.19.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:3161: gazebo/common/CMakeFiles/gazebo_common.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
@j-rivero j-rivero changed the title At RPi 4B build gazebo-gazebo9_9.19.0 error: multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>' Gazebo9/Gazebo11 build error on armhf: multiple definition of `typeinfo name for SingletonT<gazebo::common::SystemPaths>' Aug 3, 2022
@j-rivero
Copy link
Contributor

j-rivero commented Aug 3, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants