[Development] Error "invokes deleted constructor" while building Qt5 with clang and libc++

Francisco Lopes da Silva francisco.mailing.lists at oblita.com
Mon Dec 3 03:41:38 CET 2012


I'm trying to build Qt5 on my environment but I'm stumbling at an error I'm
having a hardtime dealing with.
I use OS X Mountain Lion, but I don't use the default Xcode environment, I
compile both clang and libc++
from sources.

clang --version

clang version 3.3 (trunk 168290)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

at /usr/local/src/llvm :

*svn log --limit 1*
------------------------------------------------------------------------
r168290 | gribozavr | 2012-11-18 16:42:18 -0200 (Dom, 18 Nov 2012) | 2 lines

SystemLibrary.rst: remove reference to a bug that was closed long time ago

------------------------------------------------------------------------

at /usr/local/src/llvm/tools/clang :

*svn log --limit 1*
------------------------------------------------------------------------
r168278 | chapuni | 2012-11-18 00:34:33 -0200 (Dom, 18 Nov 2012) | 1 line

clang/test/Sema/warn-documentation.cpp: Try to fix up the testcase in
r168277.
------------------------------------------------------------------------

at /usr/local/src/libcxx :

*svn log --limit 1*
------------------------------------------------------------------------
r168209 | hhinnant | 2012-11-16 20:17:23 -0200 (Sex, 16 Nov 2012) | 2 lines

istreambuf_iterator increment should call sbumpc instead of snextc.  Patch
by Kimball Thurston.  This fixes http://llvm.org/bugs/show_bug.cgi?id=14358.
------------------------------------------------------------------------

clang and libc++ are installed to /usr/local which has priority over /usr.

Qt5 is at:

*git log -1*
commit 039f8c85559abaf1c59fdbcf098a5391eb2c0193
Author: Oswald Buddenhagen <oswald.buddenhagen at digia.com>
Date:   Mon Nov 19 14:17:50 2012 +0100

    remove special handling of qtwebkit

    the svn mirror is now CI-controlled on gerrit and mirrored to gitorious
    like any other qt module.

    Change-Id: I05ead0a4aaa4fc5348a3e3d39d9ee7db734580f4
    Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen at digia.com>
    Reviewed-by: Simon Hausmann <simon.hausmann at digia.com>
    Reviewed-by: Samuli Piippo <samuli.piippo at digia.com>
    Reviewed-by: Simo Fält <simo.falt at digia.com>

I'm building Qt5 out of the source tree with:

../../qt5/*configure* -platform macx-clang-libc++ -prefix /usr/local
-opensource \
-confirm-license -release -nomake examples -nomake tests

I'm getting the following error after some time building:

http://pastebin.com/5SPshdv2

I've tried to reduce the elements involved in the following sample:

http://ideone.com/MuuYmS

The problem is that, *this sample does compiles fine *(with -std=c++11
-stdlib=libc++). I don't get why the
same codebase is not compiling while building qt.

Regards,
Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121203/16683c46/attachment.html>


More information about the Development mailing list