Bug 23192

Summary: Mismatch between the program and library build versions blocks compiling codelite with clang instead of with gcc
Product: Mageia Reporter: Stig-Ørjan Smelror <smelror>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: marja11, thierry.vignaud
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: clang, wxgtk CVE:
Status comment:

Description Stig-Ørjan Smelror 2018-06-17 20:59:48 CEST
I've been compiling Codelite from git for a while now and have tried clang as well.
Everything works fine when it's compiled with gcc, but I get the message below when it's been compiled with clang.

I've set CC=clang, CXX=clang++ and CPP=clang++.
I run cmake without any options at all except that I use Ninja to build (-GNinja).
It build and installs fine.

$ codelite
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
[1]    5029 abort (core dumped)  codelite
Comment 1 Marja Van Waes 2018-06-18 17:13:40 CEST
Is there an urgent reason to compile codelit with clang instead of with gcc?

Summary: Mismatch between the program and library build versions detected => Mismatch between the program and library build versions detected when compiling codelite with clang instead of with gcc
Keywords: (none) => NEEDINFO
CC: (none) => marja11, thierry.vignaud

Comment 2 Stig-Ørjan Smelror 2018-06-18 18:23:20 CEST
(In reply to Marja Van Waes from comment #1)
> Is there an urgent reason to compile codelit with clang instead of with gcc?

Marja, no. I'm just testing.
As mentioned, gcc works fine while with clang I get the error mentioned.

Cheers,
Stig
Comment 3 Jani Välimaa 2018-06-18 18:28:56 CEST
gcc defines _GXX_ABI_VERSION as something else than clang.

Added patch from Fedora to wxgtk and wxgtk2.8 to not abort when ABI check fails.
Comment 4 Marja Van Waes 2018-06-18 20:46:28 CEST
(In reply to Jani Välimaa from comment #3)
> gcc defines _GXX_ABI_VERSION as something else than clang.
> 
> Added patch from Fedora to wxgtk and wxgtk2.8 to not abort when ABI check
> fails.

Thanks :-)

@ Stig

I assume you're fine with this bug being closed, now that the mismatch no longer blocks compilation.

Closing, feel free to reopen if I'm wrong.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
Summary: Mismatch between the program and library build versions detected when compiling codelite with clang instead of with gcc => Mismatch between the program and library build versions blocks compiling codelite with clang instead of with gcc