From patchwork Sat Feb 3 15:16:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 25786 Received: (qmail 72449 invoked by alias); 3 Feb 2018 18:52:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 72108 invoked by uid 89); 3 Feb 2018 18:52:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-9.5 required=5.0 tests=AWL, BAYES_00, DATE_IN_PAST_03_06, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, SPF_PASS autolearn=unavailable version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: 9pmail.ess.barracuda.com Received: from 9pmail.ess.barracuda.com (HELO 9pmail.ess.barracuda.com) (64.235.150.224) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Feb 2018 18:52:50 +0000 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx4.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Sat, 03 Feb 2018 18:52:40 +0000 Received: from [10.20.78.155] (10.20.78.155) by mips01.mipstec.com (10.20.43.31) with Microsoft SMTP Server id 14.3.361.1; Sat, 3 Feb 2018 07:16:20 -0800 Date: Sat, 3 Feb 2018 15:16:11 +0000 From: "Maciej W. Rozycki" To: CC: , , Pip Cet Subject: [PATCH] WebAssembly: Disable subdirectory configuration for unsupported LD Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 X-BESS-ID: 1517683952-298555-13168-15132-14 X-BESS-VER: 2018.1-r1801291959 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 1.09 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189653 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.01 DATE_IN_PAST_03_06 HEADER: Date: is 3 to 6 hours before Received: date 1.08 DATE_IN_PAST_03_06_2 META: X-BESS-Outbound-Spam-Status: SCORE=1.09 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND, DATE_IN_PAST_03_06, DATE_IN_PAST_03_06_2 X-BESS-BRTS-Status: 1 Remove an LD subdirectory configuration error: *** ld does not support target wasm32-unknown-none *** see ld/configure.tgt for supported targets make[1]: *** [configure-ld] Error 1 which prevents binutils for the WebAssembly target from being built unless an explicit `--disable-ld' configuration option has been given. Users must not have to disable features selected by default to get a working configuration. / * configure.ac (noconfigdirs): Add `ld'. * configure: Regenerate. --- Hi, It should be obvious. Also this causes troubles with cross-target testing. OK to apply? Maciej --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) binutils-wasm32-no-ld.diff Index: binutils/configure =================================================================== --- binutils.orig/configure 2018-01-28 00:48:43.000000000 +0000 +++ binutils/configure 2018-02-02 05:48:19.239569799 +0000 @@ -3860,6 +3860,9 @@ case "${target}" in vax-*-*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; + wasm32-*-*) + noconfigdirs="$noconfigdirs ld" + ;; esac # If we aren't building newlib, then don't build libgloss, since libgloss Index: binutils/configure.ac =================================================================== --- binutils.orig/configure.ac 2018-01-28 00:48:43.000000000 +0000 +++ binutils/configure.ac 2018-02-02 05:48:09.444938712 +0000 @@ -1191,6 +1191,9 @@ case "${target}" in vax-*-*) noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; + wasm32-*-*) + noconfigdirs="$noconfigdirs ld" + ;; esac # If we aren't building newlib, then don't build libgloss, since libgloss