https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246540
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: b...@freebsd.org Reporter: d...@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 will 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 (g...@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=llvm-` 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 line, 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 deprecated in FreeBSD and will be removed committed here: Author: emaste <ema...@freebsd.org> 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=/head/; revision=350518 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"