From: Adrian Bunk <bunk@kernel.org>
To: sampo@symlabs.com
Cc: linux-kbuild@vger.kernel.org
Subject: Re: gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas
Date: Thu, 1 May 2008 19:53:33 +0300 [thread overview]
Message-ID: <20080501165333.GG29330@cs181133002.pp.htv.fi> (raw)
In-Reply-To: <34486.81.193.128.196.1209659903.squirrel@galactus.symlabs.net>
On Thu, May 01, 2008 at 06:38:23PM +0200, sampo@symlabs.com wrote:
> Adrian Bunk wrote:
> > On Thu, May 01, 2008 at 05:05:47PM +0200, sampo@symlabs.com wrote:
> >> Adrian Bunk wrote:
> >> > On Thu, May 01, 2008 at 07:07:55AM +0200, sampo@symlabs.com wrote:
> >> >> Platform: x86
> >> >> Compiler: gcc-3.4.6
> >> >> Binutils: 2.17.50.0.8
> >> >> Kernel under build: 2.6.25 (from kernel.org)
> >> >>
> >> >> Problem: Build fails due to incompatibility of asm-offsets.h with
> >> >> assembler. See below:
> >> >>
> >> >> gcc -Wp,-MD,arch/x86/kernel/.entry_32.o.d -nostdinc -isystem
> >> >> /apps/gcc/3.4.6/lib/gcc/i686-pc-linux-gnu/3.4.6/include -D__KERNEL__
> >> >> -Iinclude -include include/linux/autoconf.h -D__ASSEMBLY__ -m32
> >> >> -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
> >> >> -Iinclude/asm-x86/mach-default -c -o arch/x86/kernel/entry_32.o
> >> >> arch/x86/kernel/entry_32.S
> >> >> include/asm/asm-offsets.h: Assembler messages:
> >> >> include/asm/asm-offsets.h:10: Error: invalid character '_' in
> >> mnemonic
> >> >> include/asm/asm-offsets.h:11: Error: invalid character '_' in
> >> mnemonic
> >> >> include/asm/asm-offsets.h:12: Error: invalid character '_' in
> >> mnemonic
> >> >> include/asm/asm-offsets.h:13: Error: invalid character '_' in
> >> mnemonic
> >> >> include/asm/asm-offsets.h:14: Error: invalid character '_' in
> >> mnemonic
> >> >> include/asm/asm-offsets.h:15: Error: invalid character '_' in
> >> mnemonic
> >> >> (snip - much more of the same)
> >> >>...
> >> >
> >> > Thanks for your report.
> >> >
> >> > Please send:
> >> > - your .config
> >> > - your include/asm/asm-offsets.h
> >>
> >> Please see attached. FYI
> >>
> >> ls-alFg include/asm
> >> lrwxrwxrwx 1 sampo sampo 7 May 1 02:30 include/asm -> asm-x86/
> >
> > Thanks, the next things I need are:
> > - arch/x86/kernel/asm-offsets.s
>
> See attached.
Thanks.
> > - the output of "sed --version"
>
> sed --version
> GNU sed version 4.1.5-boot
>...
Where does this "4.1.5-boot" version come from?
Is this some stripped down version of sed?
If you run
sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" < asm-offsets.s
with your asm-offsets.s file and this sed, does the result contain
IA32_SIGCONTEXT_ax $44 offsetof(struct sigcontext, ax) #
or
#define IA32_SIGCONTEXT_ax 44 /* offsetof(struct sigcontext, ax) # */
> To facilitate more rapid communication,
>...
You already answer faster than the speed of light. :-)
> Cheers,
> --Sampo
Thanks
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2008-05-01 16:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-01 5:07 gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas sampo
2008-05-01 12:06 ` Adrian Bunk
2008-05-01 15:05 ` sampo
2008-05-01 16:34 ` Adrian Bunk
2008-05-01 16:38 ` sampo
2008-05-01 16:53 ` Adrian Bunk [this message]
2008-05-01 17:10 ` sampo
2008-05-01 18:53 ` `sed`ing asm-offsets (Re: gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas) Oleg Verych
2008-05-01 21:42 ` Sam Ravnborg
2008-05-01 21:52 ` Oleg Verych
2008-05-01 22:54 ` Oleg Verych
2008-05-01 19:17 ` gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas Adrian Bunk
2008-05-01 21:39 ` Sam Ravnborg
2008-05-01 22:07 ` Adrian Bunk
2008-05-02 0:53 ` sampo
2008-05-02 1:48 ` Oleg Verych
2008-05-02 6:08 ` Sam Ravnborg
2008-05-02 10:56 ` Oleg Verych
2008-05-02 10:42 ` Sam Ravnborg
2008-05-02 11:25 ` source processing-friendly scripting Oleg Verych
2008-05-02 6:06 ` gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas Sam Ravnborg
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=20080501165333.GG29330@cs181133002.pp.htv.fi \
--to=bunk@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=sampo@symlabs.com \
/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