Qt Creator SDK build problem

Hi all,
I am installing Qt Creator SDK on a Linux notebook in order to crosscompile Qt project for a T20 target,
Linux distro is Fedora 27 KDE, notebook CPU is x86_64.
I followed Toradex guidelines in:
https://developer.toradex.com/knowledge-base/how-to-set-up-qt-creator-to-cross-compile-for-embedded-linux
and related guidelines.
oe-core was created for the purpose.
All worked fine, until I issued:
$ bitbake -k meta-toolchain-qt5
After 30 hours… this process is not yet concluded !
5662/5973 tasks remains (94%)
Last console output is:
0: qtbase-5.9.2+gitAUTOINC+ecbe393b-r0 do_complie - 20445 s (pid 14514)
1: qt3d-native-5.9.2+gitAUTOINC+143b7212-r0 do_compile 18359 (pid 32398)
Please not that execution timings are not being updated.
A furious disk activity is running,and the KDE desktop responsiveness is pretty low.

What do you suggest to do next ?

Thank you for your attention.

How much RAM does your build machine feature? Building Qt is known to use lots of RAM. My notebook e.g. has 32 GB but better would be 64 GB or more.

My DELL PRECISION notebook hosts:
Processors: 4 x Intel Core i5-2520M @ 2.50GHz.
Memory 1,9 Gib RAM. [sic !]

bitbake -k meta-toolchain-qt5 at last ended, reporting two fatal errors.
I could not find any log file recorded by the process.
I could not store the BASH console output because KDE was no more responsive.
However I am pretty sure that a compilation error was reported,
leading to one gcc-c++ command crash.

Today I repeated the build process,
bitbake -k meta-toolchain-qt5 | tee > build.txt
build.txt is attached which failed in short time, and again KDE was no more responsive.

Here is the final section:
NOTE: recipe qt3d-native-5.9.2+gitAUTOINC+143b721249-r0: task do_compile: Started
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 MAKEFLAGS=-j 4 OE_QMAKE_COMPILER=gcc OE_QMAKE_CC=gcc OE_QMAKE_CXX=g++ OE_QMAKE_CFLAGS=-isystem/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/include -O2 -pipe OE_QMAKE_CXXFLAGS=-isystem/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/include -O2 -pipe OE_QMAKE_LINK=g++ OE_QMAKE_LDFLAGS=-L/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/lib -L/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/lib -Wl,-rpath,/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/lib -Wl,-O1 OE_QMAKE_AR=ar OE_QMAKE_STRIP=echo OE_QMAKE_WAYLAND_SCANNER=/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/bin/wayland-scanner OE_QMAKE_INCDIR_QT=//opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/include/qt5
| cd tools/ && ( test -e Makefile || /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/bin/qt5/qmake -o Makefile /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/git/tools/tools.pro CONFIG+=tools-only QMAKE_USE_PRIVATE+=zlib ) && make -f Makefile
| make1: Entering directory ‘/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/build/tools’| /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/bin/qt5/qmake -o Makefile /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/git/tools/tools.pro CONFIG+=tools-only QMAKE_USE_PRIVATE+=zlib| cd qgltf/ && ( test -e Makefile || /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/recipe-sysroot-native/usr/bin/qt5/qmake -o Makefile /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/git/tools/qgltf/qgltf.pro CONFIG+=tools-only QMAKE_USE_PRIVATE+=zlib ) && make -f Makefile
| make[2]: Entering directory ‘/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/build/tools/qgltf’| linking …/…/bin/qgltf
| .obj/IFCLoader.o: In function Assimp::IFCImporter::InternReadFile(std::__cxx11::basic_string, std::allocator > const&, aiScene*, Assimp::IOSystem*)': | IFCLoader.cpp:(.text+0x8e1a): undefined reference to Assimp::IFC::GetSchema(Assimp::STEP::EXPRESS::ConversionSchema&)’| collect2: error: ld returned 1 exit status
| make[2]: *** [Makefile:876: …/…/bin/qgltf] Error 1
| make[2]: Leaving directory ‘/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/build/tools/qgltf’| make1: *** [Makefile:45: sub-qgltf-make_first] Error 2| make1: Leaving directory ‘/opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/build/tools’| make: *** [Makefile:45: sub-tools-make_first] Error 2| ERROR: oe_runmake failed| WARNING: /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/temp/run.do_compile.3365:1 exit 1 from ‘exit 1’
| ERROR: Function failed: do_compile (log file is located at /opt/oe-core/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.2+gitAUTOINC+143b721249-r0/temp/log.do_compile.3365)
NOTE: recipe qt3d-native-5.9.2+gitAUTOINC+143b721249-r0: task do_compile: Failed

The hardware limitation can explain such disaster ?
What to do now ?
Could you specifify minimal PC hardware requirements to develop with Linux features provided by Toradex for T20 targets ?

Many thanks for your attention.

link text

2GB of RAM is definitely not enough. You can save some RAM adding those lines:

BB_NUMBER_THREADS = 1

PARALLEL_MAKE = "-j 1"

to /conf/local.conf, but it may still not be possible to build Qt5 with that machine.
Long compilation time and high disk usage is due to heavy use of swap memory because of not enough RAM.
Have a look in dmesg and see if you can see any OOM events.
We recommend minimum 16GB of RAM, but this value will vary depending on number of parallel threads and package choice.