Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Yocto Boot2Qt 6.8.0 SDK fails to build -- error on meta-qt6/recipes-qt/qt6/gn-native_git.bb:do_compile
Forum Updated to NodeBB v4.3 + New Features

Yocto Boot2Qt 6.8.0 SDK fails to build -- error on meta-qt6/recipes-qt/qt6/gn-native_git.bb:do_compile

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 1 Posters 609 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nobuddy
    wrote on last edited by
    #1

    Seeing as nobody has any practical advice for my previous post on this matter, I decided to give Yocto another shot.

    I'm trying to build a Qt SDK that will run on Windows and compile for aarch64-linux-gnu (Raspberry Pi 4). So far I have successfully cross-compiled the Qt Target runtime 6.8.0 and confirmed it works on the Pi. I am now trying -- yet again -- to build the SDK for Windows.

    I am following the instructions on the Qt website. I have installed repo, initialized the repository with manifest v6.8.0.xml and I have invoked the command SDKMACHINE=x86_64-mingw32 bitbake meta-toolchain-b2qt-embedded-qt6-sdk.

    Two hours into the build, Yocto stops with an error:

    Summary: 1 task failed:
      /home/aaron/yocto/sources/meta-qt6/recipes-qt/qt6/gn-native_git.bb:do_compile
    

    It fails due to a compiler flag -Werror and a bunch of warnings. Has anyone tried to build this? Can someone advise how I may correct this so I can proceed?

    The output is as follows:

    ERROR: gn-native-6.8.0-r0 do_compile: ExecutionError('/home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/temp/run.do_compile.2530635', 1, None, None)
    ERROR: Logfile of failure stored in: /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/temp/log.do_compile.2530635
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: VERBOSE=1 cmake --build /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build --target gn --
    | Change Dir: '/home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build'
    | 
    | Run Build Command(s): ninja -v -j 20 gn
    | [1/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/swift_variables.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/swift_variables.cc -o src/gn/swift_variables.o
    | [2/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/token.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/token.cc -o src/gn/token.o
    | [3/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/switches.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/switches.cc -o src/gn/switches.o
    | [4/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/variables.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/variables.cc -o src/gn/variables.o
    | [5/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/version.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/version.cc -o src/gn/version.o
    | [6/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/atomic_write.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/atomic_write.cc -o src/util/atomic_write.o
    | [7/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/visual_studio_utils.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/visual_studio_utils.cc -o src/gn/visual_studio_utils.o
    | [8/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/tokenizer.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/tokenizer.cc -o src/gn/tokenizer.o
    | [9/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/swift_values_generator.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/swift_values_generator.cc -o src/gn/swift_values_generator.o
    | [10/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/swift_values.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/swift_values.cc -o src/gn/swift_values.o
    | [11/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/xml_element_writer.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/xml_element_writer.cc -o src/gn/xml_element_writer.o
    | [12/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/exe_path.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/exe_path.cc -o src/util/exe_path.o
    | [13/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/semaphore.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/semaphore.cc -o src/util/semaphore.o
    | [14/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/ticks.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/ticks.cc -o src/util/ticks.o
    | [15/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/sys_info.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/sys_info.cc -o src/util/sys_info.o
    | [16/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/visibility.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/visibility.cc -o src/gn/visibility.o
    | [17/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/template.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/template.cc -o src/gn/template.o
    | [18/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/msg_loop.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/msg_loop.cc -o src/util/msg_loop.o
    | [19/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/toolchain.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/toolchain.cc -o src/gn/toolchain.o
    | [20/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/value.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/value.cc -o src/gn/value.o
    | [21/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/tool.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/tool.cc -o src/gn/tool.o
    | [22/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/value_extractors.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/value_extractors.cc -o src/gn/value_extractors.o
    | [23/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/trace.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/trace.cc -o src/gn/trace.o
    | [24/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/target_generator.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/target_generator.cc -o src/gn/target_generator.o
    | [25/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/util/worker_pool.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/util/worker_pool.cc -o src/util/worker_pool.o
    | [26/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/gn_main.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/gn_main.cc -o src/gn/gn_main.o
    | [27/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/operators.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/operators.cc -o src/gn/operators.o
    | FAILED: src/gn/operators.o
    | /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/operators.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/operators.cc -o src/gn/operators.o
    | In file included from /usr/include/c++/12/string:40,
    |                  from ../git/src/3rdparty/gn/src/base/strings/string_number_conversions.h:11,
    |                  from ../git/src/3rdparty/gn/src/gn/operators.cc:10:
    | In static member function ‘static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)’,
    |     inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:421:23,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1647:19,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:815:28,
    |     inlined from ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’ at ../git/src/3rdparty/gn/src/gn/operators.cc:202:17:
    | /usr/include/c++/12/bits/char_traits.h:354:16: error: ‘((const std::char_traits<char>::char_type*)((char*)&empty_def + offsetof(std::__cxx11::string, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::<unnamed>)))[2]’ may be used uninitialized [-Werror=maybe-uninitialized]
    |   354 |         __c1 = __c2;
    |       |                ^~~~
    | ../git/src/3rdparty/gn/src/gn/operators.cc: In function ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’:
    | ../git/src/3rdparty/gn/src/gn/operators.cc:198:15: note: ‘empty_def’ declared here
    |   198 |   std::string empty_def;
    |       |               ^~~~~~~~~
    | In static member function ‘static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)’,
    |     inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:421:23,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1647:19,
    |     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:815:28,
    |     inlined from ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’ at ../git/src/3rdparty/gn/src/gn/operators.cc:205:17:
    | /usr/include/c++/12/bits/char_traits.h:354:16: error: ‘((const std::char_traits<char>::char_type*)((char*)&empty_def + offsetof(std::__cxx11::string, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::<unnamed>)))[2]’ may be used uninitialized [-Werror=maybe-uninitialized]
    |   354 |         __c1 = __c2;
    |       |                ^~~~
    | ../git/src/3rdparty/gn/src/gn/operators.cc: In function ‘Err {anonymous}::MakeOverwriteError(const BinaryOpNode*, const Value&)’:
    | ../git/src/3rdparty/gn/src/gn/operators.cc:198:15: note: ‘empty_def’ declared here
    |   198 |   std::string empty_def;
    |       |               ^~~~~~~~~
    | cc1plus: all warnings being treated as errors
    | [28/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/xcode_object.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/xcode_object.cc -o src/gn/xcode_object.o
    | [29/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/target.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/target.cc -o src/gn/target.o
    | [30/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/visual_studio_writer.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/visual_studio_writer.cc -o src/gn/visual_studio_writer.o
    | [31/33] /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ -MMD -MF src/gn/xcode_writer.o.d -I../git/src/3rdparty/gn/src -I. -DNO_LAST_COMMIT_POSITION -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -Wno-redundant-move -Wno-restrict -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -std=gnu++20 -c ../git/src/3rdparty/gn/src/gn/xcode_writer.cc -o src/gn/xcode_writer.o
    | ninja: build stopped: subcommand failed.
    | 
    | WARNING: exit code 1 from a shell command.
    

    Thanks in advance.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nobuddy
      wrote on last edited by
      #2

      So I take it nobody has tried building Qt 6.8.0 using Yocto? And internal QA found no issues? Strange...

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nobuddy
        wrote on last edited by
        #3

        Just as I posted that I found a workaround, but I would still like to know how to correct this.

        For those that are having the same issue and just "want it done" here's what I did: On a fresh bitbake run, when gn-native failed, it showed me the command-line that it ran, which looked something like this:

        cd /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build && /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/recipe-sysroot-native/usr/bin/python3-native/python3 /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/git/src/3rdparty/gn/build/gen.py --no-last-commit-position --out-path /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build/ --cc /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/gcc --cxx /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ --ld /home/aaron/yocto/build-raspberrypi-armv8/tmp/hosttools/g++ --platform linux --ar /home/aaron/yocto/sources/poky/scripts/native-intercept/ar --qt-version 6.8.0.qtwebengine.qt.io && /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/recipe-sysroot-native/usr/bin/ninja -C /home/aaron/yocto/build-raspberrypi-armv8/tmp/work/x86_64-linux/gn-native/6.8.0/build/ gn
        

        Right around where it says gen.py notice there's a bunch of flags: --no-commit-position --out-path etc. Somewhere in those flags, add --allow-warnings and re-run that command. gn-native will (hopefully) build successfully, with warnings, and you will be able to proceed with your Yocto build.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved