From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [209.85.219.221] (helo=mail-ew0-f221.google.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MfDLC-0000U0-Jn for openembedded-devel@lists.openembedded.org; Sun, 23 Aug 2009 15:42:38 +0200 Received: by ewy21 with SMTP id 21so1914350ewy.21 for ; Sun, 23 Aug 2009 06:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=qlzf9/BC6TjsnCegqm6Cb2e6PobPp3O5m9MBiyg66qE=; b=ks+85HbVx/ELEtP7+2qi9JVllbKC3uJSq1uOcv8lrOCHF0w9VylK50tg2fLwGYFWyA NFcrPq1Z6ihboVhMPFq04gp1XhILmCEoVHP62rp2e1ORQTQS5c4htKuvHhvPOCC+XLhk iGhL7Fgw9OdI+Rcq7mx1G+yufWjEMRVD3DuvA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=A1t5V5lY7Yg1oZKfV5XIJwI5c7Q+8ApVW3Bf4MNgh7VkBYoFxHnERJscA96htzoXk2 qqeooMO8EPEbN+i4q5Xf/ASo2iwBST7vyBTVrmGT0GPDxEGqh9O0r3bfvwRanGfpuOfi TPNy5QIBO4uzdZ/NJgMlciuFZeAP7OPLa4uO0= Received: by 10.211.199.19 with SMTP id b19mr3804668ebq.92.1251033899449; Sun, 23 Aug 2009 06:24:59 -0700 (PDT) Received: from ?192.168.0.7? ([92.255.143.155]) by mx.google.com with ESMTPS id 5sm8277251eyf.18.2009.08.23.06.24.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Aug 2009 06:24:59 -0700 (PDT) Message-ID: <4A91434D.6070203@gmail.com> Date: Sun, 23 Aug 2009 19:25:33 +0600 From: Dmitry Vinokurov User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: openembedded-devel@lists.openembedded.org References: <4A8D4947.5030108@gmail.com> <200908201526.46349.holger+oe@freyther.de> <4A8D98FB.5000400@gmail.com> <200908210343.48652.holger+oe@freyther.de> <4A8F9BE3.1020606@gmail.com> <4A8FA20F.5050401@gmail.com> <20090822231735.GA12848@gmail.com> <4A90C2F4.1010300@gmail.com> <20090823065305.GA6361@gmail.com> In-Reply-To: <20090823065305.GA6361@gmail.com> Subject: Re: LPC3250, helloworld-image, configure: error: cannot run C compiled programs X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2009 13:42:38 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Khem Raj wrote: > On (23/08/09 10:17), Dmitry Vinokurov wrote: > >>>>> ERROR: '/home/raydan/work/oe/openembedded/recipes/module-init-tools/module-init-tools-cross_3.2.2.bb' >>>>> failed >>>>> -------- >>>>> >>>>> I.e. bitbake again confused cross-gcc and x86-gcc. Updated my OE >>>>> with git pull, removed tmp/ and made rebuild -- same result. >>>>> >>>> Looks like error is in wrong ./configure parameter: >>>> --host=i686-linux instead of --host=arm-oe-linux-gnueabi . >>>> Now I'm trying to find, why --host was set to i686 and where it can >>>> be changed. >>>> >>> its a cross package so host being i686-linux (I suppose you are building >>> on i686 box) is ok. Look into the config.log error message should be in >>> there >>> >>> -Khem >>> >> Hm, "configure --help" says "--host=HOST cross-compile to build >> programs to run on HOST [BUILD]" and as I understand, I will run >> programs on ARM, so it should be 'arm-oe-linux-gnueabi'. >> >> Anyway, even if host should be x86, instead of i686-linux-gcc it >> finds arm-vfp-linux-gcc and fails. >> > > dont confuse pure cross with canadian cross. You are doing a normal > cross build here which means build machine is same as host machine. > > Your problem is probably because you are overriding CC and friends > which could be confusing (already confused) configure even more. > > Try setting CC_FOR_BUILD= > > Thanks > > -Khem > Thank you for your help. I'm newbie in OE and crosscompiling at all and may confuse some things. Just now I've tried to build some not so simple as helloworld but not so complicated as kernel -- bc calculator. And I'd like to say that during configure stage it sets: --build=i686-linux --host=arm-oe-linux-gnueabi --target=arm-oe-linux-gnueabi Builded bc works fine on my board and this is normal, not canadian, cross build. -- Best Regards, Dmitry Vinokurov