<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15866</bug_id>
          
          <creation_ts>2025-05-20 02:20:34 +0000</creation_ts>
          <short_desc>Failed to compile qtbase from meta-qt6 on qemuarm in Yocto with GCC 15</short_desc>
          <delta_ts>2025-05-31 05:23:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>5.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sung Gon Kim">sunggon82.kim</reporter>
          <assigned_to name="Peng Zhang">peng.zhang1.cn</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>peng.zhang1.cn</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101998</commentid>
    <comment_count>0</comment_count>
    <who name="Sung Gon Kim">sunggon82.kim</who>
    <bug_when>2025-05-20 02:20:34 +0000</bug_when>
    <thetext>The qtbase recipe from the meta-qt6 layer failed to compile on qemuarm on an Ubuntu 22.04 machine, resulting in the following log messages. This issue didn&apos;t occur with GCC 14 but started happening after switching to GCC 15.

| FAILED: src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o
| /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ --sysroot=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot -DBACKTRACE_HEADER=\&quot;execinfo.h\&quot; -DCore_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QPAIR -DQT_NO_QSNPRINTF -DQT_NO_STD_FORMAT_SUPPORT -DQT_NO_USING_NAMESPACE -DQT_TYPESAFE_FLAGS -DQT_USE_NODISCARD_FILE_OPEN -DQT_USE_QSTRINGBUILDER -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib/Core_autogen/include -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/include -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/include/QtCore -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib/global -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib/kernel -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib/../3rdparty/tinycbor/src -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/include/QtCore/6.10.0 -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/include/QtCore/6.10.0/QtCore -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib/../3rdparty/double-conversion/double-conversion -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib/../3rdparty/double-conversion -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib/../3rdparty/forkfd -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib/.rcc -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/mkspecs/linux-g++ -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot/usr/include/glib-2.0 -I/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot/usr/lib/glib-2.0/include -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a15 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64  --sysroot=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot  -O2 -g  -ffile-prefix-map=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git=/usr/src/debug/qtbase/6.10.0  -ffile-prefix-map=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build=/usr/src/debug/qtbase/6.10.0  -ffile-prefix-map=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot=  -ffile-prefix-map=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/recipe-sysroot-native=   -fmacro-prefix-map=/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/image=  -pipe -fvisibility-inlines-hidden -DNDEBUG -O3 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wno-expansion-to-defined -U_FORTIFY_SOURCE -Wsuggest-override -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -fexceptions -Winvalid-pch -include /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build/src/corelib/CMakeFiles/Core.dir/cmake_pch.hxx -MD -MT src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o -MF src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o.d -o src/corelib/CMakeFiles/Core.dir/kernel/qcoreapplication.cpp.o -c /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/git/src/corelib/kernel/qcoreapplication.cpp
| {standard input}: Assembler messages:
| {standard input}:50604: Error: ARM register expected -- `ldrex r1,[s16]&apos;
| {standard input}:50606: Error: ARM register expected -- `strex r2,r1,[s16]&apos;
| ninja: build stopped: subcommand failed.
|
| WARNING: /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/temp/run.do_compile.22739:159 exit 1 from &apos;eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build &apos;/home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/build&apos; &quot;$@&quot; -- ${EXTRA_OECMAKE_BUILD}&apos;
| WARNING: Backtrace (BB generated script):
|       #1: cmake_runcmake_build, /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/temp/run.do_compile.22739, line 159
|       #2: cmake_do_compile, /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/temp/run.do_compile.22739, line 153
|       #3: do_compile, /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/temp/run.do_compile.22739, line 148
|       #4: main, /home/sunggon82.kim/workspace/temp/poky/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/qtbase/6.10.0/temp/run.do_compile.22739, line 172
ERROR: Task (/home/sunggon82.kim/workspace/temp/poky/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_compile) failed with exit code &apos;1&apos;


To reproduce the result, you need to clone master branch of poky, meta-openembedded and meta-qt6, and then configure the build envrionment with the following configuration.

# conf/bblayers.conf

POKY_BBLAYERS_CONF_VERSION = &quot;2&quot;BBPATH = &quot;${TOPDIR}&quot;
BBFILES ?= &quot;&quot;BBLAYERS ?= &quot; \
  /home/sunggon82.kim/workspace/temp/poky/meta \
  /home/sunggon82.kim/workspace/temp/poky/meta-poky \
  /home/sunggon82.kim/workspace/temp/poky/meta-yocto-bsp \
  /home/sunggon82.kim/workspace/temp/poky/meta-openembedded/meta-python \
  /home/sunggon82.kim/workspace/temp/poky/meta-openembedded/meta-oe \
  /home/sunggon82.kim/workspace/temp/poky/meta-qt6 \
  &quot;
 

# conf/local.conf

MACHINE ??= &quot;qemuarm&quot;
DISTRO ?= &quot;poky&quot;
USER_CLASSES ?= &quot;buildstats&quot;
PATCHRESOLVE = &quot;noop&quot;
BB_DISKMON_DIRS ??= &quot;\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K&quot;
PACKAGECONFIG:append:pn-qemu-system-native = &quot; sdl&quot;
CONF_VERSION = &quot;2&quot; 


then, build qtbase recipe with the following command.

bitbake qtbase


- Related issue: https://bugreports.qt.io/browse/QTBUG-136796</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102035</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-22 14:41:12 +0000</bug_when>
    <thetext>Fix posted to list recently. In master-next. 

[OE-core] [PATCH v2] gcc: Fix wrong code generation in atomic intrinsics for arm

Peng once this is merged, please resolve and provide a link to the oe-core fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102105</commentid>
    <comment_count>2</comment_count>
    <who name="Peng Zhang">peng.zhang1.cn</who>
    <bug_when>2025-05-31 05:23:59 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?id=07f6ebadf0bc4a90bdba9106df7fb55be8d76ffd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>