I was trying to build Linux 2.4 for Apalis iMX6 using the steps provided at:
I have setup my cross compiler tool-chain (Linaro 4.9) and it is on the $PATH
adwait@adwait-Lenovo-ideapad-100-15IBD:~$ echo $PATH
/home/adwait/gcc-linaro/bin/:/usr/local/cuda-6.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Then I have performed the following steps for getting the source:
adwait@adwait-Lenovo-ideapad-100-15IBD:~$ cd Desktop/Workstation/
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation$ git clone -b toradex_imx_3.10.17_1.0.0_ga git://git.toradex.com/linux-toradex.git
Cloning into 'linux-toradex'...
remote: Counting objects: 5574315, done.
remote: Compressing objects: 100% (837818/837818), done.
remote: Total 5574315 (delta 4699343), reused 5572559 (delta 4697690)
Receiving objects: 100% (5574315/5574315), 1.15 GiB | 1.17 MiB/s, done.
Resolving deltas: 100% (4699343/4699343), done.
Checking connectivity... done.
Checking out files: 100% (43376/43376), done.
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation$
After that I attempt to build with the default config, but it fails:
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation$ cd linux-toradex/
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation/linux-toradex$ make apalis_imx6_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation/linux-toradex$ make clean
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation/linux-toradex$ make -j3 uImage LOADADDR=10008000
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/current.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/exec.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/ipcbuf.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/msgbuf.h
WRAP arch/arm/include/generated/asm/param.h
WRAP arch/arm/include/generated/asm/parport.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/segment.h
WRAP arch/arm/include/generated/asm/sembuf.h
WRAP arch/arm/include/generated/asm/serial.h
WRAP arch/arm/include/generated/asm/shmbuf.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
WRAP arch/arm/include/generated/asm/socket.h
WRAP arch/arm/include/generated/asm/sockios.h
WRAP arch/arm/include/generated/asm/termbits.h
WRAP arch/arm/include/generated/asm/termios.h
WRAP arch/arm/include/generated/asm/timex.h
WRAP arch/arm/include/generated/asm/trace_clock.h
WRAP arch/arm/include/generated/asm/types.h
WRAP arch/arm/include/generated/asm/unaligned.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/dtc/data.o
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
Generating include/generated/mach-types.h
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTLD scripts/genksyms/genksyms
CC kernel/bounds.s
HOSTCC scripts/dtc/livetree.o
In file included from include/linux/compiler.h:54:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /home/adwait/Desktop/Workstation/linux-toradex/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
In file included from include/linux/compiler.h:54:0,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /home/adwait/Desktop/Workstation/linux-toradex/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/mod_devicetable.h:11,
from scripts/mod/devicetable-offsets.c:2:
include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory
compilation terminated.
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[2]: *** Waiting for unfinished jobs....
HOSTCC scripts/kallsyms
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
make: *** [scripts] Error 2
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation/linux-toradex$
The steps are failing because of this line in the script:
include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No such file or directory
I checked the directory listing for include/linux/
adwait@adwait-Lenovo-ideapad-100-15IBD:~/Desktop/Workstation/linux-toradex$ ls include/linux/compiler*
include/linux/compiler-gcc3.h include/linux/compiler-gcc4.h include/linux/compiler-gcc.h include/linux/compiler.h include/linux/compiler-intel.h
As you can see the compiler-gcc5.h file does not exist.
Can someone please provide a solution for this, I am sure it is a minor issue.
Thanks.