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

sed execution error on qtbase install step in Kirkstone Build

    XMLWordPrintable

Details

    • deab0703d (dev), ffe38b4b5 (6.5), 4548dc9d3 (lts-6.2), 05e78180c (6.6)

    Description

      Hi, when building qtbase in Yocto Kirkstone (inside a pretty clean Ubuntu 22.04 container) I am getting the following error in the qtbase recipe's install operation:

      | sed: -e expression #4, char 0: no previous regular expression 
      | WARNING: /opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/temp/run.do_install.2312917:206 exit 1 from 'sed -e 's:::' -e 's:-fmacro-prefix-map=/opt/yocto/decu/develop-qt6/build/tm
      p/work/corei7-64-poky-linux/qtbase/6.5.1-r0=/usr/src/debug/qtbase/6.5.1-r0                      -fdebug-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0=/usr/src/debug/q
      tbase/6.5.1-r0                      -fdebug-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot=                      -fdebug-prefix-map=/opt/yocto/decu/deve
      lop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot-native=   -fmacro-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/image= ::' -e 's:/opt/yocto
      /decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot:$$[QT_SYSROOT]:' -e 's:x86_64-poky-linux-:$$[QT_HOST_PREFIX]/usr/bin/x86_64-poky-linux/x86_64-poky-linux-:' >> /opt/yocto/decu
      /develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/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=nehalem -mtune=generic -mfpmath=sse -msse4.2 -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/yocto/decu/develop-qt6/build/tmp/work
      /corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot 
      |     QMAKE_CXX = x86_64-poky-linux-g++ 
      |     QMAKE_CXXFLAGS +=   -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/yocto/decu/develop-qt6/build/tmp/wo
      rk/corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot 
      |     QMAKE_LINK = x86_64-poky-linux-g++ 
      |     QMAKE_LFLAGS +=  -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/yocto/decu/develop-qt6/build/tmp/work/
      corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0=/usr/src/debug/
      qtbase/6.5.1-r0                      -fdebug-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0=/usr/src/debug/qtbase/6.5.1-r0                      -fdebug-prefix-map=/opt
      /yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/recipe-sysroot=                      -fdebug-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0
      /recipe-sysroot-native=   -fmacro-prefix-map=/opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/image=  -Wl,-z,relro,-z,now 
      |     } 
      | EOF 
      | ' 
      | WARNING: Backtrace (BB generated script): 
      |       #1: do_install, /opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/temp/run.do_install.2312917, line 206 
      |       #2: main, /opt/yocto/decu/develop-qt6/build/tmp/work/corei7-64-poky-linux/qtbase/6.5.1-r0/temp/run.do_install.2312917, line 248 
      ERROR: Task (/opt/yocto/decu/develop-qt6/sources/poky/../../sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install) failed with exit code '1' 
      NOTE: Tasks Summary: Attempted 1867 tasks of which 1855 didn't need to be rerun and 1 failed. 
      
      Summary: 1 task failed: 
       /opt/yocto/decu/develop-qt6/sources/poky/../../sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install

      I checked building with reverting 6d70fc56a540bb0e5be80f7434769b4de296b6ae
      and this works fine for me. My assumption is that this might have something to do with the sed version (4.4)?

      Attachments

        For Gerrit Dashboard: QTBUG-115588
        # Subject Branch Project Status CR V

        Activity

          People

            sapiippo Samuli Piippo
            cordlandwehr-work Andreas Cord-Landwehr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes