Fixdep: Exec format error in Debian 17.06.1

Hi,

Anyone know why there are x86 binaries in the Debian 17.06.1 when installed from the sd card install https://builds.96boards.org/releases/dragonboard410c/linaro/debian/17.06.1/ .

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/Makefile.build:299: 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

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

clean:
	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/ld-linux-x86-64.so.2, 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:

BR,
Nicklas