From patchwork Wed Sep 19 03:42:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Holsgrove X-Patchwork-Id: 184924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 7E24E2C0078 for ; Wed, 19 Sep 2012 13:43:39 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1348631020; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Content-Type:MIME-Version:Content-Transfer-Encoding: Subject:Message-Id:User-Agent:Date:From:To:Cc:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=+osO9xxz4xHhiJBqkQ9u AYSIRiQ=; b=UpfZX2oinzBwEfqYvzRNXNKtCxy7AYLoxtw/dwwQlRR9XxN4KudE /P+6bat00VgD5+7hHXjQV/wQghAEhxT3ePovmV4Apa1TcBFyrXg7YJLZfe9IkMVG 74JfvqniLofUp3dIyr1+0GrJsFAK58jIXQGTkEv3cpW4pgtWtz9qm9I= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Content-Type:MIME-Version:Content-Transfer-Encoding:Subject:X-Mercurial-Node:Message-Id:User-Agent:Date:From:To:Cc:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=dj8DUNK6RZSDj9gCgPKg39y1Bse+B2Gi02ca1wL7WU+t3z/9siRgXPgDHiZf6K ylb9p66Gkp1JIx/N8xGWmgq4QDgTl3qRlpe5MUSSfgihUmt4u75W974oxlGWJ5cz z+7zeXVXTcj86g9SHyOqx2HXqdirbOQhxgFOWw7wNwj7w=; Received: (qmail 26003 invoked by alias); 19 Sep 2012 03:43:36 -0000 Received: (qmail 25994 invoked by uid 22791); 19 Sep 2012 03:43:35 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Sep 2012 03:43:19 +0000 Received: by iaby26 with SMTP id y26so342421iab.0 for ; Tue, 18 Sep 2012 20:43:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:content-type:mime-version:content-transfer-encoding:subject :x-mercurial-node:message-id:user-agent:date:from:to:cc :x-gm-message-state; bh=YYIMbnWkv+FkSC22k2Fj1iMbu2J/G9R6d3lGrtr5uwY=; b=cnDOseCwmfETYdAMWyg60TBm1/VsbKYM7iEEzR7SjntmG5xqEDZEF1vE95a5aw01uo CVK9mUVB4kHZPd9UIHok308iCkKQUhA5p6AkAsU23od8nY04bHG93LQ0W/oNLQhc37mc /fujH0ApFBOuzVQbLHidlFbGzTQr1URdq9bCMXeEC0HufdigL95CTln+AWUxGUWTyeW6 FfK3MHU11sjouQ5nyOE4+YUBmuhFVHeCw4BH7mwwe3rk+3+WHgOUxMggwo2odp4thVkb pFB1R4yfm28FS7g3HucmXsgXUBneJBj7FOHoLYYr9ClziqXnn0YBTjFj+YLuZX7gQbZx Rqbw== Received: by 10.50.104.230 with SMTP id gh6mr1795584igb.50.1348026198158; Tue, 18 Sep 2012 20:43:18 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id y9sm2855803igm.10.2012.09.18.20.43.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Sep 2012 20:43:17 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 2] scripts/build/gcc.sh: When compiling a Canadian Cross avoid using -print-multi-lib X-Mercurial-Node: 95abeed3a485c4d5b02e4860fc554d6841e1cc41 Message-Id: <95abeed3a485c4d5b02e.1348026168@localhost.localdomain> User-Agent: Mercurial-patchbomb/unknown Date: Wed, 19 Sep 2012 13:42:48 +1000 From: David Holsgrove To: "Yann E. Morin" Cc: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQmWPTriLdu3ZPODeLeQQOE4Zwqre6y0uwHJQrW3UVzmXVnYgpJYv+dyME0TcmlMzmZtM8H3 X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org # HG changeset patch # User David Holsgrove # Date 1348016639 -36000 # Node ID 95abeed3a485c4d5b02e4860fc554d6841e1cc41 # Parent 2858a24a584642e263a920b4214c815c172ed547 scripts/build/gcc.sh: When compiling a Canadian Cross avoid using -print-multi-lib With a candian cross, attempting to ${CT_TARGET}-gcc -print-multi-lib will fail As this is only for pretty log output, can safely sidestep --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 2858a24a5846 -r 95abeed3a485 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Sun Aug 12 07:45:42 2012 -0400 +++ b/scripts/build/cc/gcc.sh Wed Sep 19 11:03:59 2012 +1000 @@ -460,7 +460,8 @@ [ -z "${file}" ] || ext=".${file##*.}" CT_DoExecLog ALL ln -sfv "${CT_TARGET}-gcc${ext}" "${prefix}/bin/${CT_TARGET}-cc${ext}" - if [ "${CT_MULTILIB}" = "y" ]; then + # Skip for Canadian Build, can't run on the system and only gives pretty log output. + if [ "${CT_MULTILIB}" = "y" -a "${CT_CANADIAN}" != "y" ]; then multilibs=( $( "${prefix}/bin/${CT_TARGET}-gcc" -print-multi-lib \ |tail -n +2 ) ) if [ ${#multilibs[@]} -ne 0 ]; then @@ -815,7 +816,8 @@ [ -z "${file}" ] || ext=".${file##*.}" CT_DoExecLog ALL ln -sfv "${CT_TARGET}-gcc${ext}" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc${ext}" - if [ "${CT_MULTILIB}" = "y" ]; then + # Skip for Canadian Build, can't run on the system and only gives pretty log output. + if [ "${CT_MULTILIB}" = "y" -a "${CT_CANADIAN}" != "y" ]; then multilibs=( $( "${CT_PREFIX_DIR}/bin/${CT_TARGET}-gcc" -print-multi-lib \ |tail -n +2 ) ) if [ ${#multilibs[@]} -ne 0 ]; then