• Putting a CPUTYPE in /etc/make.conf breaks arm64 build for me

    From Pete French@pete@twisted.org.uk to muc.lists.freebsd.stable on Fri Nov 13 11:15:48 2026
    From Newsgroup: muc.lists.freebsd.stable

    I have, in /etc/make.conf, this:

    CPUTYPE?=armv8.2-a

    Which has worked fine in the past, and the last build I did with this
    was in mid October, so only a few weeks ago. Updated to the latest
    stable yesteday, and now the build breaks.

    In file included from /usr/src/contrib/libarchive/libarchive/archive_crc32.c:46: /usr/lib/clang/21/include/arm_acle.h:835:8: error: a function
    declaration without a prototype is deprecated in all versions of
    C [-Werror,-Wstrict-prototypes]
    835 | __gcspr() {
    | ^
    /usr/lib/clang/21/include/arm_acle.h:840:10: error: a function
    declaration without a prototype is deprecated in all versions of
    C [-Werror,-Wstrict-prototypes]
    840 | __gcspopm() {
    | ^
    2 errors generated.
    *** Error code 1


    It does not break if I dont have anything set in /etc/make.conf, but
    other parts of my setup are looking for the line there, so I need
    something unfortunately.

    This seems surprising to me though, to the point where I cna believe its
    not something to do with my setup. Anyone got any suggestins ? I checked
    that header agaibst the version included in /usr/src and they are the
    same, so its not a case of me needing to copy them over.

    -pete.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?=@des@FreeBSD.org to muc.lists.freebsd.stable on Fri Nov 13 13:33:26 2026
    From Newsgroup: muc.lists.freebsd.stable

    Pete French <pete@twisted.org.uk> writes:
    In file included from /usr/src/contrib/libarchive/libarchive/archive_crc32.c:46: /usr/lib/clang/21/include/arm_acle.h:835:8: error: a function
    declaration without a prototype is deprecated in all versions of
    C [-Werror,-Wstrict-prototypes]
    835 | __gcspr() {
    | ^
    /usr/lib/clang/21/include/arm_acle.h:840:10: error: a function
    declaration without a prototype is deprecated in all versions of
    C [-Werror,-Wstrict-prototypes]
    840 | __gcspopm() {
    | ^
    2 errors generated.
    *** Error code 1
    This is a bug in a header provided by the compiler, see <https://github.com/llvm/llvm-project/pull/242286> and <https://reviews.freebsd.org/D61503>. You can work around it by
    applying my patch to your tree and / or manually editing the installed
    version.
    DES
    --
    Dag-Erling Sm|+rgrav - des@FreeBSD.org
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2