Skip to content

Broken --enable-suppress-external-warning for Apple Clang 15 on x86_64 #29174

@hebasto

Description

@hebasto

Apple Clang 15 does not support -Xclang -internal-isystem anymore. On both x86_64 and arm64 platforms, the following check:

bitcoin/configure.ac

Lines 742 to 744 in 65c05db

if test "$suppress_external_warnings" != "no"; then
AX_CHECK_PREPROC_FLAG([-Xclang -internal-isystem/usr/local/include], [CORE_CPPFLAGS="$CORE_CPPFLAGS -Xclang -internal-isystem/usr/local/include"], [], [$CXXFLAG_WERROR])
fi

fails with error: unknown argument: '-internal-isystem/usr/local/include'.

It makes the --enable-suppress-external-warnings option not working for dependency packages installed by Homebrew and linked to /usr/local, which happens for all non-keg packages on x86_64. There is no such an effect on arm64.

For a related discussion refer to #29165 (comment).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions