From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [74.125.78.148] (helo=ey-out-1920.google.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1Mg0NW-0002SJ-8O for openembedded-devel@lists.openembedded.org; Tue, 25 Aug 2009 20:04:20 +0200 Received: by ey-out-1920.google.com with SMTP id 5so674764eyb.4 for ; Tue, 25 Aug 2009 10:46:26 -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=5x1GuO3cqbBjttyVMn/gZ22Zqw3DeR1+/Umj1bDhUAE=; b=WPsuduDZjcZIn/ZY5GcFtUNN1GGStHglHWClNYVfEM/3m9KgC7lDT1YR1Mi/JtwrMl y9XPhPlDgvo9kOVYWtxyTSTwpd/S3r7O7+MC4U2G9IWFx67NkovVAcUASRO9FamsuoUd DykNZ019OmechwplYY905TrAUY6lrfbvAm19o= 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=DVbGfS2I+5SlBjY0Uqy9Y95hziAc0XGVG5ntKrSQuKbBaLmu6UIFZzweUXo7nK4Dfc BfSJhixn+FzGq8mft+F49+ljdgFq9O6jssrwxhi69N7wiUBc+Sqm1a/+iPsyZpT0uxhS a0J3UuQnRZ/idoC5ZTdVHOBXDgn8mcTQBDBm8= Received: by 10.210.116.17 with SMTP id o17mr6669291ebc.33.1251222386729; Tue, 25 Aug 2009 10:46:26 -0700 (PDT) Received: from ?192.168.0.7? ([94.180.47.99]) by mx.google.com with ESMTPS id 10sm1523110eyz.41.2009.08.25.10.46.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Aug 2009 10:46:26 -0700 (PDT) Message-ID: <4A942399.2020106@gmail.com> Date: Tue, 25 Aug 2009 23:47:05 +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> <4A91434D.6070203@gmail.com> <20090823154300.GA9250@gmail.com> In-Reply-To: <20090823154300.GA9250@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: Tue, 25 Aug 2009 18:04:35 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Khem Raj wrote: > On (23/08/09 19:25), Dmitry Vinokurov wrote: > >> 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. >> > > its a target package being built on build machine. Your build was failing to compile a package which > will run on your host (similar to cross compilers) they are not same > cases. module-init-tools would be analogically similar to bc but not > module-init-tools-cross which is the package you reported failing. > Yes, you're right. Recently read documentation more attentively (http://docs.openembedded.org/usermanual/usermanual.html#recipes_variables) and understood that I was wrong. Now appearing errors are more familiar to me and I hope soon image for LPC3250 will be built successfully and I'll report about it. -- Best Regards, Dmitry Vinokurov