Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1819154 - multiple definition of `typeinfo name for cbKeyBinder' between .rodata+0x14 and
Summary: multiple definition of `typeinfo name for cbKeyBinder' between .rodata+0x14 a...
Alias: None
Product: Fedora
Classification: Fedora
Component: codeblocks
Version: rawhide
Hardware: armv7hl
OS: Unspecified
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
Reported: 2020-03-31 10:33 UTC by Dan Horák
Modified: 2020-04-09 14:43 UTC (History)
13 users (show)

Fixed In Version: codeblocks-20.03-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-04-09 14:43:14 UTC
Type: Bug

Attachments (Terms of Use)
preprocessed source (638.43 KB, application/gzip)
2020-03-31 11:31 UTC, Dan Horák
no flags Details
assembler source (839.83 KB, application/gzip)
2020-03-31 11:32 UTC, Dan Horák
no flags Details
preprocessed source - cbkeyConfigPanel (634.72 KB, application/gzip)
2020-03-31 14:03 UTC, Dan Horák
no flags Details
assembler source - cbkeyConfigPanel (917.85 KB, application/gzip)
2020-03-31 14:03 UTC, Dan Horák
no flags Details

Description Dan Horák 2020-03-31 10:33:49 UTC
When building latest codeblocks I get a "multiple definition" error on armv7

libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/../../../crti.o /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/crtbeginS.o  .libs/cbkeybinder.o .libs/cbkeyConfigPanel.o .libs/cJSON.o .libs/clKeyboardBindingConfig.o .libs/clKeyboardManager.o .libs/configurationpanel.o .libs/json_node.o .libs/keybinder.o .libs/menuutils.o   ../../../sdk/.libs/ -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -ltinyxml -lsquirrel -lsqstdlib -lwx_gtk3u_aui-3.0 -lwx_gtk3u_propgrid-3.0 -lwx_gtk3u_richtext-3.0 -lwx_gtk3u_xrc-3.0 -lwx_gtk3u_webview-3.0 -lwx_gtk3u_html-3.0 -lwx_gtk3u_qa-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpthread -ldl -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10 -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/crtendS.o /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/../../../crtn.o -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -pthread   -pthread -Wl,-soname -Wl, -o .libs/
/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:( multiple definition of `typeinfo for cbKeyBinder'; .libs/cbkeybinder.o:( first defined here
collect2: error: ld returned 1 exit status

- first happened in rawhide and F-32, only on armv7
- also reported by Orion in gdl -
- reproduced in F-31 with gcc9 too
- doesn't happen with codeblocks-17.12, so it might be actually exposed by a code change

Preprocessed source and possibly additional info will be added later (local build in progress).

Version-Release number of selected component (if applicable):

Comment 1 Dan Horák 2020-03-31 11:31:20 UTC
Created attachment 1675053 [details]
preprocessed source

Comment 2 Dan Horák 2020-03-31 11:32:15 UTC
Created attachment 1675054 [details]
assembler source

Comment 3 Dan Horák 2020-03-31 11:33:04 UTC
The attached files were produced with

armv7hl-redhat-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -Winvalid-pch -fPIC -fexceptions -c cbkeybinder.cpp -save-temps  -fPIC -DPIC -o cbkeybinder.o

Comment 4 Jakub Jelinek 2020-03-31 13:45:38 UTC
I don't see such a problem, neither if I compile it myself using a cross-compiler nor looking at the assembler file you've provided.
In the latter I see
        .global _ZTS11cbKeyBinder
        .section        .rodata
        .align  2
        .type   _ZTS11cbKeyBinder, %object
        .size   _ZTS11cbKeyBinder, 14
        .ascii  "11cbKeyBinder\000"
and no other definition of _ZTS11cbKeyBinder

Comment 5 Jakub Jelinek 2020-03-31 13:47:06 UTC
Ah, sorry, the other definition is in cbkeyConfigPanel.o, can you please also attach cbkeyConfigPanel.ii and g++ command line used to compile that one?

Comment 6 Dan Horák 2020-03-31 14:02:11 UTC
Sure, the command line is

armv7hl-redhat-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/lib/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -Winvalid-pch -fPIC -fexceptions -c cbkeyConfigPanel.cpp -save-temps  -fPIC -DPIC -o cbkeyConfigPanel.o

Comment 7 Dan Horák 2020-03-31 14:03:06 UTC
Created attachment 1675075 [details]
preprocessed source - cbkeyConfigPanel

Comment 8 Dan Horák 2020-03-31 14:03:52 UTC
Created attachment 1675076 [details]
assembler source - cbkeyConfigPanel

Comment 9 Jakub Jelinek 2020-03-31 14:14:34 UTC
#pragma implementation "cbkeybinder.h"
is in both cbkeyConfigPanel.cpp and cbkeybinder.cpp
I think that is incorrect, for one header with #pragma interface there must be exactly one TU that has the #pragma implementation for it, which is where the virtual tables etc. will be emitted for it.

Comment 10 Dan Horák 2020-03-31 15:57:13 UTC
switching to codeblocks, resolved via and it will be fixes in a next build

Comment 11 Fedora Update System 2020-03-31 18:03:55 UTC
FEDORA-2020-87ee19359f has been submitted as an update to Fedora 32.

Comment 12 Fedora Update System 2020-04-01 02:15:21 UTC
FEDORA-2020-87ee19359f has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-87ee19359f`
You can provide feedback for this update here:

See also for more information on how to test updates.

Comment 13 Fedora Update System 2020-04-09 14:43:14 UTC
FEDORA-2020-87ee19359f has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.