Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755515Ab0KHTFI (ORCPT ); Mon, 8 Nov 2010 14:05:08 -0500 Received: from pfepa.post.tele.dk ([195.41.46.235]:43091 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753635Ab0KHTFG (ORCPT ); Mon, 8 Nov 2010 14:05:06 -0500 Date: Mon, 8 Nov 2010 20:05:01 +0100 From: Sam Ravnborg To: Ben Gamari Cc: =?iso-8859-1?Q?Am=E9rico?= Wang , Christoph Egger , linux-kernel@vger.kernel.org, linux-kbuild , Michal Marek Subject: Re: fstat suddenly return -EINVAL [Was: Bus error on make allyesconfig, kernelbuild with HEAD] Message-ID: <20101108190501.GA26866@merkur.ravnborg.org> References: <20101106162426.GA14361@merkur.ravnborg.org> <87tyjtjd7m.fsf@gmail.com> <20101107170700.GA22684@merkur.ravnborg.org> <87mxplypid.fsf@gmail.com> <20101107223056.GA23871@merkur.ravnborg.org> <87lj54raw3.fsf@gmail.com> <20101108101920.GA5527@cr0.nay.redhat.com> <87d3qgq9ca.fsf@gmail.com> <20101108182209.GA26742@merkur.ravnborg.org> <87d3qfejy5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d3qfejy5.fsf@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2281 Lines: 65 > > > fstat appears to be failing for every file (the file= line is printed > right before the fstat; there seems to be a corresponding error for > every file= so I'm inferring that it must always fail): > > $ make > HOSTCC scripts/basic/fixdep > file=scripts/basic/.fixdep.d > fixdep: fstat failed: Invalid argument But open succedd - because we see no output from that one. > It actually seems as if the problem might be that none of these files > actually exist: > > $ find scripts -iname .*.d > $ > > How are .d files supposed to be generated? They are generated by kbuild. See scripts/Kbuild.include: # Execute the command and also postprocess generated .d dependencies file. if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ @set -e; \ $(echo-cmd) $(cmd_$(1)); \ scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ ==> rm -f $(depfile); \ mv -f $(dot-target).tmp $(dot-target).cmd) If you delete the line marked "==>" then you should have .d files are a build. > > From your previous posting it looks like you have some special setting > > that impact your choice of HOST gcc. > > Do you define HOSTCC somewhere? > > > I don't think I do define HOSTCC anywhere. My cross compilation > environment is as follows, > > source /usr/local/angstrom/arm/environment-setup > export ARCH=arm > export CROSS_COMPILE=arm-angstrom-linux-gnueabi- So far it looks OK. > export CC=${CROSS_COMPILE}gcc > export CXX=${CROSS_COMPILE}g++ This part is wrong. The kernel will do this for you. It should not cause any harm... > > OE_ENV_ROOT=/home/bgamari/OE/angstrom-dev > SYSROOT=$OE_ENV_ROOT/sysroots/armv7a-angstrom-linux-gnueabi > export LD_LIBRARY_PATH=$SYSROOT/lib:$SYSROOT/usr/lib > export CFLAGS=-I$OE_ROOT/lib/gcc/arm-angstrom-linux-gnueabi/4.3.1/include These looks unrelated. Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/