Home | News | Download | Packages | Forum | Wiki | Github

RPI Kernel Headers with wrong executeables


(Tim Weippert) #1

I installed my first void system on RPI and try to compile wireguard as an kernel module. It fails with several issues, most of them are while it wants use some scripts/tools from /usr/src/rpi-kernel-headers-4.4.47_1/scripts …

All compiled tools seem broken there:

bash-4.3# file pnmtologo
pnmtologo: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=7eb6fef5ee41412316e7e48444f190cba2db69ed, not stripped

After removing and recompiling the pnmtologo or recordmcount tool, they are from the correct ARCH. Maybe some error while packaging, cross-compilling the RPI kernel?

bash-4.3# rm pnmtologo
bash-4.3# make pnmtologo
cc pnmtologo.c -o pnmtologo
bash-4.3# file pnmtologo
pnmtologo: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=a6326af9268f764b50465f92c3b76fb968986d70, not stripped

Regards,
weiti


#2

I tried a build for 4.4.48 with ARCH=arm and CROSS_COMPILE=${XBPS_CROSS_TRIPLET} as you suggested in the github issue.
But it still used HOSTCC to builds executables in scripts/, I’m currently looking into it.

/e; ah I guess without CROSS_COMPILE it would work.