Subject: linux-next: build failure after merge of the kbuild tree

From: Stephen Rothwell <[email-masked]>
Date: Mon, 18 Aug 2025 14:01:43 +1000

Hi all,

After merging the kbuild tree, today's linux-next build (powerpc
allyesconfig) failed like this:

/usr/bin/ld: /usr/lib/gcc/powerpc64le-linux-gnu/14/../../../powerpc64le-linux-gnu/libgcc_s.so.1: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[5]: *** [scripts/Makefile.userprogs:29: samples/pfsm/pfsm-wakeup] Error 1
make[5]: Target 'samples/pfsm/' not remade because of errors.

an so on for lots more ...

Caused by commit

  478494044bb4 ("kbuild: userprogs: also inherit byte order and ABI from kernel")

I have reverted that commit for today.

Build was done on ppc64le, POWER9

$ gcc --version
gcc (Debian 14.2.0-19) 14.2.0
$ ld --version
GNU ld (GNU Binutils for Debian) 2.44

CONFIG_VDSO32=y
CONFIG_CPU_BIG_ENDIAN=y
# CONFIG_CPU_LITTLE_ENDIAN is not set
CONFIG_PPC64_ELF_ABI_V2=y
CONFIG_CC_HAS_ELFV2=y
CONFIG_CC_HAS_PREFIXED=y
CONFIG_CC_HAS_PCREL=y
CONFIG_64BIT=y

-- 
Cheers,
Stephen Rothwell