From patchwork Fri May 3 09:31:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jongsung Kim X-Patchwork-Id: 241258 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AB85D2C00C1 for ; Fri, 3 May 2013 19:32:00 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:cc:mime-version :content-type:content-transfer-encoding:message-id; q=dns; s= default; b=vWJSzHCiHSHnwRNnBoS3z8A72Qzb6Y9kP2/Nw+r+mb9Nsm9wcDbWi gxWIPvnu8rFOy6fzKEHwUkbnwGshajrRDQg05iv9TiGXVctlepOd7+6A0yV7cL3U gRLxL8UIRGGYI3qElfb9mkR0Gca8Qo2hdYe9Xnk104rtXgF89lrZQY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:cc:mime-version :content-type:content-transfer-encoding:message-id; s=default; bh=4GvaOQYj52SEaoc7RQmZhMQWI3I=; b=OIwLHDWGKONtazySXRiEdrPyK/YP qHwbpQh6HjZG/5uHvch74kR0vzpWGa4mQEpmBJ4dYURGAsVelQIobe8pZLid5bjZ FQwDWUxbGiWenydbcRPS2z0ERYn6UQw0ef7Ru+XlFUVquR1Km27mA/wQSsVz5rBU erSyYf7RYPsP2Oo= Received: (qmail 6173 invoked by alias); 3 May 2013 09:31:40 -0000 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 Received: (qmail 6125 invoked by uid 89); 3 May 2013 09:31:39 -0000 X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from LGEMRELSE1Q.lge.com (HELO LGEMRELSE1Q.lge.com) (156.147.1.111) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 03 May 2013 09:31:37 +0000 Received: from orchis.localnet ( [10.178.37.74]) by LGEMRELSE1Q.lge.com (Symantec Brightmail Gateway) with SMTP id 09.F6.04171.5F383815; Fri, 3 May 2013 18:31:34 +0900 (KST) From: Jongsung Kim To: yann.morin.1998@free.fr Subject: cc/gcc: modify to build gcc-4.8-based cross-tools Date: Fri, 3 May 2013 18:31:33 +0900 User-Agent: KMail/1.12.4 (Linux/2.6.32-358.2.1.el6.x86_64; KDE/4.3.4; x86_64; ; ) Cc: crossgcc@sourceware.org MIME-Version: 1.0 Message-Id: <201305031831.33395.neidhard.kim@lge.com> Building cross-tool based on gcc-4.8 fails while "Installing pass-2 core C compiler", because building libgcc.mvars needs libbacktrace.a that gcc.sh doesn't build. This patch inserts a few lines configuring, and making libbacktrace into gcc.sh to build gcc-4.8-based cross-tools successfully. Signed-off-by: Jongsung Kim --- scripts/build/cc/gcc.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) -- -- For unsubscribe information see http://sourceware.org/lists.html#faq diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -409,6 +409,11 @@ do_cc_core_backend() { CT_DoExecLog CFG make ${JOBSFLAGS} configure-libdecnumber CT_DoExecLog ALL make ${JOBSFLAGS} -C libdecnumber libdecnumber.a fi + # HACK: gcc-4.8 uses libbacktrace to make libgcc.mvars, so make it here. + if [ -d "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/libbacktrace" ]; then + CT_DoExecLog CFG make ${JOBSFLAGS} configure-libbacktrace + CT_DoExecLog ALL make ${JOBSFLAGS} -C libbacktrace + fi # Starting with GCC 4.3, libgcc.mk is no longer built, # and libgcc.mvars is used instead.