On Thu, 5 Mar 2020 20:38:07 -0700
Orion Poplawski <orion(a)nwra.com> wrote:
> On 3/4/20 10:09 PM, Orion Poplawski wrote:
> > Test building the latest gdl, I get the following errors only on
> > armv7hl:
> >
> > /usr/bin/ld: CMakeFiles/gdl.dir/basic_op.cpp.o:(.rodata+0x30):
> > multiple definition of `typeinfo name for Data_<SpDByte>';
> > CMakeFiles/gdl.dir/datatypes.cpp.o:(.rodata+0x50): first defined
> > here /usr/bin/ld: CMakeFiles/gdl.dir/basic_op.cpp.o:
> > (.data.rel.ro+0x0): multiple definition of `typeinfo for
> > Data_<SpDByte>'; CMakeFiles/gdl.dir/datatypes.cpp.o:
> > (.data.rel.ro+0xc): first defined here
> >
> > Full log:
> >
https://kojipkgs.fedoraproject.org//work/tasks/5149/42205149/build.log
> >
> > Anything immediately suspicious here? Seems odd to have two
> > definitions in different segments of the same object file.
>
> This appears to be related to C++ template instantiation. What I've
> yet to figure out is whether or not this is truly a problem in the
> code or an issue with the arm gcc/binutils tooling. Any help would
> be greatly appreciated.
I think I have just met the same problem when building codeblocks -
https://koji.fedoraproject.org/koji/taskinfo?taskID=42870235
/usr/bin/ld: .libs/cbkeyConfigPanel.o:(.rodata+0x14): multiple
definition of `typeinfo name for cbKeyBinder'; .libs/cbkeybinder.o:
(.rodata+0x0): first defined
here /usr/bin/ld: .libs/cbkeyConfigPanel.o:(.data.rel.ro+0xc):
multiple definition of `typeinfo for
cbKeyBinder'; .libs/cbkeybinder.o:(.data.rel.ro+0x0): first defined
here