Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Ben Gamari <bgamari.foss@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: "Américo Wang" <xiyou.wangcong@gmail.com>,
	Egger <siccegge@cs.fau.de>, "Sam Ravnborg" <sam@ravnborg.org>,
	linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Kernel build under meta-toolchain SDK fails
Date: Mon, 22 Nov 2010 20:15:20 -0500	[thread overview]
Message-ID: <87y68kx2l3.fsf@gmail.com> (raw)

Hey all,

Recently I tried updating our openembedded environment for an embedded
application built around the BeagleBoard. Unfortunately, the build
failed while configuring the kernel with an inexplicable bus error. To
trace down the issue I installed the latest meta-toolchain sdk and tried
building a kernel. This resulted in an identical failure,

$ make
  HOSTCC  scripts/basic/fixdep
In file included from /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/stdlib.h:903,
                 from scripts/basic/fixdep.c:112:
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/bits/stdlib.h:65: warning: no previous prototype for ‘ptsname_r’
/bin/sh: line 1:  4192 Bus error               scripts/basic/fixdep scripts/basic/.fixdep.d scripts/basic/fixdep 'gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c  ' > scripts/basic/.fixdep.tmp
make[2]: *** [scripts/basic/fixdep] Error 135
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

The problem is quite early in the build since even make oldconfig fails
in this way. I tried tracking down the bug on the LKML[1] but after some
discussion it seems very likely the problem is a toolchain issue. At
least part of the problem seems to be in fixdep, which fails very
strangely in fstat[2]. I've done quite a bit of debugging[2], but it
seems to be a bit of a heisenbug.

Interestingly enough, I can reproduce the issue both on my personal
laptop (running Ubuntu 10.10, gcc 4.4.5) and our build server (running
Ubuntu 10.04, gcc 4.4.3). It would be great if someone could try
building a kernel from master using openembedded master. Otherwise, any
ideas would be greatly appreciated.

Cheers,

- Ben


[1] http://lkml.org/lkml/2010/11/6/90
[2] http://lkml.org/lkml/2010/11/7/78



             reply	other threads:[~2010-11-23  1:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-23  1:15 Ben Gamari [this message]
2010-11-23  1:25 ` Kernel build under meta-toolchain SDK fails Tom Rini

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=87y68kx2l3.fsf@gmail.com \
    --to=bgamari.foss@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=sam@ravnborg.org \
    --cc=siccegge@cs.fau.de \
    --cc=xiyou.wangcong@gmail.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