You are not logged in.

#1 2018-07-13 11:50:04

Registered: 2018-03-05
Posts: 11

cross compiling for armv7

Hi folks,

I'm trying to cross-compile u-boot-rockchip on my arch linux system, kernel 4.17.5-1 x86_64, toolchain arm-unknown-linux-gnueabihf- setup according to the cross compile wiki, but I get multiple error messages about missing compiler-gcc8.h:

make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabihf- menuconfig
Generating include/
In file included from /home/martin/Downloads/xcompile/u-boot-rockchip/include/linux/compiler.h:40,
                 from /home/martin/Downloads/xcompile/u-boot-rockchip/include/linux/byteorder/little_endian.h:12,
                 from /home/martin/Downloads/xcompile/u-boot-rockchip/arch/arm/include/asm/byteorder.h:29,
                 from /home/martin/Downloads/xcompile/u-boot-rockchip/include/compiler.h:112,
                 from /home/martin/Downloads/xcompile/u-boot-rockchip/include/image.h:19,
                 from include/common.h:100:
/home/martin/Downloads/xcompile/u-boot-rockchip/include/linux/compiler-gcc.h:93:1: fatal error: linux/compiler-gcc8.h: No such file or directory
 #include gcc_header(__GNUC__)
compilation terminated.

The following gcc packages are installed:

core/gcc 8.1.1+20180531-1 (base-devel)
core/gcc-libs 8.1.1+20180531-1 (base) 

I'm using the ARMv7l hard-float linked in the wiki.

How can I fix this  ? smile

Last edited by Linux2Brain (2018-07-13 11:54:42)


#2 2018-07-13 17:07:42

Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 8,265

Re: cross compiling for armv7

Mod note: Not a programming or scripting issue, moving to Other Architectures.

Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.


#3 2018-07-13 18:11:55

Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 9,553

Re: cross compiling for armv7

When I cross compile, I ssh into the target machine (armv7 or aarch64) and run distcc on my x86_64 box.  Is that an option?  The AUR contains the Arch ARM toolchain: … rm-armv7h/

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!


#4 2018-07-31 08:59:17

From: my computer
Registered: 2007-08-19
Posts: 1,468

Re: cross compiling for armv7

As OP I'm on the same band wagon. Trying to compile for RockChip3288 on a Thinker Board.
What to set up to the master in order to compile the kernel?
I've tried to set a cross compiling, but is most like OP, but I downloaded this kernel. I'd like to fix the WiFi AP function.

I could boot the ALARM, by the help of a debian kernel (TinkerOS or Armbian), but I can't get the ALarm kernel working.
Then If I boot Alarm, as I mentioned, I don't have WiFi at all. It seems that the firmware is missing. Also some problem to get the wired connection working and internet sharing, so I can't do much further.

do it good first, it will be faster than do it twice the saint wink


Board footer

Powered by FluxBB