[QBS] Linking fails with Clang and libc++ on Linux

Petroules Jake Jake.Petroules at theqtcompany.com
Wed Mar 2 06:05:36 CET 2016


You need to install the libc++abi1 package.

On Mar 1, 2016, at 11:34 AM, Thomas Epting <thomas.epting.stryker at gmail.com<mailto:thomas.epting.stryker at gmail.com>> wrote:

When trying to build a project (e.g. QtCreator) with Clang 3.7 and libc++, I get the linker message

        /usr/bin/ld: cannot find -lc++abi

I found some code in gcc.js which explicitly request the library if targetOS is Linux

        if (product.moduleProperty("qbs", "targetOS").contains("linux") && stdlib === "libc++")
            args.push("-lc++abi");

But libc++abi seems not to be available for Linux (at least not for Ubuntu 15.10). The documentation in http://libcxxabi.llvm.org/ leads to the assumption that it's only available on Apple systems. (And in fact, on my Mac there is such a library.)

Any hints?

Thanks,
Thomas

_______________________________________________
QBS mailing list
QBS at qt-project.org<mailto:QBS at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/qbs

--
Jake Petroules - jake.petroules at theqtcompany.com<mailto:jake.petroules at theqtcompany.com>
Consulting Services Engineer - The Qt Company

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160302/de59dd1a/attachment.html>


More information about the Qbs mailing list