[cfe-dev] GCC vs clang -- cxx11 ABI issue?
Joerg Sonnenberger via cfe-dev
cfe-dev at lists.llvm.org
Thu Jul 7 08:22:01 PDT 2016
On Thu, Jul 07, 2016 at 09:13:28AM +0000, Paweł Bylica via cfe-dev wrote:
> Hi,
>
> I was mixing libraries built with clang and GCC before, but recently I was
> be an issue:
>
> undefined reference to 'llvm::sys::getProcessTriple[abi:cxx11]()'
>
> when building with GCC and linking in the LLVM libraries built with clang.
>
> GCC / libstdc++: 5.3.1
> clang: 3.8.0
>
> Because the getProcessTriple() returns std::string I suspect that GCC
> expects the new string ABI to be used here, but looks like clang produced
> the function with the old version.
>
> Is this a bug?
Yes, it is a bug in GCC that they broke the Itanium ABI by introducing a
custom mangling. Of course, they will tell you that it is a feature...
Joerg
More information about the cfe-dev
mailing list