Message ID | 20250311100455.74871-1-iain@sandoe.co.uk |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A3F8A385843B for <patchwork@sourceware.org>; Tue, 11 Mar 2025 10:05:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3F8A385843B Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=g5DFX2cR X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 050323858C5F for <gcc-patches@gcc.gnu.org>; Tue, 11 Mar 2025 10:04:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 050323858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 050323858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741687498; cv=none; b=kFwXSR6WdebOjaAkGCZArvo12Uga/axKhyXwY9Gt9NS4TlpHWsCuanHKmOydXqHzrGwt5t4rnrRTj46Sjb5Ni1TBqJSOPS7FpYFl7JH7ELCELbZeP41ROD2YWUCHnCZckOhYWoYmVnOskLZtrxYL1l6kJAt067wzNFwvDOOV+zw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741687498; c=relaxed/simple; bh=zIXNYWs5hycIFfLgLATlVWajESQ54IjWS8lWzITeWZk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=KU5FIcxKkPhJm8Cn9I6FeSJVFirvCKP8H7xDEvhMx9IUtvWqXNXNXExQZ/CJAtxTHQMPyiPH9FQ5+FZxP6QvrG2vX7EXiOAAMgbOGCjRzao0QoR3Y+OJP0JAx6FqieWvjMT57umUZEQ+qt+Ufyv6H7ap5yYrk3n8Bj5PHTOwX7M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 050323858C5F Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43cebe06e9eso16147565e9.3 for <gcc-patches@gcc.gnu.org>; Tue, 11 Mar 2025 03:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741687496; x=1742292296; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=S8uOMTgoaEeTJUHomMzTO/6L8S9LSKag4JTWrr7OkQ0=; b=g5DFX2cR7a+QzrlnVh0JIuAqaYnENAnhh1m5IdToKkN+S8mmGyPPiaDgUyqBTmhjbv ATCRYCKs00KUTizRUEKKLakkQsCi25go+w/FzQj4sKLlQcHBvA8ih+VnEjzIWeawIzQ6 O3cKweX/b7eOzzgh6aCTO9JrrzYpVYvMR4ACQnxV58GHrsPSvvRRdPIIajLy3keneMDG CcSa4+0O3HQRCvu+xlAA+wrsSgGiJY7Q/fz3Y8+zLebARyWcjGqHlSzyWu44FwHRYC79 3HtFV5jhFmwpF3Tl+iGfrhK/WG6EcxwZOK5Vu9kMloxJ0L97Qbwu8XpHyHmaW8Gs8F30 fl5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741687496; x=1742292296; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to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HT+IHTHJEvfFo0QRBHxTqZ/85E/2y2o4L7wR+oxYE+m5ABoRUM0lpNRiVvuc9pzeSaCbDmTIIoeQ== X-Received: by 2002:a05:600c:3512:b0:43c:fded:9654 with SMTP id 5b1f17b1804b1-43cfded98b3mr49609265e9.19.1741687496305; Tue, 11 Mar 2025 03:04:56 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ce70d13b4sm114022965e9.38.2025.03.11.03.04.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 11 Mar 2025 03:04:56 -0700 (PDT) From: Iain Sandoe <iains.gcc@gmail.com> X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: rguenther@suse.de, gcc-patches@gcc.gnu.org Subject: [PATCH] configure, Darwin: Require explicit selection of COBOL. Date: Tue, 11 Mar 2025 10:04:55 +0000 Message-Id: <20250311100455.74871-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
configure, Darwin: Require explicit selection of COBOL.
|
|
Commit Message
Iain Sandoe
March 11, 2025, 10:04 a.m. UTC
Tested on x86_64-darwin21 for
--enable-languages=all
=> configure: WARNING: cobol not supported for this target
--enable-languages=all,cobol
=> cobol is added to the languages to build.
OK for trunk?
thanks, Iain
--- 8< ---
By defult, Darwin does not have sufficient tools to build COBOL
so we do not want to include it in --enable-languages=all since
this will break regular testing of all supported languages.
However, we do want to be able to build it on demand (where the
build system has sufficiently new tools) and so do not want to
disable it permanently.
ChangeLog:
* configure: Regenerate.
* configure.ac: Do not build COBOL on Darwin by default,
even for --enable-languages=all.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
configure | 7 +++++--
configure.ac | 3 +++
2 files changed, 8 insertions(+), 2 deletions(-)
Comments
On Tue, 11 Mar 2025, Iain Sandoe wrote: > Tested on x86_64-darwin21 for > --enable-languages=all > => configure: WARNING: cobol not supported for this target > --enable-languages=all,cobol > => cobol is added to the languages to build. > > OK for trunk? OK. Thanks, Richard. > thanks, Iain > > --- 8< --- > > By defult, Darwin does not have sufficient tools to build COBOL > so we do not want to include it in --enable-languages=all since > this will break regular testing of all supported languages. > > However, we do want to be able to build it on demand (where the > build system has sufficiently new tools) and so do not want to > disable it permanently. > > ChangeLog: > > * configure: Regenerate. > * configure.ac: Do not build COBOL on Darwin by default, > even for --enable-languages=all. > > Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> > --- > configure | 7 +++++-- > configure.ac | 3 +++ > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index 2a91458effc..4666c86c5f0 100755 > --- a/configure > +++ b/configure > @@ -3585,11 +3585,14 @@ case ,${enable_languages}, in > ;; > *) > case "${target}" in > + *-*-darwin*) > + unsupported_languages="$unsupported_languages cobol" > + ;; > x86_64-*-*|aarch64-*-*) > ;; > *-*-*) > - unsupported_languages="$unsupported_languages cobol" > - ;; > + unsupported_languages="$unsupported_languages cobol" > + ;; > esac > case "${host}" in > x86_64-*-*|aarch64-*-*) > diff --git a/configure.ac b/configure.ac > index 414578566fa..a1b3604dd81 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -805,6 +805,9 @@ case ,${enable_languages}, in > ;; > *) > case "${target}" in > + *-*-darwin*) > + unsupported_languages="$unsupported_languages cobol" > + ;; > x86_64-*-*|aarch64-*-*) > ;; > *-*-*) >
Hi Iain, > Tested on x86_64-darwin21 for > --enable-languages=all > => configure: WARNING: cobol not supported for this target > --enable-languages=all,cobol > => cobol is added to the languages to build. > > OK for trunk? for the time being, I think it would be better to do this the other way round: the COBOL code is so full of Linuxisms that it's likely to break any non-Linux target at the moment. When trying Solaris/amd64 and Solaris/sparcv9 bootstraps, I came across * symbols.h: __GLIBC_USE Linux-only strtof128 dto. NAME_MAX undef on Solaris, variable * cdf-copy.cc: basename clashes with <libgen.h> GLOB_BRACE, GLOB_TILDE Linux extension? Rainer
On Tue, 11 Mar 2025, Rainer Orth wrote: > Hi Iain, > > > Tested on x86_64-darwin21 for > > --enable-languages=all > > => configure: WARNING: cobol not supported for this target > > --enable-languages=all,cobol > > => cobol is added to the languages to build. > > > > OK for trunk? > > for the time being, I think it would be better to do this the other way > round: the COBOL code is so full of Linuxisms that it's likely to break > any non-Linux target at the moment. When trying Solaris/amd64 and > Solaris/sparcv9 bootstraps, I came across It is a whitelist already - but OS agnostic. Feel free to provide a patch restricting it to -linux hosts for the time being. There's now a cobol component in bugzilla, so can you open bugreports, separately for each host (gcc/cobol) and each target (libgcobol) build issues? Thanks, Richard. > * symbols.h: > > __GLIBC_USE Linux-only > > strtof128 dto. > > NAME_MAX undef on Solaris, variable > > * cdf-copy.cc: > > basename clashes with <libgen.h> > > GLOB_BRACE, GLOB_TILDE Linux extension? > > Rainer > >
diff --git a/configure b/configure index 2a91458effc..4666c86c5f0 100755 --- a/configure +++ b/configure @@ -3585,11 +3585,14 @@ case ,${enable_languages}, in ;; *) case "${target}" in + *-*-darwin*) + unsupported_languages="$unsupported_languages cobol" + ;; x86_64-*-*|aarch64-*-*) ;; *-*-*) - unsupported_languages="$unsupported_languages cobol" - ;; + unsupported_languages="$unsupported_languages cobol" + ;; esac case "${host}" in x86_64-*-*|aarch64-*-*) diff --git a/configure.ac b/configure.ac index 414578566fa..a1b3604dd81 100644 --- a/configure.ac +++ b/configure.ac @@ -805,6 +805,9 @@ case ,${enable_languages}, in ;; *) case "${target}" in + *-*-darwin*) + unsupported_languages="$unsupported_languages cobol" + ;; x86_64-*-*|aarch64-*-*) ;; *-*-*)