From: Sam Ravnborg <sam@ravnborg.org>
To: Adrian Bunk <bunk@kernel.org>
Cc: sampo@symlabs.com, 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 23:39:52 +0200 [thread overview]
Message-ID: <20080501213952.GA8281@uranus.ravnborg.org> (raw)
In-Reply-To: <20080501191714.GM29330@cs181133002.pp.htv.fi>
On Thu, May 01, 2008 at 10:17:14PM +0300, Adrian Bunk wrote:
> On Thu, May 01, 2008 at 07:10:42PM +0200, sampo@symlabs.com wrote:
> > Adrian Bunk wrote:
> >...
> > >> > - 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?
> >
> > Interesting question. I do use busybox as my userland for most purposes,
> > but in case of sed I believe it really is the gnu sed.
> >
> > which sed
> > /usr/bin/sed
> > /usr/bin/sed --version
> > GNU sed version 4.1.5-boot
> >...
> > sampo@jin:/aino/linux 0$ /bin/sed --version
> > This is not GNU sed version 4.0
> >
> > The former, which is gnu sed, should be picked up by PATH. The latter
> > which appears to be picked by make, is the busybox sed. The gnu sed was
> > compiled by me for my own distro, hence -boot label, but has not been
> > stripped down in any way.
>
> Thanks, that explains your problems.
>
> > > 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)
> > > # */
> >
> > The latter. Which one is correct? Is asm-offsets.h the output of
> > the above command? Please confirm.
>
> The sed script transform the former to the latter.
> You had the untransformed former which isn't valid code and therefore
> failed to compile.
>
> > Since on command line it seems to work fine,
> > but in make time it bombs, I suspect make somehow manages to find
> > the busybox sed, which verifiably produces output
> >...
> > Thus this is probably a PATH issue of some sort. I will investigate,
> > but will not delay this response.
> >
> > Of course as a mild feature request, please fix the sed parts to
> > be more tolerant of lesser seds.
>
> Either more tolerant (which might be non-trivial since there are more
> sed usages in the kernel).
>
> Or at least fail with a clear error message.
>
> @Sam:
> In case you didn't follow this discussion:
> Sampo ran into the problem that the toplevel Kbuild file called a
> non-GNU sed resulting in a broken asm-offsets.h.
Do we know why it picked up the busy box version?
Because from the commandline it was the correct sed - and I do not
know that make should do different.
Sam
next prev parent reply other threads:[~2008-05-01 21:39 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
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 [this message]
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=20080501213952.GA8281@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=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