problem cross compiling Linux
Mark Slicker
mark.slicker@gmail.com
Tue Aug 4 05:30:00 GMT 2009
Hello,
First of all, thanks for crosstool, I successfully built an ARM gcc
toolchain, which would have been difficult without those scripts. I
need the ARM toolchain to compile Linux, but I'm encountering a
problem during the compile, it would appear that gcc can't find the
ARM toolchain headers. I was wondering if anyone is familiar with this
problem and knows if is related to crosstool setup, or knows how to
fix it. I'm using the latest cygwin (1.5.25-15) and the
gcc-4.0.2-glibc-2.3.6 toolchain which I compiled. I'm compiling Linux
2.6.30.3, with patches for cygwin, and the at91sam9263 chip. Below is
the build log.
Best,
Mark
---
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
In file included from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/types.h:4:23: error: asm/types.h: No such file or directory
In file included from include/linux/types.h:14,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such
file or directory
In file included from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/types.h:18: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__kernel_dev_t'
include/linux/types.h:21: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'dev_t'
include/linux/types.h:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ino_t'
include/linux/types.h:23: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'mode_t'
include/linux/types.h:24: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'nlink_t'
include/linux/types.h:25: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'off_t'
include/linux/types.h:26: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pid_t'
include/linux/types.h:27: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'daddr_t'
include/linux/types.h:29: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'suseconds_t'
include/linux/types.h:30: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'timer_t'
include/linux/types.h:31: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'clockid_t'
include/linux/types.h:36: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uid_t'
include/linux/types.h:37: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'gid_t'
include/linux/types.h:38: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uid16_t'
include/linux/types.h:39: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'gid16_t'
include/linux/types.h:45: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'old_uid_t'
include/linux/types.h:46: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'old_gid_t'
include/linux/types.h:50: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'loff_t'
include/linux/types.h:59: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'size_t'
include/linux/types.h:64: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ssize_t'
include/linux/types.h:69: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ptrdiff_t'
include/linux/types.h:74: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'time_t'
include/linux/types.h:79: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'clock_t'
include/linux/types.h:84: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'caddr_t'
include/linux/types.h:102: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'u_int8_t'
include/linux/types.h:103: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int8_t'
include/linux/types.h:104: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'u_int16_t'
include/linux/types.h:105: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int16_t'
include/linux/types.h:106: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'u_int32_t'
include/linux/types.h:107: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int32_t'
include/linux/types.h:111: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uint8_t'
include/linux/types.h:112: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uint16_t'
include/linux/types.h:113: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uint32_t'
include/linux/types.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uint64_t'
include/linux/types.h:117: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'u_int64_t'
include/linux/types.h:118: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'int64_t'
include/linux/types.h:168: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__le16'
include/linux/types.h:169: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__be16'
include/linux/types.h:170: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__le32'
include/linux/types.h:171: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__be32'
include/linux/types.h:172: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__le64'
include/linux/types.h:173: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__be64'
include/linux/types.h:175: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__sum16'
include/linux/types.h:176: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__wsum'
include/linux/types.h:185: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'phys_addr_t'
include/linux/types.h:188: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'resource_size_t'
include/linux/types.h:201: error: expected specifier-qualifier-list
before '__kernel_daddr_t'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list