*** cannot compile in 4gb *** tce-load -i compiletc Xorg-7.7-3d-dev sqlite3-dev libmng-dev libpng-dev libtiff-dev cups-dev pulseaudio-dev perl5 gst-plugins-base-dev libwebp1-dev mtdev-dev ruby-dev geoclue-dev libpci-dev nss-dev git libxkbcommon-dev gperf libgcrypt-dev libgnome-keyring-dev libinput-dev harfbuzz-icu-dev jasper-dev ibus-dev pcre2-dev gzip bash libxslt-dev zstd-dev libvulkan-dev python ffmpeg4-dev https://download.qt.io/archive/qt/5.14/5.14.0/single/qt-everywhere-src-5.14.0.tar.xz http://www.linuxfromscratch.org/patches/blfs/svn/qt-5.14.0-qtwayland_cursor_fix-1.patch cd qt-everywhere-src-5.14.0 patch -Np1 -i ../qt-5.14.0-qtwayland_cursor_fix-1.patch sed -i 's/python /python3 /' qtdeclarative/qtdeclarative.pro qtdeclarative/src/3rdparty/masm/masm.pri edit qtbase/configure #!/bin/sh -> #!/bin/bash edit qtbase/mkspecs/common/gcc-base.conf O2/O3 -> Os QMAKE_CFLAGS += -march=i486 -mtune=i686 -pipe CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe" ./configure -prefix /usr/local -archdatadir /usr/local/lib/qt5 -bindir /usr/local/bin -plugindir /usr/local/lib/qt5/plugins -importdir /usr/local/lib/qt5/imports -headerdir /usr/local/include/qt5 -datadir /usr/local/share/qt5 -docdir /usr/local/share/doc/qt5 -translationdir /usr/local/share/qt5/translations -examplesdir /usr/local/share/doc/qt5/examples -libexecdir /usr/local/lib/qt5 -sysconfdir /usr/local/etc/xdg -qmldir /usr/local/lib/qt5/qml -confirm-license -opensource -release -dbus-linked -openssl-linked -system-freetype -system-harfbuzz -system-libjpeg -system-libpng -system-pcre -system-sqlite -system-zlib -nomake examples -optimized-qmake -no-use-gold-linker -no-rpath [-webengine-icu] -webengine-ffmpeg -webengine-opus -webengine-webp [-skip qtwebengine] [fails with gold-linker] icu-uc '>=' 64 icu-i18n '>=' 64 [for webengine] harfbuzz '>=' 2.2.0 [for webengine] struct vpx_codec_cx_pkt has no member named 'width' [for webengine] #error libxml icu not enabled [for webengine] find . -name BUILD.gn -type f -exec sed -i 's/--fatal-warnings//g' {} \; time make [3h 2m 51s] [make module-qtwebengine] [needs python2] FAILED: mksnapshot /usr/local/bin/g++ -pie -Wl, -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -m32 -rdynamic -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -o "./mksnapshot" -Wl,--start-group @"./mksnapshot.rsp" -Wl,--end-group -ldl -lpthread -lrt /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_47.o: in function `v8::internal::wasm::(anonymous namespace)::ExecuteCompilationUnits(std::shared_ptr const&, v8::internal::Counters*, int, v8::internal::wasm::(anonymous namespace)::CompileBaselineOnly)': v8_base_without_compiler_jumbo_47.cc:(.text._ZN2v88internal4wasm12_GLOBAL__N_123ExecuteCompilationUnitsERKSt10shared_ptrINS2_22BackgroundCompileTokenEEPNS0_8CountersEiNS2_19CompileBaselineOnlyE+0x174): undefined reference to `__atomic_load_8' /usr/local/bin/ld: v8_base_without_compiler_jumbo_47.cc:(.text._ZN2v88internal4wasm12_GLOBAL__N_123ExecuteCompilationUnitsERKSt10shared_ptrINS2_22BackgroundCompileTokenEEPNS0_8CountersEiNS2_19CompileBaselineOnlyE+0x1f9): undefined reference to `__atomic_compare_exchange_8' /usr/local/bin/ld: v8_base_without_compiler_jumbo_47.cc:(.text._ZN2v88internal4wasm12_GLOBAL__N_123ExecuteCompilationUnitsERKSt10shared_ptrINS2_22BackgroundCompileTokenEEPNS0_8CountersEiNS2_19CompileBaselineOnlyE+0xa6a): undefined reference to `__atomic_compare_exchange_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9666': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x2ff): undefined reference to `__atomic_compare_exchange_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9673': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x5f7): undefined reference to `__atomic_exchange_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9680': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x937): undefined reference to `__atomic_fetch_xor_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9687': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0xc87): undefined reference to `__atomic_fetch_or_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9694': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0xfd7): undefined reference to `__atomic_fetch_and_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9701': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x12d7): undefined reference to `__atomic_fetch_sub_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9708': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x15c7): undefined reference to `__atomic_fetch_add_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9715': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x17d7): undefined reference to `__atomic_store_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_48.o: in function `.L9722': v8_base_without_compiler_jumbo_48.cc:(.text._ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi[_ZN2v88internal4wasm10ThreadImpl15ExecuteAtomicOpENS1_10WasmOpcodeEPNS1_7DecoderEPNS1_15InterpreterCodeEjPi]+0x1ae0): undefined reference to `__atomic_load_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_load(int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL16atomic_pair_loadEi+0x19): undefined reference to `__atomic_load_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_store(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL17atomic_pair_storeEiii+0x2b): undefined reference to `__atomic_store_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_add(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL15atomic_pair_addEiii+0x2b): undefined reference to `__atomic_fetch_add_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_sub(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL15atomic_pair_subEiii+0x2b): undefined reference to `__atomic_fetch_sub_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_and(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL15atomic_pair_andEiii+0x2b): undefined reference to `__atomic_fetch_and_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_or(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL14atomic_pair_orEiii+0x2b): undefined reference to `__atomic_fetch_or_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_xor(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL15atomic_pair_xorEiii+0x2b): undefined reference to `__atomic_fetch_xor_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_exchange(int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL20atomic_pair_exchangeEiii+0x2b): undefined reference to `__atomic_exchange_8' /usr/local/bin/ld: obj/v8/v8_base_without_compiler/v8_base_without_compiler_jumbo_8.o: in function `v8::internal::atomic_pair_compare_exchange(int, int, int, int, int)': v8_base_without_compiler_jumbo_8.cc:(.text._ZN2v88internalL28atomic_pair_compare_exchangeEiiiii+0x4a): undefined reference to `__atomic_compare_exchange_8' collect2: error: ld returned 1 exit status sudo make install find /usr/local/ -name \*.prl -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; sudo install -dm755 /usr/local/share/pixmaps sudo install -Dm644 qttools/src/assistant/assistant/images/assistant-128.png /usr/local/share/pixmaps/assistant-qt5.png sudo install -Dm644 qttools/src/designer/src/designer/images/designer.png /usr/local/share/pixmaps/designer-qt5.png sudo install -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png /usr/local/share/pixmaps/linguist-qt5.png sudo install -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png /usr/local/share/pixmaps/qdbusviewer-qt5.png Configure summary: Build type: linux-g++ (i386, CPU features: ) Compiler: gcc 9.2.0 Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c largefile precompile_header rdrnd shani x86SimdAlways shared release c++11 c++14 c++1z concurrent dbus reduce_exports reduce_relocations release_tools stl Build options: Mode ................................... release; optimized tools Optimize release build for size ........ no Building shared libraries .............. yes Using C standard ....................... C11 Using C++ standard ..................... C++17 Using ccache ........................... no Using new DTAGS ........................ yes Relocatable ............................ yes Using precompiled headers .............. yes Using LTCG ............................. no Target compiler supports: SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX .................................. AVX AVX2 AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI Other x86 ............................ AES F16C RDRAND SHA Intrinsics without -mXXX option ...... yes Build parts ............................ libs tools Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... yes Qt Gui ................................. yes Qt Network ............................. yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... yes udev ................................... yes Using system zlib ...................... yes Zstandard support ...................... yes Qt Core: DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... yes iconv .................................. no ICU .................................... yes Built-in copy of the MIME database ..... yes Tracing backend ........................ Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. no Using system PCRE2 ................... yes Qt Network: getifaddrs() ........................... yes IPv6 ifname ............................ yes libproxy ............................... no Linux AF_NETLINK ....................... yes OpenSSL ................................ yes Qt directly linked to OpenSSL ........ yes OpenSSL 1.1 ............................ yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ yes HarfBuzz ............................... yes Using system HarfBuzz ................ yes Fontconfig ............................. yes Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... yes PNG .................................. yes Using system libpng ................ yes Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: Desktop OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. yes Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... yes INTEGRITY HID .......................... no mtdev .................................. yes tslib .................................. no xkbcommon .............................. yes X11 specific: XLib ................................. yes XCB Xlib ............................. yes EGL on X11 ........................... yes QPA backends: DirectFB ............................... no EGLFS .................................. yes EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... yes EGLFS GBM ............................ yes EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ yes LinuxFB ................................ yes VNC .................................... yes XCB: Using system-provided XCB libraries .. yes XCB XKB .............................. yes XCB XInput ........................... yes Native painting (experimental) ....... no GL integrations: GLX Plugin ......................... yes XCB GLX .......................... yes EGL-X11 Plugin ..................... yes Qt Sql: SQL item models ........................ yes Qt Widgets: GTK+ ................................... yes Styles ................................. Fusion Windows Qt PrintSupport: CUPS ................................... yes Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite2 ................................ no SQLite ................................. yes Using system provided SQLite ......... yes TDS (Sybase) ........................... no Qt Testlib: Tester for item models ................. yes Serial Port: ntddmodm ............................... no Qt SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes SerialPort Support ..................... yes Further Image Formats: JasPer ................................. yes MNG .................................... yes TIFF ................................... yes Using system libtiff ................. yes WEBP ................................... yes Using system libwebp ................. yes Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML sequence object .................... yes QML XML http request ................... yes QML Locale ............................. yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: Direct3D 12 ............................ no AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Gamepad: SDL2 ................................... yes Qt 3D: Assimp ................................. yes System Assimp .......................... no Output Qt3D Job traces ................. no Output Qt3D GL traces .................. no Use SSE2 instructions .................. no Use AVX2 instructions .................. no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D Renderers: OpenGL Renderer ........................ yes Qt 3D GeometryLoaders: Autodesk FBX ........................... no Qt Wayland Client ........................ no Qt Wayland Compositor .................... no Qt Bluetooth: BlueZ .................................. yes BlueZ Low Energy ....................... yes Linux Crypto API ....................... yes Native Win32 Bluetooth ................. no WinRT Bluetooth API (desktop & UWP) .... no WinRT advanced bluetooth low energy API (desktop & UWP) . no Qt Sensors: sensorfw ............................... no Qt Quick Controls 2: Styles ................................. Default Fusion Imagine Material Universal Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Qt Positioning: Gypsy GPS Daemon ....................... no WinRT Geolocation API .................. no Qt Location: Qt.labs.location experimental QML plugin . yes Geoservice plugins: OpenStreetMap ........................ yes HERE ................................. yes Esri ................................. yes Mapbox ............................... yes MapboxGL ............................. yes Itemsoverlay ......................... yes QtXmlPatterns: XML schema support ..................... yes Qt Multimedia: ALSA ................................... yes GStreamer 1.0 .......................... yes GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. yes PulseAudio ............................. yes Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Tools: QDoc ................................... no Qt WebEngine Build Tools: Use System Ninja ....................... no Use System Gn .......................... no Jumbo Build Merge Limit ................ 8 Developer build ........................ no QtWebEngine required system libraries: fontconfig ........................... yes dbus ................................. yes nss .................................. yes khr .................................. yes glibc ................................ yes QtWebEngine required system libraries for qpa-xcb: x11 .................................. yes libdrm ............................... yes xcomposite ........................... yes xcursor .............................. yes xi ................................... yes xtst ................................. yes Optional system libraries used: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . yes opus ................................. yes ffmpeg ............................... yes libvpx ............................... no snappy ............................... no glib ................................. yes zlib ................................. yes minizip .............................. no libevent ............................. no jsoncpp .............................. no protobuf ............................. no libxml2 and libxslt .................. no lcms2 ................................ yes png .................................. yes JPEG ................................. no harfbuzz ............................. no freetype ............................. yes Qt WebEngineCore: Embedded build ......................... no Full debug information ................. no Pepper Plugins ......................... yes Printing and PDF ....................... yes Proprietary Codecs ..................... no Spellchecker ........................... yes Native Spellchecker .................... no WebRTC ................................. yes Geolocation ............................ yes WebChannel support ..................... yes Use v8 snapshot ........................ yes Kerberos Authentication ................ no Extensions ............................. yes Support qpa-xcb ........................ yes Use ALSA ............................... yes Use PulseAudio ......................... yes Qt WebEngineQml: Support Qt WebEngine Qml ............... yes UI Delegates ........................... yes Test Support ........................... no Qt WebEngineWidgets: Support Qt WebEngine Widgets ........... yes