Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions easybuild/easyconfigs/q/Qt5/Qt5-5.12.3-GCCcore-8.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
easyblock = 'EB_Qt'

name = 'Qt5'
version = '5.12.3'

homepage = 'http://qt.io/'
description = "Qt is a comprehensive cross-platform C++ application framework."

toolchain = {'name': 'GCCcore', 'version': '8.2.0'}
# disabling use of -ftree-vectorize is required to avoid compilation failures on some systems (e.g. Intel Skylake X)
toolchainopts = {'vectorize': False}

source_urls = [
'http://download.qt.io/official_releases/qt/%(version_major_minor)s/%(version)s/single/',
'http://download.qt.io/archive/qt/%(version_major_minor)s/%(version)s/single/'
]
sources = ['qt-everywhere-src-%(version)s.tar.xz']
patches = ['Qt5-%(version)s_fix-avx2.patch']
checksums = [
'6462ac74c00ff466487d8ef8d0922971aa5b1d5b33c0753308ec9d57711f5a42', # qt-everywhere-src-5.12.3.tar.xz
'6f46005f056bf9e6ff3e5d012a874d18ee03b33e685941f2979c970be91a9dbc', # Qt5-5.12.3_fix-avx2.patch
]

builddependencies = [
('binutils', '2.31.1'),
('pkg-config', '0.29.2'),
('Bison', '3.0.5'),
('flex', '2.6.4'),
('Python', '2.7.15'),
]

dependencies = [
('GLib', '2.60.1'),
('libpng', '1.6.36'),
('X11', '20190311'),
('libGLU', '9.0.0'),
('NSS', '3.42.1'),
('DBus', '1.13.8'),
('gperf', '3.1'),
]

# qtgamepad needs recent kernel/libevdev (fails on RHEL 6.x)
configopts = '-skip qtgamepad'

# make sure QtWebEngine component is being built & installed
check_qtwebengine = True

moduleclass = 'devel'
14 changes: 14 additions & 0 deletions easybuild/easyconfigs/q/Qt5/Qt5-5.12.3_fix-avx2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build qdrawhelper_avx2.cpp with -mavx2 rather than -march=core-avx2 to avoid compilation failures on non-AVX2 systems
cfr. https://bugreports.qt.io/browse/QTBUG-71564 (and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69471)
author: Kenneth Hoste (HPC-UGent)
--- qt-everywhere-src-5.12.3.orig/qtbase/mkspecs/common/gcc-base.conf 2019-04-09 11:51:26.000000000 +0200
+++ qt-everywhere-src-5.12.3/qtbase/mkspecs/common/gcc-base.conf 2019-05-01 19:21:50.683489624 +0200
@@ -109,7 +109,7 @@
QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2

# -march=haswell is supported as of GCC 4.9 and Clang 3.6
-QMAKE_CFLAGS_ARCH_HASWELL = -march=core-avx2
+QMAKE_CFLAGS_ARCH_HASWELL = -mavx2

# Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
QMAKE_AR_LTCG = gcc-ar cqs