`pmbootstrap menuconfig linux-postmarketos` causes kernel compilation error
Created by: antonok-edm
When I run pmbootstrap menuconfig linux-postmarketos
, then save+exit without making any changes, the kernel configuration file becomes heavily modified and the kernel compilation fails with the following error:
In file included from /home/user/build/src/linux-4.12.4/include/uapi/linux/stddef.h:1:0,
from /home/user/build/src/linux-4.12.4/include/linux/stddef.h:4,
from /home/user/build/src/linux-4.12.4/include/uapi/linux/posix_types.h:4,
from /home/user/build/src/linux-4.12.4/include/uapi/linux/types.h:13,
from /home/user/build/src/linux-4.12.4/include/linux/types.h:5,
from /home/user/build/src/linux-4.12.4/fs/xfs/xfs_linux.h:21,
from /home/user/build/src/linux-4.12.4/fs/xfs/xfs.h:32,
from /home/user/build/src/linux-4.12.4/fs/xfs/xfs_super.c:19:
In function 'xfs_check_ondisk_structs',
inlined from 'init_xfs_fs' at /home/user/build/src/linux-4.12.4/fs/xfs/xfs_super.c:1990:2:
/home/user/build/src/linux-4.12.4/include/linux/compiler.h:529:38: error: call to '__compiletime_assert_119' declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
/home/user/build/src/linux-4.12.4/include/linux/compiler.h:512:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
/home/user/build/src/linux-4.12.4/include/linux/compiler.h:529:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
/home/user/build/src/linux-4.12.4/include/linux/bug.h:54:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
/home/user/build/src/linux-4.12.4/fs/xfs/xfs_ondisk.h:22:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(sizeof(structname) != (size), "XFS: sizeof(" \
^~~~~~~~~~~~~~~~
/home/user/build/src/linux-4.12.4/fs/xfs/xfs_ondisk.h:119:2: note: in expansion of macro 'XFS_CHECK_STRUCT_SIZE'
XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t, 3);
^~~~~~~~~~~~~~~~~~~~~
The error seems to suggest an issue with XFS configuration, but I cannot find any related lines in the config file. The kernel compiles fine directly after a fresh pull from upstream/master (but then I cannot use menuconfig to make changes).
Output of git diff aports/main/linux-postmarketos/config-postmarketos.armhf Note that the diff is 1412 lines long, which does not seem like expected behavior.