CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#1666 - qt4: cannot be build

Attached to Project: CRUX
Opened by Wawrzyniec Niewodniczanski (wawrzek) - Monday, 04 June 2018, 07:00 GMT
Last edited by Fredrik Rinnestam (frinnst) - Saturday, 09 June 2018, 12:37 GMT
Task Type Bug Report
Category ports → core/opt
Status Closed
Assigned To Predrag Ivanovic (pedja)
Alan Mizrahi (alancio)
Danny Rawlins (Romster)
Thomas Penteker (teK)
Fredrik Rinnestam (frinnst)
Operating System CRUX
Severity High
Priority Normal
Reported Version 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

qt4 build fails with following error message:
```
/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/bin/moc -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -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=0 -DENABLE_VIDEO=0 -DSQLITE_CORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DXP_UNIX -DENABLE_NETSCAPE_PLUGIN_METADATA_CACHE=1 -DBUILDING_JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -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 -DQT_SHARED -I../../../../../mkspecs/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include/QtNetwork -I../../../../../include/QtGui -I../../../../../include -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/scratch/qt4/src/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 -Ibridge/qt -Ipage/qt -Iplatform/graphics/qt -Iplatform/network/qt -Iplatform/qt -I../WebKit/qt/Api -I../WebKit/qt/WebCoreSupport -I. -Iaccessibility -Ibindings -Ibindings/generic -Ibridge -Icss -Idom -Idom/default -Iediting -Ifileapi -Ihistory -Ihtml -Ihtml/canvas -Ihtml/parser -Ihtml/shadow -Iinspector -Iloader -Iloader/appcache -Iloader/archive -Iloader/cache -Iloader/icon -Imathml -Inotifications -Ipage -Ipage/animation -Iplatform -Iplatform/animation -Iplatform/audio -Iplatform/graphics -Iplatform/graphics/filters -Iplatform/graphics/filters/arm -Iplatform/graphics/texmap -Iplatform/graphics/transforms -Iplatform/image-decoders -Iplatform/leveldb -Iplatform/mock -Iplatform/network -Iplatform/sql -Iplatform/text -Iplatform/text/transcoder -Iplugins -Irendering -Irendering/mathml -Irendering/style -Irendering/svg -Istorage -Isvg -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Isvg/properties -Itesting -Iwebaudio -Iwebsockets -I/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/wml -Iworkers -Ixml -Ibridge/jsc -Ibindings/js -I/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/bindings/js/specialization -Ibridge/c -Itesting/js -Igenerated -I../../Source -I../../include -I../include/QtWebKit -I../include -I../../../sqlite -I/usr/include -I.moc/release-static platform/graphics/qt/GraphicsLayerQt.cpp -o .moc/release-static/GraphicsLayerQt.moc
/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/JavaScriptCore/wtf/MathExtras.h:52: Parse error at "defined"
make[2]: *** [Makefile.WebKit:5184: .moc/release-static/GraphicsLayerQt.moc] Error 1
make[2]: Leaving directory '/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore'
make[1]: *** [Makefile.WebKit:79: sub-WebCore-make_default-ordered] Error 2
make[1]: Leaving directory '/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source'
make: *** [Makefile:747: sub-webkit-make_default-ordered] Error 2
=======> ERROR: Building '/usr/ports/opt/qt4/qt4#4.8.7-3.pkg.tar.gz' failed.
prt-get: error while install

-- Packages where install failed
qt4

```


Actual error message extracted:
```
(/scratch/qt4/src/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/JavaScriptCore/wtf/MathExtras.h:52: Parse error at "defined")
```
This task depends upon

Closed by  Fredrik Rinnestam (frinnst)
Saturday, 09 June 2018, 12:37 GMT
Reason for closing:  Fixed
Comment by Fredrik Rinnestam (frinnst) - Monday, 04 June 2018, 22:20 GMT
what depends on qt4? use qt5 instead
Comment by Wawrzyniec Niewodniczanski (wawrzek) - Monday, 04 June 2018, 22:34 GMT
I try to build keepassx2. Going to try with qt5.

BTW All ports in contrib I could find with qt4 (keepassx2 is missing, because I already changed it):

contrib/fbreader/Pkgfile:# Depends on: fribidi libunibreak qt4
contrib/hedgewars/Pkgfile:# Depends on: fpc libidn lua qt4 sdl_image sdl_mixer sdl_net sdl_ttf
contrib/keepassx/Pkgfile:# Depends on: qt4 xorg-libxtst
contrib/opera/Pkgfile:# Depends on: qt4
contrib/qjson/Pkgfile:# Depends on: qt4
contrib/scribus/Pkgfile:# Depends on: qt4, libart_lgpl, cairo, cups
contrib/skype/Pkgfile:# Depends on: apulse-32 qt4-32 xorg-libxscrnsaver-32 xorg-libxv-32
contrib/smplayer/Pkgfile:# Depends on: mplayer qt4
contrib/smtube/Pkgfile:# Depends on: qt4
contrib/vlc/Pkgfile:# Depends on: libmad ffmpeg-compat qt4 libdvdnav liba52 libgcrypt
Comment by Fredrik Rinnestam (frinnst) - Tuesday, 05 June 2018, 07:23 GMT
Thanks for the list. Will look into it. qt4 is orphaned and iirc unmaintained upstream. qt5 is more or less a drop-in replacement.
Comment by Wawrzyniec Niewodniczanski (wawrzek) - Tuesday, 05 June 2018, 08:01 GMT
keepassx2 fails with QT5, but it seems to have more dynamic fork keepassxc (https://keepassxc.org/project/). I'm going to try to build as a replacement


keepassx2 error:

CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1321 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:151 (find_package)

Comment by Wawrzyniec Niewodniczanski (wawrzek) - Tuesday, 05 June 2018, 21:56 GMT
Additionally xpdf and pinentry-qt4 in opt depends on qt4.

For xpdf Thierry Moreau (at crux-arm) found:

" The build opt/qt5 required a change from -reduce-relocations to -no-reduce-relocations."
Comment by Predrag Ivanovic (pedja) - Friday, 08 June 2018, 15:55 GMT
Please test the attached patch (if it builds and can apps be built against it).
Expect MISSING .footprint mismatches, I have a lot of extra crap on the system :)

Loading...