From patchwork Thu Oct 30 20:42:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 39848 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AF95B20C70 for ; Thu, 30 Oct 2014 20:37:36 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id n15sf3377058lbi.10 for ; Thu, 30 Oct 2014 13:37:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:references:in-reply-to:cc:subject:precedence :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list :content-transfer-encoding:content-type; bh=Hs9cPrqXC0pvaxiUdvKcVKes/EoiApDL0SUbxvR4jPY=; b=K1g+2kMcj4d+X0+ghBeYUuuvqtO73kfOyqq77F2T6KLMe/A0D5X7dX9a6KOQZhYsLO AK+w1XBcW33t1Gi3hZkMf2QGCUCswTwZ5m/RDKgC1HmlGN/kQ60M+9xo8RRJS+rCFRrm MjDaMwjLdsXRvmbJIApfzN5Eedw2Fr0DGJXozNoxAwY7+tcrX9u6tiLp27AZHC1K4JzW ELZtmHcFlOoA5L8iB8NcuMkVSHMBnEQmMfszGNr2+H5JL1C53fL7H8i1FN1wCer4EuSk AB9b11J9kTxE9vvWVMN0phgnlrFvUmsy+uklOQmVrCGaK/JZH3t5q5UM1d5xVInPzj1t +OMQ== X-Gm-Message-State: ALoCoQlKgh1qMWQYlzYjHxSO9/gJOkGm652L20AK52p9HuAqEE5tz0Dp+Ql/wMZyQP7V8LOvcLA9 X-Received: by 10.180.19.226 with SMTP id i2mr2670162wie.5.1414701454887; Thu, 30 Oct 2014 13:37:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.137 with SMTP id j9ls168416laa.45.gmail; Thu, 30 Oct 2014 13:37:34 -0700 (PDT) X-Received: by 10.112.133.138 with SMTP id pc10mr21649740lbb.48.1414701454726; Thu, 30 Oct 2014 13:37:34 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id s10si13747559lal.38.2014.10.30.13.37.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 13:37:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id mc6so5011797lab.40 for ; Thu, 30 Oct 2014 13:37:34 -0700 (PDT) X-Received: by 10.152.120.199 with SMTP id le7mr21181799lab.67.1414701454387; Thu, 30 Oct 2014 13:37:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp105028lbz; Thu, 30 Oct 2014 13:37:33 -0700 (PDT) X-Received: by 10.180.188.41 with SMTP id fx9mr22019944wic.59.1414701453693; Thu, 30 Oct 2014 13:37:33 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id f19si11524353wjn.161.2014.10.30.13.37.33 for ; Thu, 30 Oct 2014 13:37:33 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 37A3A4BB14; Thu, 30 Oct 2014 21:37:32 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vmtc+dwaF9Zo; Thu, 30 Oct 2014 21:37:31 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5736F4BB0B; Thu, 30 Oct 2014 21:37:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 112564BB0B for ; Thu, 30 Oct 2014 21:37:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cYOtSBH7WzOV for ; Thu, 30 Oct 2014 21:37:26 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-gw1-out.broadcom.com (mail-gw1-out.broadcom.com [216.31.210.62]) by theia.denx.de (Postfix) with ESMTP id 3CAAB4BB09 for ; Thu, 30 Oct 2014 21:37:22 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.07,288,1413270000"; d="scan'208";a="49767953" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw1-out.broadcom.com with ESMTP; 30 Oct 2014 15:04:37 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 30 Oct 2014 13:37:20 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Thu, 30 Oct 2014 13:37:26 -0700 Received: from [10.136.4.105] (lbrmn-vmlnx03.ric.broadcom.com [10.136.4.105]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5C98640FE5; Thu, 30 Oct 2014 13:37:03 -0700 (PDT) Message-ID: <5452A2A6.5000601@broadcom.com> Date: Thu, 30 Oct 2014 13:42:14 -0700 From: Steve Rae User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Simon Glass References: <54526E0F.5090500@broadcom.com> In-Reply-To: <54526E0F.5090500@broadcom.com> Cc: "u-boot@lists.denx.de" Subject: Re: [U-Boot] buildman: using wrong libgcc.a X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srae@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Hmmmm -- maybe it would be better to specify the entire path for the CROSS_COMPILE, and not rely on the PATH to find the cross compile tools: On 14-10-30 09:57 AM, Steve Rae wrote: > Hi Simon, > > In my environment, buildman and MAKEALL are not producing the same results. > > It seems that buildman is accidentally picking up the wrong libgcc.a ... > > > *** buildman *** > > $ cat ~/.buildman > [toolchain] > eldk: > /opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi > > > [toolchain-alias] > $ > > > $ tools/buildman/buildman --list-tool-chains > No section: 'make-flags' > Scanning for tool chains > - scanning path > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi' > > - looking in > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/.' > > - found > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/./armv7a-gcc' > > Tool chain test: OK > - found > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/./arm-linux-gnueabi-gcc' > > Tool chain test: OK > - looking in > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/bin' > > - looking in > '/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/usr/bin' > > List of available toolchains (2): > arm : > /opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/./arm-linux-gnueabi-gcc > > armv7a : > /opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/./armv7a-gcc > > $ > > > $ tools/buildman/buildman bcm28155_ap -x bcm28155_w1d -fk > No section: 'make-flags' > WARNING: no status info for 'Ippo_q8h' > WARNING: no maintainers for 'Ippo_q8h' > Building current source for 1 boards (1 thread, 8 jobs per thread) > 1 0 0 /1 bcm28155_ap > $ > > > $ head -14 ../current/current/bcm28155_ap/u-boot.map > Archive member included because of file (symbol) > > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_udivsi3.o) > arch/arm/cpu/armv7/bcm281xx/built-in.o > (__aeabi_uidiv) > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_divsi3.o) > common/built-in.o (__aeabi_idiv) > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_lshrdi3.o) > lib/built-in.o (__aeabi_llsr) > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_ashldi3.o) > drivers/mmc/built-in.o (__aeabi_llsl) > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_dvmd_lnx.o) > > /usr/lib/gcc/arm-linux-gnueabi/4.6/libgcc.a(_udivsi3.o) (__aeabi_idiv0) > > Discarded input sections > $ > > > *** MAKEALL *** > > $ > CROSS_COMPILE_ARM=/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/arm-linux-gnueabi- > ./MAKEALL -b bcm28155_ap > $ > > > $ head -14 u-boot.map > Archive member included because of file (symbol) > > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_udivsi3.o) > > arch/arm/cpu/armv7/bcm281xx/built-in.o > (__aeabi_uidiv) > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_divsi3.o) > > common/built-in.o (__aeabi_idiv) > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_lshrdi3.o) > > lib/built-in.o (__aeabi_llsr) > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_ashldi3.o) > > drivers/mmc/built-in.o (__aeabi_llsl) > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_dvmd_lnx.o) > > > /opt/eldk-5.4/armv7a/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/arm-linux-gnueabi/4.7.2/libgcc.a(_udivsi3.o) > (__aeabi_idiv0) > > Discarded input sections > $ diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py index 27dc318..58c7b1f 100644 --- a/tools/buildman/toolchain.py +++ b/tools/buildman/toolchain.py @@ -33,6 +33,7 @@ class Toolchain: self.cross = os.path.basename(fname)[:-3] pos = self.cross.find('-') self.arch = self.cross[:pos] if pos != -1 else 'sandbox' + self.cross = fname[:-3] env = self.MakeEnvironment() @@ -82,7 +83,6 @@ class Toolchain: """ env = dict(os.environ) env['CROSS_COMPILE'] = self.cross - env['PATH'] += (':' + self.path) return env