#!/bin/sh

__BITBAKE_LAST_LINE=0

# Emit a useful diagnostic if something fails:
bb_sh_exit_handler() {
    ret=$?
    if [ "$ret" != 0 ]; then
        echo "WARNING: exit code $ret from a shell command."
    fi
    exit $ret
}

bb_bash_exit_handler() {
    ret=$?
    { set +x; } > /dev/null
    trap "" DEBUG
    if [ "$ret" != 0 ]; then
        echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"

        echo "WARNING: Backtrace (BB generated script): "
        for i in $(seq 1 $((${#FUNCNAME[@]} - 1))); do
            if [ "$i" -eq 1 ]; then
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${__BITBAKE_LAST_LINE}"
            else
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${BASH_LINENO[$((i-1))]}"
            fi
        done
    fi
    exit $ret
}

bb_bash_debug_handler() {
    local line=${BASH_LINENO[0]}
    # For some reason the DEBUG trap trips with lineno=1 when scripts exit; ignore it
    if [ "$line" -eq 1 ]; then
        return
    fi

    # Track the line number of commands as they execute. This is so we can have access to the failing line number
    # in the EXIT trap. See http://gnu-bash.2382.n7.nabble.com/trap-echo-quot-trap-exit-on-LINENO-quot-EXIT-gt-wrong-linenumber-td3666.html
    if [ "${FUNCNAME[1]}" != "bb_bash_exit_handler" ]; then
        __BITBAKE_LAST_LINE=$line
    fi
}

case $BASH_VERSION in
"") trap 'bb_sh_exit_handler' 0
    set -e
    ;;
*)  trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
    trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
    set -e
    shopt -s extdebug
    ;;
esac
export AR="aarch64-poky-linux-gcc-ar"
export AS="aarch64-poky-linux-as "
export BUILD_AR="ar"
export BUILD_AS="as "
export BUILD_CC="gcc "
export BUILD_CCLD="gcc "
export BUILD_CFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_FC="gfortran "
export BUILD_LD="ld "
export BUILD_LDFLAGS="-L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread"
export BUILD_NM="nm"
export BUILD_RANLIB="ranlib -D"
export BUILD_STRIP="strip"
export CC="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
export CCLD="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
export CC_FOR_BUILD="gcc "
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native= "
export CFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
export CONFIG_SITE="/home/sim/yocto/scarthgap/poky/meta/site/endian-little /home/sim/yocto/scarthgap/poky/meta/site/arm-common /home/sim/yocto/scarthgap/poky/meta/site/arm-64 /home/sim/yocto/scarthgap/poky/meta/site/common-linux /home/sim/yocto/scarthgap/poky/meta/site/common-glibc /home/sim/yocto/scarthgap/poky/meta/site/common"
export CPP="aarch64-poky-linux-gcc -E --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native= "
export CPPFLAGS=""
export CPPFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include"
export CPP_FOR_BUILD="gcc  -E"
export CXX="aarch64-poky-linux-g++  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  -fvisibility-inlines-hidden"
export CXXFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
export CXX_FOR_BUILD="g++ "
export FC="aarch64-poky-linux-gfortran  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
export GETTEXTDATADIRS=":/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/share/gettext"
export GIT_CEILING_DIRECTORIES="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0:/home/sim/yocto/scarthgap/build/tmp"
export HOME="/home/sim"
export LC_ALL="en_US.UTF-8"
export LD="aarch64-poky-linux-ld --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot "
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  -Wl,-z,relro,-z,now"
export LDFLAGS_FOR_BUILD="-L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread"
export LD_FOR_BUILD="ld "
export LOGNAME="sim"
export MAKE="make"
export NM="aarch64-poky-linux-gcc-nm"
export OBJCOPY="aarch64-poky-linux-objcopy"
export OBJDUMP="aarch64-poky-linux-objdump"
export OMP_NUM_THREADS="8"
export PATH="/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/sim/yocto/scarthgap/poky/scripts:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/bin/crossscripts:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/sbin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/bin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/sbin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/bin:/home/sim/yocto/scarthgap/poky/bitbake/bin:/home/sim/yocto/scarthgap/build/tmp/hosttools"
export PERL_HASH_SEED="0"
export PKG_CONFIG_DIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/lib/pkgconfig:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include"
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/usr/lib:/usr/lib"
export PSEUDO_DISABLED="1"
export PSEUDO_UNLOAD="1"
export PYTHONHASHSEED="0"
export RANLIB="aarch64-poky-linux-gcc-ranlib"
export READELF="aarch64-poky-linux-readelf"
unset SHELL
export SOURCE_DATE_EPOCH="1789111964"
export STRINGS="aarch64-poky-linux-strings"
export STRIP="aarch64-poky-linux-strip"
export TZ="UTC"
export USER="sim"
export base_bindir="/usr/bin"
export base_libdir="/usr/lib"
export base_prefix=""
export base_sbindir="/usr/sbin"
export bindir="/usr/bin"
export datadir="/usr/share"
export docdir="/usr/share/doc"
export exec_prefix="/usr"
export gcc_cv_collect2_libs="none required"
export gcc_cv_objdump="aarch64-poky-linux-objdump"
export includedir="/usr/include"
export infodir="/usr/share/info"
export libdir="/usr/lib"
export libexecdir="/usr/libexec"
export localstatedir="/var"
export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib"
export mandir="/usr/share/man"
export nonarch_base_libdir="/usr/lib"
export nonarch_libdir="/usr/lib"
export prefix="/usr"
export sbindir="/usr/sbin"
export servicedir="/srv"
export sharedstatedir="/com"
export sysconfdir="/etc"
export systemd_system_unitdir="/usr/lib/systemd/system"
export systemd_unitdir="/usr/lib/systemd"
export systemd_user_unitdir="/usr/lib/systemd/user"

# line: 91, file: /home/sim/yocto/scarthgap/poky/meta/recipes-devtools/gcc/gcc-configure-common.inc
do_configure() {
	# teach gcc to find correct target includedir when checking libc ssp support
	mkdir -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc
	echo "NATIVE_SYSTEM_HEADER_DIR = /usr/include" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc/t-oe
	cat /home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc/defaults.h.new
	cat >>/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc/defaults.h.new <<_EOF
#define NATIVE_SYSTEM_HEADER_DIR "/usr/include"
#define STANDARD_STARTFILE_PREFIX_1 "/usr/lib/"
#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
#define SYSTEMLIBS_DIR "/usr/lib/"
#endif /* ! GCC_DEFAULTS_H */
_EOF
	mv /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc/defaults.h.new /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc/defaults.h
	# Setup these vars for cross building only
	# ... because foo_FOR_TARGET apparently gets misinterpreted inside the
	# gcc build stuff when the build is producing a cross compiler - i.e.
	# when the 'current' target is the 'host' system, and the host is not
	# the target (because the build is actually making a cross compiler!)
	if [ "x86_64-linux" != "aarch64-poky-linux" ]; then
		export CC_FOR_TARGET="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
		export GCC_FOR_TARGET="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
		export CXX_FOR_TARGET="aarch64-poky-linux-g++  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2  -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot"
		export AS_FOR_TARGET="aarch64-poky-linux-as"
		export LD_FOR_TARGET="aarch64-poky-linux-ld"
		export NM_FOR_TARGET="aarch64-poky-linux-nm"
		export AR_FOR_TARGET="aarch64-poky-linux-ar"
		export GFORTRAN_FOR_TARGET="gfortran"
		export RANLIB_FOR_TARGET="aarch64-poky-linux-ranlib"
	fi
	export CC_FOR_BUILD="gcc "
	export CXX_FOR_BUILD="g++ "
	export CFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
	export CPPFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include"
	export CXXFLAGS_FOR_BUILD="-isystem/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/include -O2 -pipe"
	export LDFLAGS_FOR_BUILD="-L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread"
	export CFLAGS_FOR_TARGET=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native= "
	export CPPFLAGS_FOR_TARGET=""
	export CXXFLAGS_FOR_TARGET=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native= "
	export LDFLAGS_FOR_TARGET="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0=/usr/src/debug/gcc/13.5.0  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux=/usr/src/debug/gcc/13.5.0  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot-native=  -Wl,-z,relro,-z,now"


	oe_runconf
}

# line: 95, file: /home/sim/yocto/scarthgap/poky/meta/classes-recipe/autotools.bbclass
oe_runconf() {
	# Use relative path to avoid buildpaths in files
	cfgscript_name="`basename /home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0/configure`"
	cfgscript=`python3 -c "import os; print(os.path.relpath(os.path.dirname('/home/sim/yocto/scarthgap/build/tmp/work-shared/gcc-13.5.0-r0/gcc-13.5.0/configure'), '.'))"`/$cfgscript_name
	if [ -x "$cfgscript" ] ; then
		bbnote "Running $cfgscript  --build=x86_64-linux 		  --host=aarch64-poky-linux 		  --target=aarch64-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot          --with-gnu-ld     --enable-shared     --enable-languages=c,c++     --enable-threads=posix     --enable-multilib     --enable-default-pie     --enable-c99     --enable-long-long     --enable-symvers=gnu     --enable-libstdcxx-pch     --program-prefix=aarch64-poky-linux-     --without-local-prefix     --disable-install-libiberty         --disable-libssp     --enable-libitm     --enable-lto     --disable-bootstrap     --with-system-zlib     --with-linker-hash-style=gnu     --enable-linker-build-id     --with-ppl=no     --with-cloog=no     --enable-checking=release     --enable-cheaders=c_global     --without-isl               --with-build-sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot                  --disable-static  --enable-nls --with-glibc-version=2.28  --enable-initfini-array --enable-__cxa_atexit $@"
		if ! CONFIG_SHELL=${CONFIG_SHELL-/bin/bash}  $cfgscript  --build=x86_64-linux 		  --host=aarch64-poky-linux 		  --target=aarch64-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot          --with-gnu-ld     --enable-shared     --enable-languages=c,c++     --enable-threads=posix     --enable-multilib     --enable-default-pie     --enable-c99     --enable-long-long     --enable-symvers=gnu     --enable-libstdcxx-pch     --program-prefix=aarch64-poky-linux-     --without-local-prefix     --disable-install-libiberty         --disable-libssp     --enable-libitm     --enable-lto     --disable-bootstrap     --with-system-zlib     --with-linker-hash-style=gnu     --enable-linker-build-id     --with-ppl=no     --with-cloog=no     --enable-checking=release     --enable-cheaders=c_global     --without-isl               --with-build-sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/recipe-sysroot                  --disable-static  --enable-nls --with-glibc-version=2.28  --enable-initfini-array --enable-__cxa_atexit "$@"; then
			bbnote "The following config.log files may provide further information."
			bbnote `find /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux -ignore_readdir_race -type f -name config.log`
			bbfatal_log "configure failed"
		fi
	else
		bbfatal "no configure script found at $cfgscript"
	fi
}

# line: 60, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbfatal() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824 ] ; then
		printf "%b\0" "bbfatal $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824
	else
		echo "ERROR: $*"
	fi
	exit 1
}

# line: 72, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbfatal_log() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824 ] ; then
		printf "%b\0" "bbfatal_log $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824
	else
		echo "ERROR: $*"
	fi
	exit 1
}

# line: 27, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbnote() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824 ] ; then
		printf "%b\0" "bbnote $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/temp/fifo.1791824
	else
		echo "NOTE: $*"
	fi
}

cd '/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/gcc/13.5.0/gcc-13.5.0/build.aarch64-poky-linux.aarch64-poky-linux'
do_configure

# cleanup
ret=$?
trap '' 0
exit $ret
