Because fixdep is compiled without -D_FILE_OFFSET_BITS=64,
a 32-bit fixdep (in a chroot build root, for example) may fail to run
on a 64-bit host system if any file has an inode larger than 2^32,
which can easily happen (in my case, on xfs):
[ares07:~/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-obj]
$ make silentoldconfig -C $PWD/../linux-3.10 O=$PWD V=1
make: Entering directory `/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10'
make -C /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-obj \
KBUILD_SRC=/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10 \
KBUILD_EXTMOD="" -f /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/Makefile \
silentoldconfig
make -f /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/scripts/Makefile.build obj=scripts/basic
gcc -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/scripts/basic/fixdep.c
fixdep: error fstat'ing depfile: scripts/basic/.fixdep.d: Value too large for defined data type
make[2]: *** [scripts/basic/fixdep] Error 2
make[1]: *** [scripts_basic] Error 2
make: *** [sub-make] Error 2
make: Leaving directory `/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10'
adding linux-kbuild list...
On 08/29/13 03:04, Jan Engelhardt wrote:
>
> Because fixdep is compiled without -D_FILE_OFFSET_BITS=64,
> a 32-bit fixdep (in a chroot build root, for example) may fail to run
> on a 64-bit host system if any file has an inode larger than 2^32,
> which can easily happen (in my case, on xfs):
>
>
> [ares07:~/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-obj]
> $ make silentoldconfig -C $PWD/../linux-3.10 O=$PWD V=1
>
> make: Entering directory `/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10'
> make -C /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-obj \
> KBUILD_SRC=/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10 \
> KBUILD_EXTMOD="" -f /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/Makefile \
> silentoldconfig
> make -f /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/scripts/Makefile.build obj=scripts/basic
> gcc -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10/scripts/basic/fixdep.c
> fixdep: error fstat'ing depfile: scripts/basic/.fixdep.d: Value too large for defined data type
> make[2]: *** [scripts/basic/fixdep] Error 2
> make[1]: *** [scripts_basic] Error 2
> make: *** [sub-make] Error 2
> make: Leaving directory `/home/abuild/rpmbuild/BUILD/kernel-pae-3.10.9~jng20/linux-3.10'
> --
--
~Randy