[ANNOUNCE]: clang compiling ports, take 2

Chuck Swiger cswiger at mac.com
Mon Jul 25 23:59:56 UTC 2011


On Jul 25, 2011, at 4:31 PM, Raphael Kubo da Costa wrote:
>> http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/
> qt4-webkit seems to trigger a clang bug, but the description for clang
> bug only says "See (TBA) for further information". Is there anything we
> (as in kde@) should do?



Clang is failing with an internal assertion failure, seems like it's not parsing something correctly in RenderSlider.cpp, and hitting EOF:

Assertion failed: (FieldNo < FieldCount && "Invalid Field No"), function getFieldOffset, file /a/portbuild/amd64/9-exp/builds/20110616185105/src/lib/clang/libclangast/../../../contrib/llvm/tools/clang/include/clang/AST/RecordLayout.h, line 121.
Stack dump:
0.	Program arguments: /usr/bin/clang++ -cc1 -triple x86_64-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name RenderSlider.cpp -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file .obj/release-shared/RenderSlider.o -resource-dir /usr/bin/../lib/clang/3.0 -D QT_SHARED -D BUILDING_QT__=1 -D WTF_USE_ACCELERATED_COMPOSITING -D NDEBUG -D QT_NO_CAST_TO_ASCII -D QT_ASCII_CAST_WARNINGS -D QT3_SUPPORT -D QT_MOC_COMPAT -D QT_USE_FAST_OPERATOR_PLUS -D QT_USE_FAST_CONCATENATION -D HAVE_PTHREAD_NP_H -D BUILD_WEBKIT -D BUILDING_QT__ -D BUILDING_JavaScriptCore -D BUILDING_WTF -D ENABLE_VIDEO=1 -D ENABLE_JAVASCRIPT_DEBUGGER=1 -D ENABLE_DATABASE=1 -D ENABLE_EVENTSOURCE=1 -D ENABLE_OFFLINE_WEB_APPLICATIONS=1 -D ENABLE_DOM_STORAGE=1 -D ENABLE_ICONDATABASE=1 -D ENABLE_CHANNEL_MESSAGING=1 -D ENABLE_ORIENTATION_EVENTS=0 -D ENABLE_SQLITE=1 -D ENABLE_DASHBOARD_SUPPORT=0 -D ENABLE_FILTERS=1 -D ENABLE_XPATH=1 -D ENABLE_WCSS=0 -D ENABLE_WML=0 -D ENABLE_SHARED_WORKERS=1 -D ENABLE_WORKERS=1 -D ENABLE_XHTMLMP=0 -D ENABLE_DATAGRID=0 -D ENABLE_RUBY=1 -D ENABLE_SANDBOX=1 -D ENABLE_PROGRESS_TAG=1 -D ENABLE_BLOB_SLICE=0 -D ENABLE_3D_RENDERING=1 -D ENABLE_SVG=1 -D ENABLE_SVG_FONTS=1 -D ENABLE_SVG_FOREIGN_OBJECT=1 -D ENABLE_SVG_ANIMATION=1 -D ENABLE_SVG_AS_IMAGE=1 -D ENABLE_SVG_USE=1 -D ENABLE_DATALIST=1 -D ENABLE_TILED_BACKING_STORE=1 -D ENABLE_NETSCAPE_PLUGIN_API=1 -D ENABLE_WEB_SOCKETS=1 -D ENABLE_XSLT=0 -D ENABLE_QT_BEARER=1 -D ENABLE_TOUCH_EVENTS=1 -D XP_UNIX -D SQLITE_CORE -D SQLITE_OMIT_LOAD_EXTENSION -D SQLITE_OMIT_COMPLETE -D QT_NO_DEBUG -D QT_GUI_LIB -D QT_NETWORK_LIB -D QT_CORE_LIB -D QT_HAVE_AVX -D _LARGEFILE64_SOURCE -D _LARGEFILE_SOURCE -I ../../../../include/Qt -I ../../../../include -I /usr/local/include/freetype2 -I /usr/local/share/qt4/mkspecs/freebsd-clang -I . -I ../../../../include/QtCore -I ../../../../include/QtNetwork -I ../../../../include/QtGui -I ../../../../include -I bridge/qt -I page/qt -I platform/graphics/qt -I platform/network/qt -I platform/qt -I ../WebKit/qt/Api -I ../WebKit/qt/WebCoreSupport -I . -I accessibility -I bindings/js -I bridge -I bridge/c -I bridge/jsc -I css -I dom -I dom/default -I editing -I history -I html -I html/canvas -I inspector -I loader -I loader/appcache -I loader/archive -I loader/icon -I notifications -I page -I page/animation -I platform -I platform/animation -I platform/graphics -I platform/graphics/filters -I platform/graphics/transforms -I platform/image-decoders -I platform/mock -I platform/network -I platform/sql -I platform/text -I plugins -I rendering -I rendering/style -I storage -I svg -I svg/animation -I svg/graphics -I svg/graphics/filters -I websockets -I wml -I workers -I xml -I generated -I ../JavaScriptCore -I ../../webkit -I ../JavaScriptCore/assembler -I ../JavaScriptCore/bytecode -I ../JavaScriptCore/bytecompiler -I ../JavaScriptCore/debugger -I ../JavaScriptCore/interpreter -I ../JavaScriptCore/jit -I ../JavaScriptCore/parser -I ../JavaScriptCore/pcre -I ../JavaScriptCore/profiler -I ../JavaScriptCore/runtime -I ../JavaScriptCore/wtf -I ../JavaScriptCore/wtf/symbian -I ../JavaScriptCore/wtf/unicode -I ../JavaScriptCore/yarr -I ../JavaScriptCore/API -I ../JavaScriptCore/ForwardingHeaders -I ../JavaScriptCore/generated -I ../include/QtWebKit -I ../../../../include/QtWebKit -I .rcc/release-shared -I ../../sqlite -I ../../../../include/phonon -I /usr/local/include -I .moc/release-shared -I /usr/local/include -O2 -Wall -W -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o .obj/release-shared/RenderSlider.o -x c++ rendering/RenderSlider.cpp 
1.	<eof> parser at end of file
2.	rendering/RenderSlider.cpp:43:11: LLVM IR generation of declaration 'WebCore'
3.	rendering/RenderSlider.cpp:81:26: Generating code for declaration 'WebCore::SliderThumbElement::defaultEventHandler'
4.	rendering/RenderSlider.cpp:82:1: LLVM IR generation of compound statement ('{}')
In file included from rendering/RenderTable.cpp:27:
In file included from rendering/RenderTable.h:28:
clang++: error: unable to execute command: Abort trap: 6
clang++: error: clang frontend command failed due to signal 2 (use -v to see invocation)
*** Error code 254

I don't see any potentially related bugs in llvm.org's bugtracker, so this might be a new one.  :-)


More information about the freebsd-ports mailing list