QT5 Toolchain compiling error

Currently I’m trying to build a meta-toolchain-qt5 for the newest BSP release 2.8b3 including our layer.

Unfortunately, there are some kind of compiling errors:

ERROR: qt3d-native-5.9.6+gitAUTOINC+ea18da8361-r0 do_compile: oe_runmake failed
ERROR: qt3d-native-5.9.6+gitAUTOINC+ea18da8361-r0 do_compile: Function failed: do_compile (log file is located at /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/temp/log.do_compile.23194)
ERROR: Logfile of failure stored in: /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/temp/log.do_compile.23194
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 MAKEFLAGS=-j 8 OE_QMAKE_COMPILER=gcc  OE_QMAKE_CC=gcc  OE_QMAKE_CXX=g++  OE_QMAKE_CFLAGS=-isystem/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/include -O2 -pipe OE_QMAKE_CXXFLAGS=-isystem/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/include -O2 -pipe OE_QMAKE_LINK=g++  OE_QMAKE_LDFLAGS=-L/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/lib -L/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/lib -Wl,-O1 OE_QMAKE_AR=ar OE_QMAKE_STRIP=echo OE_QMAKE_WAYLAND_SCANNER=/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/bin/wayland-scanner OE_QMAKE_INCDIR_QT=//home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/include/qt5
| cd tools/ && ( test -e Makefile || /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/bin/qt5/qmake -o Makefile /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/git/tools/tools.pro CONFIG+=tools-only QMAKE_USE_PRIVATE+=zlib ) && make -f Makefile
| make[1]: Entering directory '/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/build/tools'
| cd qgltf/ && ( test -e Makefile || /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/recipe-sysroot-native/usr/bin/qt5/qmake -o Makefile /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/git/tools/qgltf/qgltf.pro CONFIG+=tools-only QMAKE_USE_PRIVATE+=zlib ) && make -f Makefile
| make[2]: Entering directory '/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/build/tools/qgltf'
| linking ../../bin/qgltf
| .obj/IFCLoader.o: In function `Assimp::IFCImporter::InternReadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, aiScene*, Assimp::IOSystem*)':
| IFCLoader.cpp:(.text+0x8e35): undefined reference to `Assimp::IFC::GetSchema(Assimp::STEP::EXPRESS::ConversionSchema&)'
| collect2: error: ld returned 1 exit status
| Makefile:875: recipe for target '../../bin/qgltf' failed
| make[2]: *** [../../bin/qgltf] Error 1
| make[2]: Leaving directory '/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/build/tools/qgltf'
| Makefile:44: recipe for target 'sub-qgltf-make_first' failed
| make[1]: *** [sub-qgltf-make_first] Error 2
| make[1]: Leaving directory '/home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/build/tools'
| Makefile:44: recipe for target 'sub-tools-make_first' failed
| make: *** [sub-tools-make_first] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/christian/oe-core-2.8b3/build/tmp-glibc/work/x86_64-linux/qt3d-native/5.9.6+gitAUTOINC+ea18da8361-r0/temp/log.do_compile.23194)
ERROR: Task (virtual:native:/home/christian/oe-core-2.8b3/build/../layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3622 tasks of which 3605 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Any ideas?

Hi

  • On what host distribution/version do you try to that?
  • What is the native compiler it is using (gcc --version)?
  • Did cleaning and rebuilding help?
    ( bitbake -c cleansstate qt3d-native; bitbake meta-toolchain-qt5 )

Max

Hi Max!

I’m running the latest Ubuntu version (18.04).

GCC:

christian@Dev:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-16ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --with-as=/usr/bin/x86_64-linux-gnu-as --with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) 

After bitbake -c cleansstate, it seems to compile now (still running), however the command didn’t run any tasks:

    Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:00
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
    NOTE: Writing buildhistory
    
    Summary: There was 1 WARNING message shown.

did you get the image in deploy folder or not?

Yes, i was able to build a new SDK.

Perfect, thanks for the feedback.