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

Thomas Epting thomas.epting.stryker at gmail.com
Tue Mar 1 20:34:56 CET 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160301/3ad26217/attachment.html>


More information about the Qbs mailing list