Package: u-boot-qemu
Version: 2025.01-3
Severity: important
Tags: ftbfs upstream
X-Debbugs-Cc: [email protected], [email protected],
[email protected]
User: [email protected]
Usertags: amd64
User: [email protected]
Usertags: arm64
Dear Maintainer,
Cross-compilation fails on debian trixie while issuing 'dpkg-buildpackage
-aarm64 -b'.
It looks like PKG_CONFIG is taken from the wrong place while compiling qemu
targets.
It should be mips64el but aarch64-linux-gnu is taken instead.
This is log from compilation.
make[3]: Leaving directory
'/home/wodu/Projects/u-boot-deb-upstream/debian/build/malta64el'
make[2]: Leaving directory '/home/wodu/Projects/u-boot-deb-upstream'
sed -i -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-3",'
debian/build/malta64el/.config
dh_auto_build -- V=1 HOSTCFLAGS='-g
-ffile-prefix-map=/home/wodu/Projects/u-boot-deb-upstream=.'
O=debian/build/malta64el CROSS_COMPILE=mips64el-linux-gnuabi64-
make -j16 "INSTALL=install --strip-program=true"
PKG_CONFIG=aarch64-linux-gnu-pkg-config CXX=aarch64-linux-gnu-g\+\+
CC=aarch64-linux-gnu-gcc V=1 "HOSTCFLAGS=-g
-ffile-prefix-map=/home/wodu/Projects/u-boot-deb-upstream=."
O=debian/build/malta64el CROSS_COMPILE=mips64el-linux-gnuabi64-
make[2]: Entering directory '/home/wodu/Projects/u-boot-deb-upstream'
make -C /home/wodu/Projects/u-boot-deb-upstream/debian/build/malta64el
KBUILD_SRC=/home/wodu/Projects/u-boot-deb-upstream \
-f /home/wodu/Projects/u-boot-deb-upstream/Makefile
make[3]: Entering directory
'/home/wodu/Projects/u-boot-deb-upstream/debian/build/malta64el'
make -f /home/wodu/Projects/u-boot-deb-upstream/Makefile syncconfig
make -f /home/wodu/Projects/u-boot-deb-upstream/scripts/Makefile.build
obj=scripts/basic
ln -fsn /home/wodu/Projects/u-boot-deb-upstream source
/bin/bash /home/wodu/Projects/u-boot-deb-upstream/scripts/mkmakefile
/home/wodu/Projects/u-boot-deb-upstream
rm -f .tmp_quiet_recordmcount
GEN Makefile
make -f /home/wodu/Projects/u-boot-deb-upstream/scripts/Makefile.build
obj=scripts/kconfig syncconfig
scripts/kconfig/conf --syncconfig Kconfig
make -f /home/wodu/Projects/u-boot-deb-upstream/scripts/Makefile.autoconf || \
{ rm -f include/config/auto.conf; false; }
set -e; mkdir -p include/; (echo "/* Automatically generated - do not edit
*/"; echo \#define CFG_BOARDDIR board/imgtec/malta; echo \#include
\<configs/"malta".h\> ; echo \#include \<asm/config.h\>; echo \#include
\<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>;) <
/home/wodu/Projects/u-boot-deb-upstream/scripts/Makefile.autoconf >
include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h
include/config.h.tmp; then rm -f include/config.h.tmp; else : ' UPD
include/config.h'; mv -f include/config.h.tmp include/config.h; fi
aarch64-linux-gnu-gcc -E -Wall -Wstrict-prototypes -Wno-format-security
-fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing
-fno-PIE -fno-stack-protector -fno-delete-null-pointer-checks -Wno-pointer-sign
-Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds
-Wno-stringop-overflow -Wno-maybe-uninitialized
-ffile-prefix-map=/home/wodu/Projects/u-boot-deb-upstream/= -gdwarf-4
-fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member
-Wno-unused-but-set-variable -Werror=date-time -Wno-packed-not-aligned
-D__KERNEL__ -D__UBOOT__ -EL -mabi=64 -D__MIPS__ -G 0 -mno-abicalls -fno-pic
-msoft-float -ffunction-sections -fdata-sections -pipe -Iinclude
-I/home/wodu/Projects/u-boot-deb-upstream/include
-I/home/wodu/Projects/u-boot-deb-upstream/arch/mips/include -include
/home/wodu/Projects/u-boot-deb-upstream/include/linux/kconfig.h -nostdinc
-isystem /usr/lib/gcc-cross/aarch64-linux-gnu/14/include -DDO_DEPS_ONLY -dM
include/config.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp |
sed '/define CONFIG_IS_ENABLED(/d;/define CONFIG_IF_ENABLED_INT(/d;/define
CONFIG_VAL(/d;' > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp;
false; }
aarch64-linux-gnu-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes
-Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar
-fno-strict-aliasing -fno-PIE -fno-stack-protector
-fno-delete-null-pointer-checks -Wno-pointer-sign -Wno-stringop-truncation
-Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow
-Wno-maybe-uninitialized
-ffile-prefix-map=/home/wodu/Projects/u-boot-deb-upstream/= -gdwarf-4
-fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member
-Wno-unused-but-set-variable -Werror=date-time -Wno-packed-not-aligned
-D__KERNEL__ -D__UBOOT__ -EL -mabi=64 -D__MIPS__ -G 0 -mno-abicalls -fno-pic
-msoft-float -ffunction-sections -fdata-sections -pipe -Iinclude
-I/home/wodu/Projects/u-boot-deb-upstream/include
-I/home/wodu/Projects/u-boot-deb-upstream/arch/mips/include -include
/home/wodu/Projects/u-boot-deb-upstream/include/linux/kconfig.h -nostdinc
-isystem /usr/lib/gcc-cross/aarch64-linux-gnu/14/include -MQ
include/config/auto.conf include/config.h > include/autoconf.mk.dep || { rm
include/autoconf.mk.dep; false; }
aarch64-linux-gnu-gcc: error: unrecognized argument in option ‘-mabi=64’
aarch64-linux-gnu-gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64; did
you mean ‘lp64’?
aarch64-linux-gnu-gcc: error: unrecognized argument in option ‘-mabi=64’
aarch64-linux-gnu-gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64; did
you mean ‘lp64’?
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-EL’; did you
mean ‘-E’?
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-G’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-EL’; did you
mean ‘-E’?
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-G’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mno-abicalls’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mno-abicalls’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-msoft-float’
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-msoft-float’
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, arm64
Kernel: Linux 6.12.27-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled