From owner-freebsd-bugs@freebsd.org Mon May 18 15:23:37 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1B0122CD559 for ; Mon, 18 May 2020 15:23:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49QjTN5bXQz3f0S for ; Mon, 18 May 2020 15:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BE5C22CD9B3; Mon, 18 May 2020 15:23:36 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BE23B2CD7F3 for ; Mon, 18 May 2020 15:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49QjTN4gNLz3f34 for ; Mon, 18 May 2020 15:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9BC4423756 for ; Mon, 18 May 2020 15:23:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 04IFNasN001612 for ; Mon, 18 May 2020 15:23:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04IFNaJN001598 for bugs@FreeBSD.org; Mon, 18 May 2020 15:23:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246540] /usr/bin/as deprecation warning from BZ233611 & r350518 breaks GNU assembler detection in cmake Date: Mon, 18 May 2020 15:23:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: gnu X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2020 15:23:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246540 Bug ID: 246540 Summary: /usr/bin/as deprecation warning from BZ233611 & r350518 breaks GNU assembler detection in cmake Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: gnu Assignee: bugs@FreeBSD.org Reporter: dch@freebsd.org https://reviews.freebsd.org/D24664 contains an update to databases/foundationdb-devel which now breaks with following cmake warning,= at least on 13.0-CURRENT > r3661107. I expect the next pkg.freebsd.org build w= ill fail on this as well. Checking whether the ASM compiler is GNU using "--version" did not match "(= GNU assembler)|(GCC)|(Free Software Foundation)": FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b) Target: x86_64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin presumably after running this: $ as --version warning: as 2.17.50 is deprecated in FreeBSD and will be removed GNU assembler 2.17.50 [FreeBSD] 2007-07-03 Copyright 2007 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `x86_64-unknown-freebsd'. devel/cmake (v3.17.2) includes: cmake-3.17.2/Modules/CMakeDetermineASMCompiler.cmake 59: set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_GNU "(GNU assembler)|(GCC)|(Free Software Foundation)") I'm not clear what the right fix here is, as this is probably not the only = port that will break on this. I've learned about: - `cmake -D_CMAKE_TOOLCHAIN_PREFIX=3Dllvm-` via https://stackoverflow.com/questions/7031126/switching-between-gcc-and-clang= -llvm-using-cmake which would be fine if this port had an explicit llvm dependency (which it doesn't) - if /usr/bin/as *appended* its warning to the version, on the same first l= ine, CMakeDetermineASMCompiler.cmake could simply detect that, and we'd have an additional local patch. as --version GNU assembler 2.17.50 [FreeBSD] 2007-07-03 warning: as 2.17.50 is deprecate= d in FreeBSD and will be removed committed here: Author: emaste Date: Thu Aug 1 19:01:27 2019 +0000 as: add deprecation notice to the man page In the future FreeBSD will ship without GNU binutils 2.17.50. Add a note advising users who require GNU as to install the binutils port or package. Note that on armv7, arm64, amd64, i386 we currently ship only two binutils tools (as and objdump). A deprecation notice was added to objdump's man page some time ago. PR: 233611 Discussed with: jhb MFC after: 1 week Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=3D/head/; revision=3D350518 --=20 You are receiving this mail because: You are the assignee for the bug.=