#!/bin/sh # Emit a useful diagnostic if something fails: bb_exit_handler() { ret=$? case $ret in 0) ;; *) case $BASH_VERSION in "") echo "WARNING: exit code $ret from a shell command.";; *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret from '$BASH_COMMAND'";; esac exit $ret esac } trap 'bb_exit_handler' 0 set -e 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/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/include -O2 -pipe" export BUILD_CPP="gcc -E" export BUILD_CPPFLAGS="-isystem/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/include" export BUILD_CXX="g++ " export BUILD_CXXFLAGS="-isystem/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/include -O2 -pipe" export BUILD_FC="gfortran " export BUILD_LD="ld " export BUILD_LDFLAGS="-L/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/lib -L/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2" export BUILD_NM="nm" export BUILD_RANLIB="ranlib" export BUILD_STRIP="strip" export CC="aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export CCLD="aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export CCSHARED="-fPIC -DPIC" export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0=/usr/src/debug/libdnf/0.28.1-r0 -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0=/usr/src/debug/libdnf/0.28.1-r0 -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native= -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export CMAKE_BUILD_PARALLEL_LEVEL="6" export CPP="aarch64-poky-linux-gcc -E --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security" export CPPFLAGS="" export CXX="aarch64-poky-linux-g++ -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0=/usr/src/debug/libdnf/0.28.1-r0 -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0=/usr/src/debug/libdnf/0.28.1-r0 -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" unset DISTRO export FC="aarch64-poky-linux-gfortran -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export GIT_CEILING_DIRECTORIES="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0" export HOME="/home/rcar" export LC_ALL="en_US.UTF-8" export LD="aarch64-poky-linux-ld --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot " export LDCXXSHARED="aarch64-poky-linux-g++ -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot -shared" export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now" export LDSHARED="aarch64-poky-linux-gcc -mcpu=cortex-a55 -march=armv8.2-a+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot -shared" export LINKFORSHARED="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Xlinker -export-dynamic" export LOGNAME="rcar" unset MACHINE export MAKE="make" export NM="aarch64-poky-linux-nm" export OBJCOPY="aarch64-poky-linux-objcopy" export OBJDUMP="aarch64-poky-linux-objdump" export PATH="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/bin/python3-native:/home/rcar/www/s4sk/build/poky/scripts:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/bin/crossscripts:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/sbin:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/bin:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/sbin:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/bin:/home/rcar/www/s4sk/build/poky/bitbake/bin:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/hosttools" export PERL_HASH_SEED="0" export PKG_CONFIG_DIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib/pkgconfig" export PKG_CONFIG_DISABLE_UNINSTALLED="yes" export PKG_CONFIG_LIBDIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib/pkgconfig" export PKG_CONFIG_PATH="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib/pkgconfig:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/share/pkgconfig" export PKG_CONFIG_SYSROOT_DIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include" export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/lib:/usr/lib" export PSEUDO_DISABLED="1" export PSEUDO_UNLOAD="1" export PYTHON="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3" export PYTHONHASHSEED="0" export PYTHONNOUSERSITE="1" export PYTHON_INCLUDE_DIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/include/python3.8" export PYTHON_LIBRARY="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib/libpython3.8.so" export RANLIB="aarch64-poky-linux-gcc-ranlib" export READELF="aarch64-poky-linux-readelf" unset SHELL export SOURCE_DATE_EPOCH="1705583975" export SOURCE_DATE_EPOCH_FALLBACK="1302044400" export STAGING_DIR_HOST="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot" export STAGING_INCDIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/include" export STAGING_LIBDIR="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib" export STRINGS="aarch64-poky-linux-strings" export STRIP="aarch64-poky-linux-strip" unset TARGET_ARCH export TERM="xterm-256color" export TZ="UTC" export USER="rcar" export XDG_DATA_DIRS="/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/share:/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib" export base_bindir="/bin" export base_libdir="/lib" export base_prefix="" export base_sbindir="/sbin" export bindir="/usr/bin" export datadir="/usr/share" export docdir="/usr/share/doc" export exec_prefix="/usr" export includedir="/usr/include" export infodir="/usr/share/info" export libdir="/usr/lib" export libexecdir="/usr/libexec" export localstatedir="/var" export mandir="/usr/share/man" export nonarch_base_libdir="/lib" export nonarch_libdir="/usr/lib" export oldincludedir="/usr/include" export prefix="/usr" export sbindir="/usr/sbin" export servicedir="/srv" export sharedstatedir="/com" export sysconfdir="/etc" export systemd_system_unitdir="/lib/systemd/system" export systemd_unitdir="/lib/systemd" export systemd_user_unitdir="/usr/lib/systemd/user" do_compile() { export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" if [ False = True ]; then # Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it # can run target helper binaries through that. qemu_binary="PSEUDO_UNLOAD=1 qemu-aarch64 -r 3.14 -L $STAGING_DIR_HOST -E LD_LIBRARY_PATH=\$GIR_EXTRA_LIBS_PATH:$STAGING_DIR_HOST//usr/lib:$STAGING_DIR_HOST//lib " cat > /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build/gtkdoc-qemuwrapper << EOF #!/bin/sh # Use a modules directory which doesn't exist so we don't load random things # which may then get deleted (or their dependencies) and potentially segfault export GIO_MODULE_DIR=/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/recipe-sysroot/usr/lib/gio/modules-dummy GIR_EXTRA_LIBS_PATH=\`find /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build -name *.so -printf "%h\n"|sort|uniq| tr '\n' ':'\`\$GIR_EXTRA_LIBS_PATH GIR_EXTRA_LIBS_PATH=\`find /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build -name .libs| tr '\n' ':'\`\$GIR_EXTRA_LIBS_PATH # meson sets this wrongly (only to libs in build-dir), qemu-wrapper_cmdline() and GIR_EXTRA_LIBS_PATH take care of it properly unset LD_LIBRARY_PATH if [ -d ".libs" ]; then $qemu_binary ".libs/\$@" else $qemu_binary "\$@" fi if [ \$? -ne 0 ]; then echo "If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help." echo "(typically like this: GIR_EXTRA_LIBS_PATH=\"$""{B}/something/.libs\" )" exit 1 fi EOF chmod +x /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build/gtkdoc-qemuwrapper fi cmake_do_compile } cmake_do_compile() { cmake_runcmake_build --target all } cmake_runcmake_build() { bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD} eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD} } bbnote() { if [ -p /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/temp/fifo.2041491 ] ; then printf "%b\0" "bbnote $*" > /home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/temp/fifo.2041491 else echo "NOTE: $*" fi } cd '/home/rcar/www/s4sk/build/build-s4sk-gateway/tmp/work/aarch64-poky-linux/libdnf/0.28.1-r0/build' do_compile # cleanup ret=$? trap '' 0 exit $ret