From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16029 invoked from network); 16 Nov 2020 11:35:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Nov 2020 11:35:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605526509; b=mn5lcc9sKEHhO9mr/tWBQ4cCkaKLmP3D5YYI8sdfyitinbcghHg6bAQJ2ko9e4Os6J3bJxtt96 +9V9KQMQsfh8tNaUCi1BOkaNeG/UnaqkTB18YWG7b2S5qyqoEnKzIZq2WWaaISgPnw7L0Xwq/I MfReNMADSSDHjQEjUu+I2RocO3HUYly/HC+O74qNlNglTw9GwIc8tqgvWqDPhKePOpwSnYCzaD LVs+biFmEcW9okaA6KPP0LDFOpVZTZoWYvub+KBSrljRv6UH7qq3mF5J3zARiDRWuZqXEEx1I/ 3b/FRy8DAHqqlxq35Xqs2wCMRWcq/TzjUpOOm51M5dfcqA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wm1-f41.google.com) smtp.remote-ip=209.85.128.41; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605526509; bh=G31JKlc99pJEodjYZ/soihaVRXR5xh1it+V4rNzsOmo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version: Content-Transfer-Encoding:Content-Type:From:DKIM-Signature:DKIM-Signature; b=xGB3ZKoVLREbxtKdEBW4GeElfUd9E3voNdg2CbCqKMLAAJ6/ck/apXHK9KHPLD/xkfzwzSksGP mKixK8WF9oOaT6Y52kJpeXCPzzDWCxbRE2cA2HaD5KJymoDbvhUDAgVlIkCC6yfWnuC/Jn9RHQ 2JSRk9fnxIZS+kKw3oGAzUimgAMUYm52asiYiG5o7CYKUXH887JCeENTNsHTGqpwzK/qdPvjao J6VLZuU1YZoJVtTis5ciBHCeLtEgF0gLf6ztaNtSWJyftNkRJ7DgHifGOI8v6GJk6cagpkw43E 8zv/s6j6L4stqfHPTUjfwAswUyr00loyhaFxEPdSqsQ4yA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=b51jcg1yIrqs3wV2mxfb+ztfOaGbzuEapzBfftv31z8=; b=vf9tVzv4JLqNNlrrUPOX1iIcgs uUQtCgt6cM++rccshD//qL5sAuekWskhvDZEGaCQglM8Y//Jp/rjtYrEXodSsTuxjG/VzcVx9bUGD /QQHdGPaveAq4+b9x4AUTqC4drSyFyYjtRBlxMsb4YXJG6oo4jvnMdamnsYQDDusgl3o2d16I7w99 tgInqTCoVlSKPSR7yB61vaGrYU0ZW4afH5aMJyoGPnL+HZCAB9PdNVfvq4/+EqV6CjJNUf/ufg51c F8INI4Rq94jn9QUdAOBnxgo5hJOXsXU1bB/Y/MKZ6T5aEZhxRILs+63MKC2SHqyfHemQMvhlNqTyn MyjUUFCw==; Received: from authenticated user by zero.zsh.org with local id 1kecmm-000O2J-Cp; Mon, 16 Nov 2020 11:35:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f41.google.com) smtp.remote-ip=209.85.128.41; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wm1-f41.google.com ([209.85.128.41]:34840) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kecmU-000Ntv-9M; Mon, 16 Nov 2020 11:34:47 +0000 Received: by mail-wm1-f41.google.com with SMTP id w24so23319090wmi.0 for ; Mon, 16 Nov 2020 03:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=b51jcg1yIrqs3wV2mxfb+ztfOaGbzuEapzBfftv31z8=; b=sViz5afXb7VEuWTIGmH6PK/HUTkHlPw4Bm3ydKkJ54d2K0O8Nb6/wrLoWeSLPYSW8t tES7XRnDgOpfdCwodKF3UC3o4bteQzL+EnRXo/m2Ll42Og3lNyMmgqe6aDtX6nCQ+Y/j wpWM+BKk64ImhmvmK+9vXePWiGZwsTuW44hsCMVOpwpeXcA9Z3U0TTqru4F3CSGWy0YC XufEzx/CAkR21Qd/Gp+VdSQUFz8aV4DIXqst6EAJWPhhz/D4u+XR8MlPjmPM50qlH+55 EUSFv6M48SJdaRu2d00iu7elZkPFa9cizXqXAL/Cy9O6TSgUAZ1ltvZZiCP0if5wQbbh nWgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=b51jcg1yIrqs3wV2mxfb+ztfOaGbzuEapzBfftv31z8=; b=iyL5DFJyk3ge97GMLmFH9E7c3NUl2YUHCS+MTFbc7mnJT3EH/doEV+pG5Bd3EZy+3W Yv1cZo4/Byv+4RImdVCq1xhrHPsstItalIKCGGVtZ1fLHj5GvCMuR+FUAHNSiFiQwXMr Y1Vl/PlhwBiO5Hiu8nUUQl/fldvZSg05j83MfpwsoLTT2LcVsJRNGs7KG12uqbWahEZf sqFMWStbDBJYV5JKdT3l7MB4Tt7MMF7Zobb9aRf4wOuxdHlMCww2rBIpNkS6Kj9xX6x/ W0o712TJdreA0B0NSW1PAFl/ZOpGfz8mxJ/Mp4C5PabkKoth0dU6zxalqBB5lQYm0i/D 6iZQ== X-Gm-Message-State: AOAM530ILJXCkvGEhkgbt6v3avfP3XMmttfyo+8sQtOjKBQSSqlF9CnS fzLn40z4Thdx5MLWKme8FRlqHeayUvE= X-Google-Smtp-Source: ABdhPJzzXHzJEcuhc+vr4WTldwck0zqQ7KZTUcd0WMuc4GbQiQPvkuOvdOPZtX3bhXHhL+NsjqPdxA== X-Received: by 2002:a1c:dd06:: with SMTP id u6mr15847772wmg.155.1605526485120; Mon, 16 Nov 2020 03:34:45 -0800 (PST) Received: from ?IPv6:2a01:e35:2fd6:2a80:fcf1:eb90:a997:d187? ([2a01:e35:2fd6:2a80:fcf1:eb90:a997:d187]) by smtp.gmail.com with ESMTPSA id g66sm19357444wmg.37.2020.11.16.03.34.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 03:34:44 -0800 (PST) From: FX Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Many configure tests broken with clang 12 Message-Id: <6C43F788-B057-4C5B-8FDD-932AC300549D@gmail.com> Date: Mon, 16 Nov 2020 12:34:43 +0100 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 47565 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Hello, Building zsh 5.8 with clang 12 (which is the system compiler on recent = macOS versions) leads to a completely broken zsh. This is because many = configure tests actually fail, when they should succeed, because of = undeclared functions. Take for example TGETENT_ACCEPTS_NULL in = configure.ac: [AC_RUN_IFELSE([AC_LANG_SOURCE([[ main() { char buf[4096]; int r1 =3D tgetent(buf, "vt100"); int r2 =3D tgetent((char*)0,"vt100"); if (r1 >=3D 0 && r1 =3D=3D r2) { char tbuf[1024], *u; u =3D tbuf; tgetstr("cl", &u); creat("conftest.tgetent", 0640); } exit((r1 !=3D r2) || r2 =3D=3D -1); } ]])] This will fail for two reasons: conftest.c:233:6: error: implicit declaration of function 'tgetstr' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:236:5: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] tgetstr() should require the header to be included in the test. = And exit() needs This occurs in a lot of places throughout the configure script. I have = found the list below (see at end of message). clang 12 has made = -Wimplicit-function-declaration into an error by default, which explains = why these tests are now starting to fail. See our original report on = Homebrew: https://github.com/Homebrew/homebrew-core/issues/64921 Best regards, FX fx@rmeur zsh-5.8 % grep 'implicitly declaring' config.log conftest.c:236:5: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:236:5: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:255:24: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:255:40: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:293:2: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:291:2: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:287:5: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:302:9: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:286:5: error: implicitly declaring library function 'sprintf' = with type 'int (char *, const char *, ...)' = [-Werror,-Wimplicit-function-declaration] conftest.c:288:14: error: implicitly declaring library function 'strcpy' = with type 'char *(char *, const char *)' = [-Werror,-Wimplicit-function-declaration] conftest.c:291:5: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] conftest.c:291:31: error: implicitly declaring library function 'strcmp' = with type 'int (const char *, const char *)' = [-Werror,-Wimplicit-function-declaration] conftest.c:320:13: error: implicitly declaring library function 'exit' = with type 'void (int) __attribute__((noreturn))' = [-Werror,-Wimplicit-function-declaration] fx@rmeur zsh-5.8 % grep 'C99' config.log =20 conftest.c:228:14: error: implicit declaration of function 'tgetent' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:233:6: error: implicit declaration of function 'tgetstr' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:234:2: error: implicit declaration of function 'creat' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:228:14: error: implicit declaration of function 'tgetent' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:233:6: error: implicit declaration of function 'tgetstr' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:234:2: error: implicit declaration of function 'creat' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:287:5: error: implicit declaration of function 'unlink' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:289:8: error: implicit declaration of function 'mkfifo' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:294:11: error: implicit declaration of function 'fork' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:299:17: error: implicit declaration of function 'read' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:302:22: error: implicit declaration of function 'write' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:286:27: error: implicit declaration of function 'getpid' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:286:37: error: implicit declaration of function 'rand' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] conftest.c:298:5: error: implicit declaration of function 'read' is = invalid in C99 [-Werror,-Wimplicit-function-declaration]