From: Mark Slicker <mark.slicker@gmail.com>
To: crossgcc@sourceware.org
Subject: problem cross compiling Linux
Date: Tue, 04 Aug 2009 05:30:00 -0000 [thread overview]
Message-ID: <d5e88f150908032229w36a48c82q18d4fa234b10812f@mail.gmail.com> (raw)
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
reply other threads:[~2009-08-04 5:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5e88f150908032229w36a48c82q18d4fa234b10812f@mail.gmail.com \
--to=mark.slicker@gmail.com \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).