Fixdep: Exec format error in Debian 17.06.1



Anyone know why there are x86 binaries in the Debian 17.06.1 when installed from the sd card install .

When I try to compile a “Hello World” kernel module I get:

linaro@linaro-alip:~/tmp/hello1$ make
make -C /lib/modules/4.9.39-linaro-lt-qcom/build M=/home/linaro/tmp/hello1 modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.39-linaro-lt-qcom'
  CC [M]  /home/linaro/tmp/hello1/hello-1.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
scripts/ recipe for target '/home/linaro/tmp/hello1/hello-1.o' failed
make[2]: *** [/home/linaro/tmp/hello1/hello-1.o] Error 2
Makefile:1490: recipe for target '_module_/home/linaro/tmp/hello1' failed
make[1]: *** [_module_/home/linaro/tmp/hello1] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.39-linaro-lt-qcom'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

The Makefile contains:

$ cat Makefile 
obj-m += hello-1.o

	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

And the binary that is causing the problem is:

$ file /usr/src/linux-headers-4.9.39-linaro-lt-qcom/scripts/basic/fixdep
/usr/src/linux-headers-4.9.39-linaro-lt-qcom/scripts/basic/fixdep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/, for GNU/Linux 2.6.32, BuildID[sha1]=f84a747818133716eee8415ffdc5244f96ec7410, not stripped

It seems very strange and if you have some suggestion, please let me know :slight_smile: