From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1.mentorg.com ([192.94.38.131]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QmcBQ-0001Pn-8w for openembedded-core@lists.openembedded.org; Fri, 29 Jul 2011 03:48:12 +0200 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Qmc7I-0000Vh-RG from Tom_Rini@mentor.com for openembedded-core@lists.openembedded.org; Thu, 28 Jul 2011 18:43:56 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 28 Jul 2011 18:43:56 -0700 Received: from [172.30.80.87] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Thu, 28 Jul 2011 18:43:55 -0700 Message-ID: <4E321053.1050305@mentor.com> Date: Thu, 28 Jul 2011 18:43:47 -0700 From: Tom Rini Organization: Mentor Graphics Corporation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: References: <2241650b6cb4e409a5463d38cfa0274eec3a3ee2.1311836896.git.lei.mei@intel.com> <4E317B82.1020907@mentor.com> <749B9D3DBF0F054390025D9EAFF47F2212D0F6D3D5@shsmsx501.ccr.corp.intel.com> In-Reply-To: <749B9D3DBF0F054390025D9EAFF47F2212D0F6D3D5@shsmsx501.ccr.corp.intel.com> X-Enigmail-Version: 1.1.1 X-OriginalArrivalTime: 29 Jul 2011 01:43:56.0656 (UTC) FILETIME=[FAE0AF00:01CC4D90] Subject: Re: [PATCH 1/1] python-native: Fix a compiler finding issue X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2011 01:48:12 -0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 07/28/2011 06:15 PM, Mei, Lei wrote: > > >> -----Original Message----- >> From: openembedded-core-bounces@lists.openembedded.org >> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of >> Tom Rini >> Sent: Thursday, July 28, 2011 11:09 PM >> To: openembedded-core@lists.openembedded.org >> Subject: Re: [OE-core] [PATCH 1/1] python-native: Fix a compiler finding issue >> >> On 07/28/2011 12:20 AM, Mei Lei wrote: >>> The CC variable sometimes add option information after compiler name, but >> python can't get the real compiler name if those information added. >>> Fix this issue by dropping the option information when finding compiler name. >>> >>> Signed-off-by: Mei Lei >> >> I think this is going to cause problems when you must pass flags to gcc >> to have it work, eg 'gcc -m64'. > > This patch fixed your worried issue. > The CC variable, sometimes like: "x86_64-poky-linux-gcc -m64 --sysroot=/${TMPDIR}/sysroots/qemux86-64", contains flags information. > This will lead to wrong compiler name "qemux86-64" rather than "x86_64-poky-linux-gcc" when python finding the compiler name, so add this patch to find the real gcc name. No, what I'm saying is I have a compiler that must be invoked as 'gcc -m64' (which is what BUILD_CC is). So, I think after saying that, the right answer is to modify python to read the OE-specific BUILD_CC variable. -- Tom Rini Mentor Graphics Corporation