Do you build natively on that ARM or cross-build on an x86? The build errors 
suggest you are (or intend to do) building on an x86 machine.

Did you set both ARCH and CROSS_COMPILE variables before building?
e.g. for ARM64:
export ARCH=arm64
export CROSS_COMPILE=aarch64-fsl-linux-

Do you use kernel sources for your arm cross-build distinct from your host 
/home/user/linux_sources_for_bb   instead of

The line referencing /lib/modules/4.8.1-1-ARCH/build suggests that you're setup 
is mixing up x86 and arm objects and configuration.

Cristian S.

From: Cryptodev-linux-devel <> on behalf 
of Sebastian Anding <>
Sent: Friday, October 14, 2016 3:37:38 AM
Subject: [Cryptodev-linux-devel] make install failed / kernel headers wrong?

Hi list,

I tried to build the latest git version ofcryptodev on arm arch linux.
The used kernel version is:

uname -a
Linux <hostname> 4.8.1-1-ARCH #1 Sun Oct 9 19:47:11 MDT 2016 armv7l

sudo make install

make -C /lib/modules/4.8.1-1-ARCH/build M= modules_install
make[1]: Entering directory '/usr/lib/modules/4.8.1-1-ARCH/build'
scripts/kconfig/conf  --silentoldconfig Kconfig
drivers/ras/Kconfig:33: can't open file "arch/x86/ras/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:38: silentoldconfig] Error 1
make[2]: *** [Makefile:545: silentoldconfig] Error 2
cp: cannot stat './modules.order': No such file or directory
make[1]: *** [Makefile:1205: _modinst_] Error 1
make[1]: Leaving directory '/usr/lib/modules/4.8.1-1-ARCH/build'
make: *** [Makefile:35: modules_install] Error 2

/usr/lib/modules/4.8.1-1-ARCH/build/drivers/ras/Kconfig shows

if RAS

source arch/x86/ras/Kconfig


But the file arch/x86/Kconfig does not exist.

Header files seem to be installed this time:

4.8.1-1 [installed] Header files and scripts for building modules for

linux kernel - TI AM335x Beaglebone (Black) core/linux-api-headers 4.7-1
[installed] Kernel headers sanitized for use in userspace

Is the error depending on the missing header file or can this be fixed
in cryptodev Makefile somehow?


PS: Please CC me because I'm not subscribed to this mailing list.

Cryptodev-linux-devel mailing list

Cryptodev-linux-devel mailing list

Reply via email to