[LLVMbugs] [Bug 18098] New: Error compiling QT4 based application

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 30 06:11:21 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18098

            Bug ID: 18098
           Summary: Error compiling QT4 based application
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: se at freebsd.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11632
  --> http://llvm.org/bugs/attachment.cgi?id=11632&action=edit
Compiler invocation for generated GUI Component

The following compile messages are printed while trying to build DVBCUT
obtained from https://github.com/nextghost/dvbcut-qt4 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 http://llvm.org/bugs/
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:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131130/f694f6ba/attachment.html>


More information about the llvm-bugs mailing list