<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Can't build QT5 with clang"
   href="http://llvm.org/bugs/show_bug.cgi?id=18936">18936</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't build QT5 with clang
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Makefiles
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ya.maxis11@yandex.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Can't build qt5 (qtdeclarative) with clang. Error:
make[3]: Вход в каталог `/home/maxis11/qt5/qtdeclarative/src/quick'
clang++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11
-fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV
-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES
-DQT_BUILD_QUICK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER
-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000
-DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_QML_LIB
-DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-I/home/maxis11/qt5/qtbase/mkspecs/linux-clang -I.
-I/home/maxis11/qt5/qtbase/include -I/home/maxis11/qt5/qtbase/include/QtQuick
-I/home/maxis11/qt5/qtbase/include/QtQuick/5.3.0
-I/home/maxis11/qt5/qtbase/include/QtQuick/5.3.0/QtQuick -I.
-I/home/maxis11/qt5/qtbase/include/QtQml/5.3.0
-I/home/maxis11/qt5/qtbase/include/QtQml/5.3.0/QtQml
-I/home/maxis11/qt5/qtbase/include/QtQml
-I/home/maxis11/qt5/qtbase/include/QtGui/5.3.0
-I/home/maxis11/qt5/qtbase/include/QtGui/5.3.0/QtGui
-I/home/maxis11/qt5/qtbase/include/QtNetwork
-I/home/maxis11/qt5/qtbase/include/QtGui
-I/home/maxis11/qt5/qtbase/include/QtCore/5.3.0
-I/home/maxis11/qt5/qtbase/include/QtCore/5.3.0/QtCore
-I/home/maxis11/qt5/qtbase/include/QtCore -I.moc -o .obj/qquicktransition.o
util/qquicktransition.cpp
clang: /home/maxis11/llvm/tools/clang/lib/CodeGen/CodeGenTypes.cpp:699: const
clang::CodeGen::CGRecordLayout
&clang::CodeGen::CodeGenTypes::getCGRecordLayout(const clang::RecordDecl *):
Assertion `Layout && "Unable to find record layout information for type"'
failed.
0  libLLVM-3.5svn.so 0x00002b717eb24d25 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  libLLVM-3.5svn.so 0x00002b717eb25473
2  libpthread.so.0   0x00002b717fb26330
3  libc.so.6         0x00002b7180bc0f39 gsignal + 57
4  libc.so.6         0x00002b7180bc4348 abort + 328
5  libc.so.6         0x00002b7180bb9df6
6  libc.so.6         0x00002b7180bb9ea2
7  clang             0x000000000079f0b4
8  clang             0x000000000075183c
9  clang             0x000000000074fe03
clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*,
llvm::StructType*) + 291
10 clang             0x000000000079e813
clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) +
867
11 clang             0x000000000079cb98
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 152
12 clang             0x000000000079cec8
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 968
13 clang             0x000000000079ca90
clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType) + 16
14 clang             0x000000000075654d
15 clang             0x0000000000750efa
16 clang             0x000000000074ff85
clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*,
llvm::StructType*) + 677
17 clang             0x000000000079e813
clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) +
867
18 clang             0x000000000079cb98
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 152
19 clang             0x000000000079cec8
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 968
20 clang             0x00000000007b7c21
21 clang             0x00000000007ba572
22 clang             0x00000000007daa88
clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo(clang::CanQual<clang::Type>,
bool, llvm::ArrayRef<clang::CanQual<clang::Type> >,
clang::FunctionType::ExtInfo, clang::CodeGen::RequiredArgs) + 392
23 clang             0x00000000007eb269
24 clang             0x00000000007db028
clang::CodeGen::CodeGenTypes::arrangeCXXMethodType(clang::CXXRecordDecl const*,
clang::FunctionProtoType const*) + 376
25 clang             0x0000000000777a3a
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 74
26 clang             0x00000000007750a6
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 310
27 clang             0x0000000000776d2c
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 780
28 clang             0x0000000000779be2
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1266
29 clang             0x00000000007271ef
30 clang             0x0000000000726617
31 clang             0x00000000008b9d73 clang::ParseAST(clang::Sema&, bool,
bool) + 435
32 clang             0x000000000072574e clang::CodeGenAction::ExecuteAction() +
142
33 clang             0x000000000057d150 clang::FrontendAction::Execute() + 112
34 clang             0x0000000000558d9d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
35 clang             0x000000000053f99f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2959
36 clang             0x0000000000537798 cc1_main(char const**, char const**,
char const*, void*) + 696
37 clang             0x000000000053c4fe main + 3454
38 libc.so.6         0x00002b7180babed5 __libc_start_main + 245
39 clang             0x0000000000537411
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
qquicktransition.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.24 -g
-coverage-file
/home/maxis11/qt5/qtdeclarative/src/quick/.obj/qquicktransition.o -resource-dir
/usr/local/bin/../lib/clang/3.5 -D _REENTRANT -D QT_NO_MTDEV -D
QT_NO_URL_CAST_FROM_STRING -D QT_NO_INTEGER_EVENT_COORDINATES -D
QT_BUILD_QUICK_LIB -D QT_BUILDING_QT -D QT_NO_CAST_TO_ASCII -D
QT_ASCII_CAST_WARNINGS -D QT_MOC_COMPAT -D QT_USE_QSTRINGBUILDER -D
QT_DEPRECATED_WARNINGS -D QT_DISABLE_DEPRECATED_BEFORE=0x050000 -D
QT_NO_EXCEPTIONS -D _LARGEFILE64_SOURCE -D _LARGEFILE_SOURCE -D QT_QML_LIB -D
QT_NETWORK_LIB -D QT_GUI_LIB -D QT_CORE_LIB -D QT_NETWORK_LIB -D QT_CORE_LIB -I
/home/maxis11/qt5/qtbase/mkspecs/linux-clang -I . -I
/home/maxis11/qt5/qtbase/include -I /home/maxis11/qt5/qtbase/include/QtQuick -I
/home/maxis11/qt5/qtbase/include/QtQuick/5.3.0 -I
/home/maxis11/qt5/qtbase/include/QtQuick/5.3.0/QtQuick -I . -I
/home/maxis11/qt5/qtbase/include/QtQml/5.3.0 -I
/home/maxis11/qt5/qtbase/include/QtQml/5.3.0/QtQml -I
/home/maxis11/qt5/qtbase/include/QtQml -I
/home/maxis11/qt5/qtbase/include/QtGui/5.3.0 -I
/home/maxis11/qt5/qtbase/include/QtGui/5.3.0/QtGui -I
/home/maxis11/qt5/qtbase/include/QtNetwork -I
/home/maxis11/qt5/qtbase/include/QtGui -I
/home/maxis11/qt5/qtbase/include/QtCore/5.3.0 -I
/home/maxis11/qt5/qtbase/include/QtCore/5.3.0/QtCore -I
/home/maxis11/qt5/qtbase/include/QtCore -I .moc -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.5/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -W -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/maxis11/qt5/qtdeclarative/src/quick -ferror-limit
19 -fmessage-length 80 -fvisibility hidden -fvisibility-inlines-hidden
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -o .obj/qquicktransition.o -x c++ util/qquicktransition.cpp 
1.    util/qquicktransition.cpp:191:1: current parser token 'void'
2.    util/qquicktransition.cpp:176:31: LLVM IR generation of declaration
'QQuickTransitionPrivate::animationStateChanged'
3.    util/qquicktransition.cpp:176:31: Generating code for declaration
'QQuickTransitionPrivate::animationStateChanged'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (trunk 201942)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/qquicktransition-f1fa08.cpp
clang: note: diagnostic msg: /tmp/qquicktransition-f1fa08.sh
clang: note: diagnostic msg: 

********************

Configure flags: ./configure -platform linux-clang -developer-build -opensource
-confirm-license</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>