Folks, this is really getting annoying. There were three ports that I could not install, all because of that same bloody "truncated ELF file" error. I got around it by doing
pkg install
on qt4-gui, sqlitebrowser and qt4-xmlpatterns. But now I am trying to build
devel/qscintilla2, and the
portmaster
command thinks that in order to do so, it must first build
www/webkit-qt4 on which it depends, and after 17 minutes of trying to build
www/webkit-qt4 (yes, it really does take that long, and this is a fast computer), the build fails with the same bloody "truncated ELF file" error:
Code:
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -I../../../../include/Qt -I../../../../include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -pthread -D_THREAD_SAFE -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -I/usr/local/include/freetype2 -fPIC -DQT_SHARED -DBUILDING_WEBKIT -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_QUOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABLE_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENABLE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATION_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_DATALIST=1 -DENABLE_TILED_BACKING_STORE=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOCKETS=1 -DWTF_USE_QT_BEARER=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIDEO=1 -DWTF_USE_GSTREAMER=1 -DSQLITE_CORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DXP_UNIX -DENABLE_NETSCAPE_PLUGIN_METADATA_CACHE=1 -DENABLE_GLIB_SUPPORT=1 -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_MAKEDLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-clang -I. -I../../../../../../include/QtCore -I../../../../../../include/QtNetwork -I../../../../../../include/QtGui -I../../../../../../include -I../../WebCore/bridge/qt -I../../WebCore/page/qt -I../../WebCore/platform/graphics/qt -I../../WebCore/platform/network/qt -I../../WebCore/platform/qt -IApi -IWebCoreSupport -I../../WebCore -I../../WebCore/accessibility -I../../WebCore/bindings -I../../WebCore/bindings/generic -I../../WebCore/bridge -I../../WebCore/css -I../../WebCore/dom -I../../WebCore/dom/default -I../../WebCore/editing -I../../WebCore/fileapi -I../../WebCore/history -I../../WebCore/html -I../../WebCore/html/canvas -I../../WebCore/html/parser -I../../WebCore/html/shadow -I../../WebCore/inspector -I../../WebCore/loader -I../../WebCore/loader/appcache -I../../WebCore/loader/archive -I../../WebCore/loader/cache -I../../WebCore/loader/icon -I../../WebCore/mathml -I../../WebCore/notifications -I../../WebCore/page -I../../WebCore/page/animation -I../../WebCore/platform -I../../WebCore/platform/animation -I../../WebCore/platform/audio -I../../WebCore/platform/graphics -I../../WebCore/platform/graphics/filters -I../../WebCore/platform/graphics/filters/arm -I../../WebCore/platform/graphics/texmap -I../../WebCore/platform/graphics/transforms -I../../WebCore/platform/image-decoders -I../../WebCore/platform/leveldb -I../../WebCore/platform/mock -I../../WebCore/platform/network -I../../WebCore/platform/sql -I../../WebCore/platform/text -I../../WebCore/platform/text/transcoder -I../../WebCore/plugins -I../../WebCore/rendering -I../../WebCore/rendering/mathml -I../../WebCore/rendering/style -I../../WebCore/rendering/svg -I../../WebCore/storage -I../../WebCore/svg -I../../WebCore/svg/animation -I../../WebCore/svg/graphics -I../../WebCore/svg/graphics/filters -I../../WebCore/svg/properties -I../../WebCore/testing -I../../WebCore/webaudio -I../../WebCore/websockets -I/usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/wml -I../../WebCore/workers -I../../WebCore/xml -I../../WebCore/bridge/jsc -I../../WebCore/bindings/js -I/usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/bindings/js/specialization -I../../WebCore/bridge/c -I../../WebCore/testing/js -I../../WebCore/generated -I../../JavaScriptCore -I../../../Source -I../../ThirdParty -I../../JavaScriptCore/assembler -I../../JavaScriptCore/bytecode -I../../JavaScriptCore/bytecompiler -I../../JavaScriptCore/heap -I../../JavaScriptCore/dfg -I../../JavaScriptCore/debugger -I../../JavaScriptCore/interpreter -I../../JavaScriptCore/jit -I../../JavaScriptCore/parser -I../../JavaScriptCore/profiler -I../../JavaScriptCore/runtime -I../../JavaScriptCore/wtf -I../../JavaScriptCore/wtf/gobject -I/usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -I../../JavaScriptCore/wtf/unicode -I../../JavaScriptCore/yarr -I../../JavaScriptCore/API -I../../JavaScriptCore/ForwardingHeaders -I../../JavaScriptCore/generated -I../../../Source -I../../../include -I/include/QtWebKit -I/include -I../../../../sqlite -I../../WebCore/platform/graphics/gstreamer -I../../../../../../include/QtWebKit -I.rcc/release-shared -I.moc/release-shared -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gstreamer-0.10 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/qt4 -I/usr/local/include -o .obj/release-shared/moc_FullScreenVideoQt.o .moc/release-shared/moc_FullScreenVideoQt.cpp
--- .obj/release-shared/NotificationPresenterClientQt.o ---
In file included from WebCoreSupport/NotificationPresenterClientQt.cpp:33:
In file included from WebCoreSupport/NotificationPresenterClientQt.h:35:
In file included from ../../WebCore/notifications/Notification.h:36:
In file included from ../../WebCore/dom/Event.h:27:
In file included from ../../WebCore/dom/Clipboard.h:27:
In file included from ../../WebCore/loader/cache/CachedResourceHandle.h:29:
In file included from ../../WebCore/loader/cache/CachedResource.h:28:
In file included from ../../WebCore/platform/text/PlatformString.h:28:
In file included from ../../JavaScriptCore/wtf/text/WTFString.h:28:
In file included from ../../JavaScriptCore/wtf/text/StringImpl.h:28:
In file included from ../../JavaScriptCore/wtf/CrossThreadRefCounted.h:36:
../../JavaScriptCore/wtf/RefCounted.h:141:13: warning: delete called on 'WebCore::Frame' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
delete static_cast<T*>(this);
^
../../JavaScriptCore/wtf/PassRefPtr.h:59:18: note: in instantiation of member function 'WTF::RefCounted<WebCore::Frame>::deref' requested here
ptr->deref();
^
../../JavaScriptCore/wtf/RefPtr.h:58:35: note: in instantiation of function template specialization 'WTF::derefIfNotNull<WebCore::Frame>' requested here
ALWAYS_INLINE ~RefPtr() { derefIfNotNull(m_ptr); }
^
../../WebCore/page/FrameTree.h:32:9: note: in instantiation of member function 'WTF::RefPtr<WebCore::Frame>::~RefPtr' requested here
FrameTree(Frame* thisFrame, Frame* parentFrame)
^
--- .rcc/release-shared/qrc_WebCore.cpp ---
/usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/bin/rcc -name WebCore ../../WebCore/WebCore.qrc -o .rcc/release-shared/qrc_WebCore.cpp
elf_load_section: truncated ELF file
Abort trap
*** [.rcc/release-shared/qrc_WebCore.cpp] Error code 134
make[3]: stopped in /usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit/qt
--- .obj/release-shared/NotificationPresenterClientQt.o ---
3 warnings generated.
1 error
make[3]: stopped in /usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit/qt
*** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error code 2
make[2]: stopped in /usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source
1 error
make[2]: stopped in /usr/ports/www/webkit-qt4/work/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/www/webkit-qt4
*** Error code 1
Stop.
make: stopped in /usr/ports/www/webkit-qt4
===>>> make build failed for www/webkit-qt4
===>>> Aborting update
===>>> Update for www/webkit-qt4 failed
===>>> Aborting update
===>>> Update for devel/qt4-designer failed
===>>> Aborting update
===>>> Update for devel/qscintilla2 failed
===>>> Aborting update
Only this time, when I try to
pkg install webkit-qt4
the
pkg
command chokes:
Code:
[root@ip-172-31-31-26 /usr/ports]# pkg install webkit-qt4
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to install matching 'webkit-qt4' have been found in the repositories
[root@ip-172-31-31-26 /usr/ports]#
So instead, I did a
pkg install
on
qt4-webkit, and that worked. Don't ask me how I knew to try
qt4-webkit instead of
webkit-qt4 because I don't know how I knew, but I tried it, and it worked.
And then, if you are still with me, I tried once more to build
devel/qscintilla2, and 2 minutes later, I got the same bloody "elf_load_section: truncated ELF file" fatal error while trying to build
devel/qt4-designer:
Code:
--- .obj/release-shared/moc_qdesigner_formwindowmanager_p.o ---
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pthread -D_THREAD_SAFE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQDESIGNER_SDK_LIBRARY -DQDESIGNER_EXTENSION_LIBRARY -DQDESIGNER_UILIB_LIBRARY -DQDESIGNER_SHARED_LIBRARY -DQT_DESIGNER -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-clang -I. -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/QtXml -I../../../../include/QtScript -I../../../../include -Iextension -Isdk -Iuilib -Ishared -I../../../shared/qtpropertybrowser -I../../../shared/deviceskin -I../../../../src/tools/rcc -I../../../shared/findwidget -I../../../shared/qtgradienteditor -I.moc/release-shared -I.uic/release-shared -I/usr/local/include/qt4 -I/usr/local/include -o .obj/release-shared/moc_qdesigner_formwindowmanager_p.o .moc/release-shared/moc_qdesigner_formwindowmanager_p.cpp
--- .obj/release-shared/moc_newformwidget_p.o ---
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pthread -D_THREAD_SAFE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQDESIGNER_SDK_LIBRARY -DQDESIGNER_EXTENSION_LIBRARY -DQDESIGNER_UILIB_LIBRARY -DQDESIGNER_SHARED_LIBRARY -DQT_DESIGNER -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-clang -I. -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/QtXml -I../../../../include/QtScript -I../../../../include -Iextension -Isdk -Iuilib -Ishared -I../../../shared/qtpropertybrowser -I../../../shared/deviceskin -I../../../../src/tools/rcc -I../../../shared/findwidget -I../../../shared/qtgradienteditor -I.moc/release-shared -I.uic/release-shared -I/usr/local/include/qt4 -I/usr/local/include -o .obj/release-shared/moc_newformwidget_p.o .moc/release-shared/moc_newformwidget_p.cpp
--- .rcc/release-shared/qrc_ClamshellPhone.cpp ---
/usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/bin/rcc -name ClamshellPhone ../../../shared/deviceskin/skins/ClamshellPhone.qrc -o .rcc/release-shared/qrc_ClamshellPhone.cpp
elf_load_section: truncated ELF file
Abort trap
*** [.rcc/release-shared/qrc_ClamshellPhone.cpp] Error code 134
make[4]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src/lib
1 error
make[4]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src/lib
*** [first] Error code 2
make[3]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src/lib
1 error
make[3]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src/lib
*** [sub-lib-make_default-ordered] Error code 2
make[2]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src
1 error
make[2]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src
*** [sub-src-make_default] Error code 2
make[1]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer
1 error
make[1]: stopped in /usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/qt4-designer
===>>> make build failed for devel/qt4-designer
===>>> Aborting update
===>>> Update for devel/qt4-designer failed
===>>> Aborting update
===>>> Update for devel/qscintilla2 failed
===>>> Aborting update
I had to do a
pkg install
on
qt4-designer, which succeeded. And then I was able to build
devel/qscintilla2. But what in bloody heck is going on? I don't want to have to install packages, which I cannot customize, I want to install ports, which I can. What in bloody heck does "elf_load_section: truncated ELF file" mean, and, more to the point, since I don't care what it means, under what circumstances is that fatal error emitted, and what do I do to bring about circumstances in which that fatal error will not be emitted?