HomeDefectsLIN1023-1681
Fixed

LIN1023-1681 : build bazel-native_5.3.2-r0 failed on host gcc 13 (fedora 38)

Created: Aug 13, 2023    Updated: Sep 27, 2023
Resolved Date: Sep 20, 2023
Found In Version: 10.23.30.2
Fix Version: 10.23.30.2
Severity: Standard
Applicable for: Wind River Linux LTS 23
Component/s: Userspace

Description

Build WRLx on Fedora 38
$ gcc --version
gcc (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2)
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ./wrlinux-x/setup.sh --distro=wrlinux --machines=intel-x86-64 --dl-layers --layers meta-tensorflow --templates feature/tensorflow
$ . ./oe-init-build-env
$ bitbake tensorflow
external/com_google_absl/absl/strings/internal/str_format/extension.cc:37:19: error: 'FormatConversionChar' in namespace 'absl' does not name a type
   37 |   constexpr absl::FormatConversionChar FormatConversionCharInternal::id;
      |                   ^~~~~~~~~~~~~~~~~~~~

Steps to Reproduce

======!!!NOTE!!!======
This is local.conf/auto.conf for you reference to reproduce defect, please real bug reportor
                  add the steps from wraxl mail, configs like --dl-layers/--all-layer are not in local.conf/auto.conf

Local.conf:
BB_NO_NETWORK ?= '1'
BB_FETCH_PREMIRRORONLY ?= '${@d.getVar('BB_NO_NETWORK') or 0}'
WRTEMPLATE ?= "feature/tensorflow"
MACHINE ??= "intel-x86-64"
DISTRO ??= "wrlinux"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
IMAGE_FSTYPES += "tar.bz2"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    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"
DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
KERNEL_FEATURES:append = " cfg/systemd.scc"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl"
CONF_VERSION = "2"
OVERRIDES:append = ":osv-wrlinux"
require wrlinux-distro/conf/distro/include/wrlinux-uninative.inc
PSEUDO_IGNORE_PATHS .= ",/home/wrlbuild/builds/builds-aec7122e-6155-4d3e-9725-8fc656ece923/bin"
require conf/wrlinux-recipelists.inc
INHERIT += "rm_work"
PARALLEL_MAKE = "-j 10"
BB_NUMBER_THREADS = "12"
EXTRA_OECMAKE_BUILD += "-j 10"
USER_CLASSES += "buildstats buildstats-summary"
IMAGE_FSTYPES:forcevariable = ""
BB_NO_NETWORK = "1"
BB_PRESSURE_MAX_CPU = "500"
BB_PRESSURE_MAX_IO = "200"
BB_PRESSURE_MAX_MEMORY = "200"
INHERIT += "report-error"
BAZEL_JOBS = "5"
PARALLEL_MAKE:pn-nodejs = "-j 4"
GPG_PATH = "/tmp/gnupg"
XZ_MEMLIMIT = "20G"
ENABLE_PUSH_SERVER = "no"