Skip to contentSkip to conversation

linux-next: build failure after merge of the asm-generic tree

DISCUSSION Mark Brown 3 participants 5 messages Nov 13 – Nov 16 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the asm-generic tree, today's linux-next build (arm64 kselftest) failed like this:

CC vdso_test_chacha
/usr/include/asm-generic/int-ll64.h: Assembler messages:
/usr/include/asm-generic/int-ll64.h:20: Error: unknown mnemonic typedef' -- typedef __signed__ char __s8' /usr/include/asm-generic/int-ll64.h:21: Error: unknown mnemonic typedef' -- typedef unsigned char __u8' /usr/include/asm-generic/int-ll64.h:23: Error: unknown mnemonic typedef' -- typedef __signed__ short __s16' /usr/include/asm-generic/int-ll64.h:24: Error: unknown mnemonic typedef' -- typedef unsigned short __u16' /usr/include/asm-generic/int-ll64.h:26: Error: unknown mnemonic typedef' -- typedef __signed__ int __s32' /usr/include/asm-generic/int-ll64.h:27: Error: unknown mnemonic typedef' -- typedef unsigned int __u32' /usr/include/asm-generic/int-ll64.h:30: Error: unknown mnemonic __extension__' -- __extension__ typedef __signed__ long long __s64' /usr/include/asm-generic/int-ll64.h:31: Error: unknown mnemonic __extension__' -- __extension__ typedef unsigned long long __u64' /usr/include/linux/posix_types.h:25: Error: unknown mnemonic typedef' -- typedef struct{' /usr/include/linux/posix_types.h:26: Error: unknown mnemonic unsigned' -- unsigned long fds_bits[1024/(8*sizeof(long))]' /usr/include/linux/posix_types.h:27: Error: junk at end of line, first unrecognized character is }' /usr/include/linux/posix_types.h:30: Error: unknown mnemonic typedef' -- typedef void(*__kernel_sighandler_t)(int)' /usr/include/linux/posix_types.h:33: Error: unknown mnemonic typedef' -- typedef int __kernel_key_t' /usr/include/linux/posix_types.h:34: Error: unknown mnemonic typedef' -- typedef int __kernel_mqd_t' /usr/lib/linux/uapi/arm64/asm/posix_types.h:5: Error: unknown mnemonic typedef' -- typedef unsigned short __kernel_old_uid_t' /usr/lib/linux/uapi/arm64/asm/posix_types.h:6: Error: unknown mnemonic typedef' -- typedef unsigned short __kernel_old_gid_t' /usr/include/asm-generic/posix_types.h:15: Error: unknown mnemonic typedef' -- typedef long __kernel_long_t' /usr/include/asm-generic/posix_types.h:16: Error: unknown mnemonic typedef' -- typedef unsigned long __kernel_ulong_t' /usr/include/asm-generic/posix_types.h:20: Error: unknown mnemonic typedef' -- typedef __kernel_ulong_t __kernel_ino_t' /usr/include/asm-generic/posix_types.h:24: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_mode_t' /usr/include/asm-generic/posix_types.h:28: Error: unknown mnemonic typedef' -- typedef int __kernel_pid_t' /usr/include/asm-generic/posix_types.h:32: Error: unknown mnemonic typedef' -- typedef int __kernel_ipc_pid_t' /usr/include/asm-generic/posix_types.h:36: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_uid_t' /usr/include/asm-generic/posix_types.h:37: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_gid_t' /usr/include/asm-generic/posix_types.h:41: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_suseconds_t' /usr/include/asm-generic/posix_types.h:45: Error: unknown mnemonic typedef' -- typedef int __kernel_daddr_t' /usr/include/asm-generic/posix_types.h:49: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_uid32_t' /usr/include/asm-generic/posix_types.h:50: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_gid32_t' /usr/include/asm-generic/posix_types.h:59: Error: unknown mnemonic typedef' -- typedef unsigned int __kernel_old_dev_t' /usr/include/asm-generic/posix_types.h:72: Error: unknown mnemonic typedef' -- typedef __kernel_ulong_t __kernel_size_t' /usr/include/asm-generic/posix_types.h:73: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_ssize_t' /usr/include/asm-generic/posix_types.h:74: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_ptrdiff_t' /usr/include/asm-generic/posix_types.h:79: Error: unknown mnemonic typedef' -- typedef struct{' /usr/include/asm-generic/posix_types.h:80: Error: unknown mnemonic int' -- int val[2]' /usr/include/asm-generic/posix_types.h:81: Error: junk at end of line, first unrecognized character is }' /usr/include/asm-generic/posix_types.h:87: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_off_t' /usr/include/asm-generic/posix_types.h:88: Error: unknown mnemonic typedef' -- typedef long long __kernel_loff_t' /usr/include/asm-generic/posix_types.h:89: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_old_time_t' /usr/include/asm-generic/posix_types.h:90: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_time_t' /usr/include/asm-generic/posix_types.h:91: Error: unknown mnemonic typedef' -- typedef long long __kernel_time64_t' /usr/include/asm-generic/posix_types.h:92: Error: unknown mnemonic typedef' -- typedef __kernel_long_t __kernel_clock_t' /usr/include/asm-generic/posix_types.h:93: Error: unknown mnemonic typedef' -- typedef int __kernel_timer_t' /usr/include/asm-generic/posix_types.h:94: Error: unknown mnemonic typedef' -- typedef int __kernel_clockid_t' /usr/include/asm-generic/posix_types.h:95: Error: unknown mnemonic typedef' -- typedef char*__kernel_caddr_t' /usr/include/asm-generic/posix_types.h:96: Error: unknown mnemonic typedef' -- typedef unsigned short __kernel_uid16_t' /usr/include/asm-generic/posix_types.h:97: Error: unknown mnemonic typedef' -- typedef unsigned short __kernel_gid16_t' /usr/include/linux/types.h:12: Error: unknown mnemonic typedef' -- typedef __signed__ __int128 __s128 __attribute__((aligned(16)))' /usr/include/linux/types.h:13: Error: unknown mnemonic typedef' -- typedef unsigned __int128 __u128 __attribute__((aligned(16)))' /usr/include/linux/types.h:31: Error: unknown mnemonic typedef' -- typedef __u16 __le16' /usr/include/linux/types.h:32: Error: unknown mnemonic typedef' -- typedef __u16 __be16' /usr/include/linux/types.h:33: Error: unknown mnemonic typedef' -- typedef __u32 __le32' /usr/include/linux/types.h:34: Error: unknown mnemonic typedef' -- typedef __u32 __be32' /usr/include/linux/types.h:35: Error: unknown mnemonic typedef' -- typedef __u64 __le64' /usr/include/linux/types.h:36: Error: unknown mnemonic typedef' -- typedef __u64 __be64' /usr/include/linux/types.h:38: Error: unknown mnemonic typedef' -- typedef __u16 __sum16' /usr/include/linux/types.h:39: Error: unknown mnemonic typedef' -- typedef __u32 __wsum' /usr/include/linux/types.h:55: Error: unknown mnemonic typedef' -- typedef unsigned __poll_t' /usr/lib/linux/uapi/arm64/asm/ptrace.h:88: Error: unknown mnemonic struct' -- struct user_pt_regs{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:89: Error: unknown mnemonic __u64' -- __u64 regs[31]' /usr/lib/linux/uapi/arm64/asm/ptrace.h:90: Error: unknown mnemonic __u64' -- __u64 sp' /usr/lib/linux/uapi/arm64/asm/ptrace.h:91: Error: unknown mnemonic __u64' -- __u64 pc' /usr/lib/linux/uapi/arm64/asm/ptrace.h:92: Error: unknown mnemonic __u64' -- __u64 pstate' /usr/lib/linux/uapi/arm64/asm/ptrace.h:93: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:95: Error: unknown mnemonic struct' -- struct user_fpsimd_state{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:96: Error: unknown mnemonic __uint128_t' -- __uint128_t vregs[32]' /usr/lib/linux/uapi/arm64/asm/ptrace.h:97: Error: unknown mnemonic __u32' -- __u32 fpsr' /usr/lib/linux/uapi/arm64/asm/ptrace.h:98: Error: unknown mnemonic __u32' -- __u32 fpcr' /usr/lib/linux/uapi/arm64/asm/ptrace.h:99: Error: unknown mnemonic __u32' -- __u32 __reserved[2]' /usr/lib/linux/uapi/arm64/asm/ptrace.h:100: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:102: Error: unknown mnemonic struct' -- struct user_hwdebug_state{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:103: Error: unknown mnemonic __u32' -- __u32 dbg_info' /usr/lib/linux/uapi/arm64/asm/ptrace.h:104: Error: unknown mnemonic __u32' -- __u32 pad' /usr/lib/linux/uapi/arm64/asm/ptrace.h:105: Error: unknown mnemonic struct' -- struct {' /usr/lib/linux/uapi/arm64/asm/ptrace.h:106: Error: unknown mnemonic __u64' -- __u64 addr' /usr/lib/linux/uapi/arm64/asm/ptrace.h:107: Error: unknown mnemonic __u32' -- __u32 ctrl' /usr/lib/linux/uapi/arm64/asm/ptrace.h:108: Error: unknown mnemonic __u32' -- __u32 pad' /usr/lib/linux/uapi/arm64/asm/ptrace.h:109: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:110: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:114: Error: unknown mnemonic struct' -- struct user_sve_header{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:115: Error: unknown mnemonic __u32' -- __u32 size' /usr/lib/linux/uapi/arm64/asm/ptrace.h:116: Error: unknown mnemonic __u32' -- __u32 max_size' /usr/lib/linux/uapi/arm64/asm/ptrace.h:117: Error: unknown mnemonic __u16' -- __u16 vl' /usr/lib/linux/uapi/arm64/asm/ptrace.h:118: Error: unknown mnemonic __u16' -- __u16 max_vl' /usr/lib/linux/uapi/arm64/asm/ptrace.h:119: Error: unknown mnemonic __u16' -- __u16 flags' /usr/lib/linux/uapi/arm64/asm/ptrace.h:120: Error: unknown mnemonic __u16' -- __u16 __reserved' /usr/lib/linux/uapi/arm64/asm/ptrace.h:121: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:253: Error: unknown mnemonic struct' -- struct user_pac_mask{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:254: Error: unknown mnemonic __u64' -- __u64 data_mask' /usr/lib/linux/uapi/arm64/asm/ptrace.h:255: Error: unknown mnemonic __u64' -- __u64 insn_mask' /usr/lib/linux/uapi/arm64/asm/ptrace.h:256: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:260: Error: unknown mnemonic struct' -- struct user_pac_address_keys{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:261: Error: unknown mnemonic __uint128_t' -- __uint128_t apiakey' /usr/lib/linux/uapi/arm64/asm/ptrace.h:262: Error: unknown mnemonic __uint128_t' -- __uint128_t apibkey' /usr/lib/linux/uapi/arm64/asm/ptrace.h:263: Error: unknown mnemonic __uint128_t' -- __uint128_t apdakey' /usr/lib/linux/uapi/arm64/asm/ptrace.h:264: Error: unknown mnemonic __uint128_t' -- __uint128_t apdbkey' /usr/lib/linux/uapi/arm64/asm/ptrace.h:265: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:267: Error: unknown mnemonic struct' -- struct user_pac_generic_keys{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:268: Error: unknown mnemonic __uint128_t' -- __uint128_t apgakey' /usr/lib/linux/uapi/arm64/asm/ptrace.h:269: Error: junk at end of line, first unrecognized character is }' /usr/lib/linux/uapi/arm64/asm/ptrace.h:273: Error: unknown mnemonic struct' -- struct user_za_header{' /usr/lib/linux/uapi/arm64/asm/ptrace.h:274: Error: unknown mnemonic __u32' -- __u32 size' /usr/lib/linux/uapi/arm64/asm/ptrace.h:275: Error: unknown mnemonic __u32' -- __u32 max_size' /usr/lib/linux/uapi/arm64/asm/ptrace.h:276: Error: unknown mnemonic __u16' -- __u16 vl' /usr/lib/linux/uapi/arm64/asm/ptrace.h:277: Error: unknown mnemonic __u16' -- __u16 max_vl' /usr/lib/linux/uapi/arm64/asm/ptrace.h:278: Error: unknown mnemonic __u16' -- __u16 flags' /usr/lib/linux/uapi/arm64/asm/ptrace.h:279: Error: unknown mnemonic __u16' -- __u16 __reserved' /usr/lib/linux/uapi/arm64/asm/ptrace.h:280: Error: junk at end of line, first unrecognized character is `}' make[1]: *** [../lib.mk:230: /tmp/next/arm64_kselftest/kselftest/vDSO/vdso_test_chacha] Error 1

Caused by commit

625b37748a148 (treewide: Stop defining __ASSEMBLY__ for assembler files)

I have used the tree from next-20261112 instead.

#1 lore raw

Am 13.11.26 um 16:04 schrieb Mark Brown:

Quoted 9 lines

Hi all,

After merging the asm-generic tree, today's linux-next build (arm64 kselftest) failed like this:

CC vdso_test_chacha
/usr/include/asm-generic/int-ll64.h: Assembler messages:
/usr/include/asm-generic/int-ll64.h:20: Error: unknown mnemonic typedef' -- typedef __signed__ char __s8' /usr/include/asm-generic/int-ll64.h:21: Error: unknown mnemonic typedef' -- typedef unsigned char __u8'

...

Quoted 8 lines

/usr/lib/linux/uapi/arm64/asm/ptrace.h:280: Error: junk at end of line, first unrecognized character is `}' make[1]: *** [../lib.mk:230: /tmp/next/arm64_kselftest/kselftest/vDSO/vdso_test_chacha] Error 1

Caused by commit

625b37748a148 (treewide: Stop defining __ASSEMBLY__ for assembler files)

I have used the tree from next-20261112 instead.

Hi,

the fix is:

https://lore.kernel.org/lkml/[email protected]/

... Arnd, could you pick it up into your tree, please?

Thanks,
Thomas

#2 lore raw

On Fri, Nov 13, 2026, at 16:45, Thomas Huth wrote:
__signed__ char __s8'

Quoted 1 line
Quoted 1 line

/usr/include/asm-generic/int-ll64.h:21: Error: unknown mnemonic typedef' -- typedef unsigned char __u8'

1

Quoted 5 lines
Quoted 5 lines

Caused by commit

625b37748a148 (treewide: Stop defining __ASSEMBLY__ for assembler files)

Quoted 8 lines
Quoted 1 line

I have used the tree from next-20261112 instead.

the fix is:

https://lore.kernel.org/lkml/[email protected]/

... Arnd, could you pick it up into your tree, please?

Sorry about that, I had already applied it locally but forgot to push out the updated branch. Pushed now.

There was another report for the 0day build bot about the same error on powerpc, but not enough information for me to reproduce, so it's possible that we need another fix like this.

Arnd

#3 lore raw

Am 13.11.26 um 17:16 schrieb Arnd Bergmann:

Quoted 16 lines · Thomas Huth

__signed__ char __s8'

Quoted 1 line
Quoted 1 line

/usr/include/asm-generic/int-ll64.h:21: Error: unknown mnemonic typedef' -- typedef unsigned char __u8'

1

Quoted 12 lines
Quoted 6 lines

Caused by commit

625b37748a148 (treewide: Stop defining __ASSEMBLY__ for assembler files)

I have used the tree from next-20261112 instead.

the fix is:

   https://lore.kernel.org/lkml/[email protected]/
Quoted 8 lines
Quoted 1 line

... Arnd, could you pick it up into your tree, please?

Sorry about that, I had already applied it locally but forgot to push out the updated branch. Pushed now.

There was another report for the 0day build bot about the same error on powerpc, but not enough information for me to reproduce, so it's possible that we need another fix like this.

I was finally able to get access to a ppc64 machine and tried to reproduce the problem. But it was just the vdso_test_chacha test again that was failing there due to the __ASSEMBLY__ still being used in /usr/include, i.e. the same problem that we saw on aarch64. I double checked that it gets fixed after applying https://lore.kernel.org/lkml/[email protected]/ , so unless the 0day bot had a very unusal setup, I think we should be fine.

Thomas

#4 lore raw
Quoted 5 lines · Thomas Huth

Am 13.11.26 um 17:16 schrieb Arnd Bergmann:

Quoted 3 lines

There was another report for the 0day build bot about the same error on powerpc, but not enough information for me to reproduce, so it's possible that we need another fix like this.

Quoted 7 lines

I was finally able to get access to a ppc64 machine and tried to reproduce the problem. But it was just the vdso_test_chacha test again that was failing there due to the __ASSEMBLY__ still being used in /usr/include, i.e. the same problem that we saw on aarch64. I double checked that it gets fixed after applying
https://lore.kernel.org/lkml/[email protected]/ , so unless the 0day bot had a very unusal setup, I think we should be fine.

Ok, thanks for checking!

Arnd