Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137410

No possible to build qtbase from meta-qt6 with sanitizer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.8.3
    • Yocto: meta-qt6 layer
    • None
    • Linux/Yocto

    Description

      I have tried to build qtbase with sanitizer. However, an error occurs when packing.

      | -- Finalizing SBOM generation in install dir: /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/image/usr/sbom/qtbase-6.8.3.spdx
      | /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/temp/run.do_install.291120: line 211: /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/image/usr/lib/mkspecs/linux-oe-g++/qmake.conf: No such file or directory
      | WARNING: /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/temp/run.do_install.291120:211 exit 1 from 'sed -e 's: -O2 -D_FORTIFY_SOURCE=2: :' -e 's:-fcanon-prefix-map  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/git=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/git=/usr/src/debug/qtbase/6.8.3  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/build=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/build=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot=  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot=  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot-native=   -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/image= ::' -e 's:/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot:$$[QT_SYSROOT]:' -e 's:x86_64-poky-linux-:$$[QT_HOST_PREFIX]/usr/bin/x86_64-poky-linux/x86_64-poky-linux-:' >> /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/image/usr/lib/mkspecs/linux-oe-g++/qmake.conf <<EOF
      | 
      | isEmpty(QMAKE_CC): {
      |     QMAKE_AR = x86_64-poky-linux-gcc-ar cqs
      |     QMAKE_AR_LTCG = x86_64-poky-linux-gcc-ar cqs
      |     QMAKE_STRIP = x86_64-poky-linux-strip
      |     QMAKE_OBJCOPY = x86_64-poky-linux-objcopy
      |     QMAKE_CC = x86_64-poky-linux-gcc
      |     QMAKE_CFLAGS +=   -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot
      |     QMAKE_CXX = x86_64-poky-linux-g++
      |     QMAKE_CXXFLAGS +=   -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot
      |     QMAKE_LINK = x86_64-poky-linux-g++
      |     QMAKE_LFLAGS +=  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/git=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/git=/usr/src/debug/qtbase/6.8.3  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/build=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/build=/usr/src/debug/qtbase/6.8.3  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot=  -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot=  -fdebug-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/recipe-sysroot-native=   -fmacro-prefix-map=/home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/image=  -Wl,-z,relro,-z,now
      |     }
      | EOF
      | '
      | WARNING: Backtrace (BB generated script):
      |       #1: do_install, /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/temp/run.do_install.291120, line 211
      |       #2: main, /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/temp/run.do_install.291120, line 264
      ERROR: Task (/home/xxx/dev/yocto/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install) failed with exit code '1'
      NOTE: Tasks Summary: Attempted 2888 tasks of which 2869 didn't need to be rerun and 1 failed.
      
      Summary: 1 task failed:
        /home/xxx/dev/yocto/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install
          log: /home/xxx/dev/yocto/build/tmp/work/core2-64-poky-linux/qtbase/6.8.3/temp/log.do_install.291120
      Summary: There was 1 ERROR message, returning a non-zero exit code.
      
      

      My config in the qtbase_git.bb is:

      DEPENDS:append:class-target = "gcc-sanitizers"
      EXTRA_OECMAKE:class-target += "\
          -DFEATURE_sanitizer_address=ON \
      "
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sapiippo Samuli Piippo
            julianc Julian Albrecht
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes