Build errors due to 64 bit xchg/cmpxchg operations in fs/nfs/flexfilelayout
Subsystems (3)
Hi,
commits 'pNFS/flexfiles: add layoutstats tracking' and 'pnfs/flexfiles: report layoutstat regularly' in -next introduce 64 bit xchg and cmpxchg operations. This causes compile errors with 32 bit builds on architectures which do not support those operations.
arm:shmobile_defconfig:
fs/built-in.o: In function `nfs4_ff_end_busy_timer':
:(.text+0xa7110): undefined reference to __bad_xchg' fs/built-in.o: In function nfs4_ff_layoutstat_start_io':
:(.text+0xa7304): undefined reference to __bad_cmpxchg' :(.text+0xa731c): undefined reference to __bad_cmpxchg' :(.text+0xa73d8): undefined reference to `__bad_cmpxchg'
xtensa:allmodconfig:
ERROR: "__xchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!
ERROR: "__cmpxchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!
Guenter
A message that is not in the archive (sent off-list or not yet received): CAHQdGtRURfhjoY0EMGMWQR=Yw-tiKr3PWWZ1YVCu9+u8ff9xFw@mail.gmail.com
Quoted 20 lines · Trond Myklebust
Quoted 18 lines · On Jun 27, 2015 12:09 AM, "Guenter Roeck" <[email protected]…
Hi,
commits 'pNFS/flexfiles: add layoutstats tracking' and 'pnfs/flexfiles: report layoutstat regularly' in -next introduce 64 bit xchg and cmpxchg operations. This causes compile errors with 32 bit builds on architectures which do not support those operations.
arm:shmobile_defconfig:
fs/built-in.o: In function `nfs4_ff_end_busy_timer':
:(.text+0xa7110): undefined reference to__bad_xchg' fs/built-in.o: In functionnfs4_ff_layoutstat_start_io':
:(.text+0xa7304): undefined reference to__bad_cmpxchg' :(.text+0xa731c): undefined reference to__bad_cmpxchg' :(.text+0xa73d8): undefined reference to `__bad_cmpxchg'xtensa:allmodconfig:
Quoted 9 lines
Quoted 4 lines
ERROR: "
__xchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!
ERROR: "__cmpxchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!Guenter
Hi Guenter
Is this still the case with today's update? The latest patch from Tao was intended to remove those calls.
Hi Trond,
This is with next-20150626. I'll let you know if it still happens with the next build.
Guenter