From patchwork Tue Jun 2 23:26:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 479732 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E2FBF1402AA for ; Wed, 3 Jun 2015 09:26:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=sourceware.org header.i=@sourceware.org header.b=yBwQEhWp; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :cc:content-type; q=dns; s=default; b=NjkznGBvogPV5A4D06uGE5cpzK mU3av0Qh/hAgD6qA1RzclYne9qpqNA2Md07cFwbxWp3LWoaehGk415KL4yOILqFV q7ks7UZf3g30lI4wwbG2HEEHf3wyVdSm+64ToD9U1HQ8yZ2Jt6k1eRdWqXXq9Vx6 YgmC0GrmKVbE+0LJ4= 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:mime-version:date:message-id:subject:from:to :cc:content-type; s=default; bh=sp7eZ1rrzmSebJtUBAZpDu11DCM=; b= yBwQEhWpnr/BOjHOM9kHZA40rkjtl1XX974CdoXFFIn+yK4AojicQUdfqQA3Rfik OmKphpXcshViM7jsxeaJEpGFCYJ0jAKgbJjAXFaoWf/oDWH+5mmoJiWcQ+/CeWlD neLBkEai1hMfoJ0EuCt+Gz7+OzIR2QxcKHDM61SOOW4= Received: (qmail 85016 invoked by alias); 2 Jun 2015 23:26:20 -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 85005 invoked by uid 89); 2 Jun 2015 23:26:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qk0-f170.google.com Received: from mail-qk0-f170.google.com (HELO mail-qk0-f170.google.com) (209.85.220.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 02 Jun 2015 23:26:18 +0000 Received: by qkoo18 with SMTP id o18so110479876qko.1 for ; Tue, 02 Jun 2015 16:26:16 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.55.16.200 with SMTP id 69mr8286113qkq.98.1433287576210; Tue, 02 Jun 2015 16:26:16 -0700 (PDT) Received: by 10.96.180.136 with HTTP; Tue, 2 Jun 2015 16:26:16 -0700 (PDT) Date: Tue, 2 Jun 2015 16:26:16 -0700 Message-ID: Subject: Interesting issue with gccgo From: Bryan Hundven To: crossgcc maillist Cc: "Yann E. MORIN" X-IsSubscribed: yes In response to: https://github.com/crosstool-ng/crosstool-ng/issues/96 I've made a diff that does the following: ======================================================================= This is a workaround, and the problem should really be fixed upstream in gcc. Once that workaround is in place, the build ultimately fails in finalize when it's trying to strip binaries: ======================================================================= [DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-strip' '--strip-all' '-v' 'bin/arm-unknown-linux-gnueabi-gccgo' [ALL ] copy from `bin/arm-unknown-linux-gnueabi-gccgo' [elf64-x86-64] to `bin/stLNcwWm' [elf64-x86-64] [DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-strip' '--strip-all' '-v' 'bin/arm-unknown-linux-gnueabi-gcov' [ALL ] copy from `bin/arm-unknown-linux-gnueabi-gcov' [elf64-x86-64] to `bin/st5nkpCp' [elf64-x86-64] [DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-strip' '--strip-all' '-v' 'bin/arm-unknown-linux-gnueabi-gcov-tool' [ALL ] copy from `bin/arm-unknown-linux-gnueabi-gcov-tool' [elf64-x86-64] to `bin/st7QsYkq' [elf64-x86-64] [DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-strip' '--strip-all' '-v' 'bin/arm-unknown-linux-gnueabi-gdb' [ALL ] copy from `bin/arm-unknown-linux-gnueabi-gdb' [elf64-x86-64] to `bin/stHNSasp' [elf64-x86-64] [DEBUG] ==> Executing: 'x86_64-build_unknown-linux-gnu-strip' '--strip-all' '-v' 'bin/arm-unknown-linux-gnueabi-go' [ALL ] copy from `bin/arm-unknown-linux-gnueabi-go' [elf32-little] to `bin/stfTmUQs' [elf32-little] [ALL ] /usr/bin/strip: Unable to recognise the format of the input file `bin/arm-unknown-linux-gnueabi-go' [ERROR] ======================================================================= I kind of expect this, as -go and -gofmt are tools for the target, not the host. I'm just not sure what should be done in this case. Any suggestions? -Bryan --- For unsubscribe information see http://sourceware.org/lists.html#faq ======================================================================= diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index f6ea34e..38ab92f 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -841,6 +841,10 @@ do_gcc_backend() { extra_config+=("--disable-multilib") fi + if [ "${CT_CC_LANG_GOLANG}" = "y" ]; then + extra_config+=("--enable-werror=no") + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" CT_DoExecLog CFG