Gentoo libressl has a patch to build the latest QT.
https://data.gpo.zugaina.org/ennui/dev-qt/qtnetwork/files/qtnetwork-5.11.0_rc2-libressl.patch
https://github.com/gentoo/libressl/issues/241
Also, it seems like QT does not want to upstream libressl support.
CC @pullmoll
BTW I don't have hardware powerful enough to build or test qt5.
I can give it a try here. The Thread Ripper is still busy building gcc-8.2.0 packages but will certainly find some spare time to build qt5-5.11.1 as well.
Fails for alignment mismatch in the shipped ffmeg mojo interface for ffmpeg if I see that right:
[126/8095] CXX obj/media/ffmpeg/ffmpeg/ffmpeg_common.o
FAILED: obj/media/ffmpeg/ffmpeg/ffmpeg_common.o
/usr/lib/ccache/bin/g++ -MMD -MF obj/media/ffmpeg/ffmpeg/ffmpeg_common.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DMEDIA_IMPLEMENTATION -DUSE_PULSEAUDIO -DDLOPEN_PULSEAUDIO -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -Igen -I../../3rdparty/chromium -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/libyuv/include -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/skia/config -I../../3rdparty/chromium/skia/ext -I../../3rdparty/chromium/third_party/skia/include/c -I../../3rdparty/chromium/third_party/skia/include/config -I../../3rdparty/chromium/third_party/skia/include/core -I../../3rdparty/chromium/third_party/skia/include/effects -I../../3rdparty/chromium/third_party/skia/include/encode -I../../3rdparty/chromium/third_party/skia/include/gpu -I../../3rdparty/chromium/third_party/skia/include/images -I../../3rdparty/chromium/third_party/skia/include/lazy -I../../3rdparty/chromium/third_party/skia/include/pathops -I../../3rdparty/chromium/third_party/skia/include/pdf -I../../3rdparty/chromium/third_party/skia/include/pipe -I../../3rdparty/chromium/third_party/skia/include/ports -I../../3rdparty/chromium/third_party/skia/include/utils -I../../3rdparty/chromium/third_party/vulkan/include -I../../3rdparty/chromium/third_party/skia/src/gpu -I../../3rdparty/chromium/third_party/skia/src/sksl -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -std=gnu++14 -fno-delete-null-pointer-checks -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../3rdparty/chromium/media/ffmpeg/ffmpeg_common.cc -o obj/media/ffmpeg/ffmpeg/ffmpeg_common.o
../../3rdparty/chromium/media/ffmpeg/ffmpeg_common.cc:36:43: error: static assertion failed: DecoderBuffer padding size does not fit ffmpeg requirement
static_assert(DecoderBuffer::kPaddingSize >= AV_INPUT_BUFFER_PADDING_SIZE,
^
[127/8095] CXX obj/ui/gfx/range/mojo/mojo/range.mojom.o
In file included from gen/mojo/public/interfaces/bindings/interface_control_messages.mojom-shared.h:24,
from gen/mojo/public/interfaces/bindings/interface_control_messages.mojom.h:37,
from gen/ui/gfx/range/mojo/range.mojom.cc:29:
gen/mojo/public/interfaces/bindings/interface_control_messages.mojom-shared-internal.h:39:32: warning: alignment 1 of 'mojo::interface_control::internal::RunInput_Data' is less than 8 [-Wpacked-not-aligned]
class MOJO_CPP_BINDINGS_EXPORT RunInput_Data {
^~~~~~~~~~~~~
gen/mojo/public/interfaces/bindings/interface_control_messages.mojom-shared-internal.h:118:32: warning: alignment 1 of 'mojo::interface_control::internal::RunOutput_Data' is less than 8 [-Wpacked-not-aligned]
class MOJO_CPP_BINDINGS_EXPORT RunOutput_Data {
^~~~~~~~~~~~~~
gen/mojo/public/interfaces/bindings/interface_control_messages.mojom-shared-internal.h:195:32: warning: alignment 1 of 'mojo::interface_control::internal::RunOrClosePipeInput_Data' is less than 8 [-Wpacked-not-aligned]
class MOJO_CPP_BINDINGS_EXPORT RunOrClosePipeInput_Data {
^~~~~~~~~~~~~~~~~~~~~~~~
[128/8095] ACTION //services/viz/public/interfaces:interfaces_blink__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[129/8095] ACTION //services/viz/public/interfaces:interfaces_blink__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[130/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[131/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[132/8095] ACTION //services/viz/public/interfaces:interfaces_blink__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[133/8095] CXX obj/url/url/url_canon_query.o
[134/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[135/8095] ACTION //services/viz/public/interfaces:interfaces_blink__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[136/8095] CXX obj/url/url/url_canon_icu.o
[137/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[138/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[139/8095] ACTION //services/viz/public/interfaces:interfaces_blink__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[140/8095] CXX obj/url/url/url_parse_file.o
[141/8095] CXX obj/url/url/url_canon_stdstring.o
[142/8095] CXX obj/third_party/WebKit/public/offscreen_canvas_mojo_bindings_shared_cpp_sources/offscreen_canvas_surface.mojom-shared.o
In file included from gen/services/viz/public/interfaces/compositing/render_pass.mojom-shared-internal.h:16,
from gen/services/viz/public/interfaces/compositing/compositor_frame.mojom-shared-internal.h:16,
from gen/services/viz/public/interfaces/compositing/compositor_frame_sink.mojom-shared-internal.h:17,
from gen/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom-shared-internal.h:15,
from gen/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom-shared.h:24,
from gen/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom-shared.cc:10:
gen/services/viz/public/interfaces/compositing/quads.mojom-shared-internal.h:44:8: warning: alignment 1 of 'viz::mojom::internal::DrawQuadState_Data' is less than 8 [-Wpacked-not-aligned]
class DrawQuadState_Data {
^~~~~~~~~~~~~~~~~~
[143/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[144/8095] ACTION //services/ui/public/interfaces/ime:ime__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[145/8095] CXX obj/ui/events/mojo/interfaces_shared_cpp_sources/interfaces_shared_cpp_sources_jumbo_1.o
[146/8095] CXX obj/url/url/url_canon_relative.o
[147/8095] ACTION //ui/strings:ui_strings_grit(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[148/8095] CXX obj/services/viz/public/interfaces/interfaces_shared_cpp_sources/interfaces_shared_cpp_sources_jumbo_3.o
In file included from gen/services/viz/public/interfaces/compositing/render_pass.mojom-shared-internal.h:16,
from gen/services/viz/public/interfaces/compositing/render_pass.mojom-shared.h:24,
from ./gen/services/viz/public/interfaces/compositing/render_pass.mojom-shared.cc:10,
from gen/gen/services/viz/public/interfaces/interfaces_shared_cpp_sources_jumbo_3.cc:5:
gen/services/viz/public/interfaces/compositing/quads.mojom-shared-internal.h:44:8: warning: alignment 1 of 'viz::mojom::internal::DrawQuadState_Data' is less than 8 [-Wpacked-not-aligned]
class DrawQuadState_Data {
^~~~~~~~~~~~~~~~~~
[149/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[150/8095] CXX obj/services/viz/public/interfaces/interfaces_shared_cpp_sources/interfaces_shared_cpp_sources_jumbo_4.o
[151/8095] CXX obj/url/url/url_util.o
[152/8095] CXX obj/ui/platform_window/mojo/interfaces_shared_cpp_sources/text_input_state.mojom-shared.o
[153/8095] CXX obj/services/viz/public/interfaces/interfaces_shared_cpp_sources/interfaces_shared_cpp_sources_jumbo_2.o
In file included from gen/services/viz/public/interfaces/compositing/quads.mojom-shared.h:24,
from ./gen/services/viz/public/interfaces/compositing/quads.mojom-shared.cc:10,
from gen/gen/services/viz/public/interfaces/interfaces_shared_cpp_sources_jumbo_2.cc:11:
gen/services/viz/public/interfaces/compositing/quads.mojom-shared-internal.h:44:8: warning: alignment 1 of 'viz::mojom::internal::DrawQuadState_Data' is less than 8 [-Wpacked-not-aligned]
class DrawQuadState_Data {
^~~~~~~~~~~~~~~~~~
[154/8095] CXX obj/url/url/url_canon_pathurl.o
[155/8095] ACTION //services/viz/public/interfaces:interfaces__generator(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
[156/8095] CXX obj/ui/latency/mojo/interfaces_shared_cpp_sources/latency_info.mojom-shared.o
[157/8095] CXX obj/services/viz/public/interfaces/interfaces_shared_cpp_sources/interfaces_shared_cpp_sources_jumbo_1.o
In file included from gen/services/viz/public/interfaces/compositing/render_pass.mojom-shared-internal.h:16,
from gen/services/viz/public/interfaces/compositing/compositor_frame.mojom-shared-internal.h:16,
from gen/services/viz/public/interfaces/compositing/compositor_frame.mojom-shared.h:24,
from ./gen/services/viz/public/interfaces/compositing/compositor_frame.mojom-shared.cc:10,
from gen/gen/services/viz/public/interfaces/interfaces_shared_cpp_sources_jumbo_1.cc:7:
gen/services/viz/public/interfaces/compositing/quads.mojom-shared-internal.h:44:8: warning: alignment 1 of 'viz::mojom::internal::DrawQuadState_Data' is less than 8 [-Wpacked-not-aligned]
class DrawQuadState_Data {
^~~~~~~~~~~~~~~~~~
[158/8095] CXX obj/services/ui/public/interfaces/ime/ime_shared_cpp_sources/ime.mojom-shared.o
[159/8095] ACTION //ui/resources:webui_resources_grd_grit(/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/toolchain:target)
ninja: build stopped: subcommand failed.
make[4]: *** [Makefile.gn_run:1157: run_ninja] Error 1
make[4]: Leaving directory '/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/core'
make[3]: *** [Makefile:80: sub-gn_run-pro-make_first] Error 2
make[3]: Leaving directory '/builddir/qt-everywhere-src-5.11.1/qtwebengine/src/core'
make[2]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: Leaving directory '/builddir/qt-everywhere-src-5.11.1/qtwebengine/src'
make[1]: *** [Makefile:47: sub-src-make_first] Error 2
make[1]: Leaving directory '/builddir/qt-everywhere-src-5.11.1/qtwebengine'
make: *** [Makefile:1028: module-qtwebengine-make_first] Error 2
=> ERROR: qt5-5.11.1_1: do_build: 'make ${makejobs}' exited with 2
=> ERROR: in do_build() at srcpkgs/qt5/template:372
It seems this patch should solve the problem. Testing.
Successfully bult for (pkgs for testing are at https://repo.voidlinux.de/current/):
*-musl currently fails for the unknown typedef struct _libc_fpstate fpstate_t; in google chrome's breakpad :/ I think I'll disable that kind of debug output for *-musl.
Regarding musl, the Yocto project has pretty much everything you need to get musl working on QT5.
https://github.com/meta-qt5/meta-qt5/tree/master/recipes-qt/qt5/qtwebengine
Of course, take your time on this and don't stress yourself. There is no rush ;)
I only brought this up since GCC 8.2 seems to be done.
As an interesting effect I observe that for some reason the qt5-virtualkeyboard-devel and qt5-webglplugin-devel subpackages are now empty. According to Arch they should contain some *.cmake files, but these are not there after a build and thus not installed.
For now I made the two packages use build_style=meta and as such make them an alias for their parent packages. I'm sure there is something else missing, though.
How do I test - install (x86_64 version(s) )?
Downloaded, manually added the repo (opt/void), indexed, won't install. Can I do anything or wait for an update?
Figured it and done. So far so good...

Temporarily put on hold as I trashed my repo and am rebuilding it.
Note to self: do not try to update pkgs using the master branch.
I understand. Hope it goes well soon.
Any updates on this? Official update?
Probably not too soon as I have some paid work to do and testing this update is time consuming.
@pullmoll I'm sorry to say you seem like not thinking ahead. Meaning: Voidlinux gets more popular = more chances for real income. Voidlinux stays behind with one of the most basic things like the Qt version = people going for other distros = Voidlinux loosing popularity as it's labled 'behind'. I don't really care as I'm running the latest version of Qt but what about the majority. In any case, do whatever suits you best.
MirceaMX if you could just stop making Void Linux like Arch That would be nice.
@MirceaMx Void Linux is a hobby and personal interest, which I'm happy to use for developing my own stuff and by which I believe to be knowing what runs on my boxen... at least among the things visible to a computer's owner.
Believe me that after 30 years of being a freelancer in the IT I know what I'm currently doing and going to do in the future job wise. Void is not a thing for everyone and his mother while those who use it certainly already know why.
I can and will take care of 5.11.1 as soon as my duties are done and my financial state is in scope again.
@pullmoll Well, do I have to do anything now or just wait?
" :arrow_right_hook: sudo xbps-install -Su
Password:
[] Updating https://repo.voidlinux.eu/current/x86_64-repodata' ... x86_64-repodata: 1689KB [avg rate: 4798KB/s] [] Updatinghttps://repo.voidlinux.eu/current/nonfree/x86_64-repodata’ …
qt5-5.11.1_1: broken, unresolvable shlib libicui18n.so.59' qt5-5.11.1_1: broken, unresolvable shliblibicuuc.so.59’
qt5-location-5.11.1_1: broken, unresolvable shlib `libicuuc.so.59’
Transaction aborted due to unresolved shlibs."
@MirceaMx for now you need to revert to 5.10.1 by removing 5.11.1 (and its dependencies) and reinstalling from the official repo. I'm currently not ready to build 5.11.1 against the updated icu-62.1.
@pullmoll That is what I did (reinstalled :( )

Sounds like you guys are already on it! Please let us know in #2368 if this fixes the webengine bug or not when you change to 5.11
See #2538
Most helpful comment
I can give it a try here. The Thread Ripper is still busy building gcc-8.2.0 packages but will certainly find some spare time to build qt5-5.11.1 as well.