<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 --- - Error compiling QT4 based application"
   href="http://llvm.org/bugs/show_bug.cgi?id=18098">18098</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error compiling QT4 based application
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>se@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11632" name="attach_11632" title="Compiler invocation for generated GUI Component">attachment 11632</a> <a href="attachment.cgi?id=11632&action=edit" title="Compiler invocation for generated GUI Component">[details]</a></span>
Compiler invocation for generated GUI Component

The following compile messages are printed while trying to build DVBCUT
obtained from <a href="https://github.com/nextghost/dvbcut-qt4">https://github.com/nextghost/dvbcut-qt4</a> on FreeBSD 11-CURRENT
with the llvm-3.3 based Clang as included as base compiler in that version.

Compilation succeeds with -O0, but fails with -O1 or higher.

A similar problem is reported for moc_progresswindow.cpp. I attach the
diagnostic files from that compilation, too.

--- moc_progressstatusbar.o ---
Global is external, but doesn't have external or dllimport or weak linkage!
void (%class.progressstatusbar*, i8*, ...)*
@_ZThn16_N17progressstatusbar5printEPKcz
invalid linkage type for function declaration
void (%class.progressstatusbar*, i8*, ...)*
@_ZThn16_N17progressstatusbar5printEPKcz
Broken module found, compilation aborted!
Stack dump:
0.      Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.0
-emit-obj -disable-free -main-file-name moc_progressstatusbar.cpp
-mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -coverage-file
/usr/work/usr/svn/ports/head/multimedia/dvbcut/work/nextghost-dvbcut-qt4-81c31ed/src/moc_progressstatusbar.o
-resource-dir /usr/bin/../lib/clang/3.3 -D __STDC_CONSTANT_MACROS -D
__STDC_LIMIT_MACROS -D _FILE_OFFSET_BITS=64 -D HAVE_LIB_SWSCALE -D HAVE_LIB_AO
-D HAVE_LIB_MAD -D DVBCUT_DATADIR="/usr/local/share/dvbcut" -D _THREAD_SAFE -D
QT_NO_DEBUG -D QT_XML_LIB -D QT_GUI_LIB -D QT_CORE_LIB -D QT_SHARED -I
/usr/local/include -I /usr/local/include/libavcodec -I
/usr/local/include/libavformat -I /usr/local/include/libswscale -I
/usr/local/share/qt4/mkspecs/freebsd-clang -I . -I
/usr/local/include/qt4/QtCore -I /usr/local/include/qt4/QtGui -I
/usr/local/include/qt4/QtXml -I /usr/local/include/qt4 -I /usr/local/include -I
. -I . -I /usr/local/include/qt4 -I /usr/local/include -internal-isystem
/usr/include/c++/v1 -O2 -Wall -W -fdeprecated-macro -fdebug-compilation-dir
/usr/work/usr/svn/ports/head/multimedia/dvbcut/work/nextghost-dvbcut-qt4-81c31ed/src
-ferror-limit 19 -fmessage-length 0 -pthread -mstackrealign
-fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -backend-option -vectorize-loops -o
moc_progressstatusbar.o -x c++ moc_progressstatusbar.cpp
1.      <eof> parser at end of file
2.      Per-function optimization
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd11.0
Thread model: posix
c++: 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.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/moc_progressstatusbar-etkxxn.cpp
c++: note: diagnostic msg: /tmp/moc_progressstatusbar-etkxxn.sh
c++: note: diagnostic msg:</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>