bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#78376: Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is no


From: Collin Funk
Subject: bug#78376: Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not defined"
Date: Sun, 11 May 2025 10:01:25 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

NR <nroycea+gnu@gmail.com> writes:

> I was aiming to build a llvm/musl-based system, and while something
> like `bash` will build fine, I encountered this error attempting to
> build coreutils:
> ```
> In file included from lib/fts.c:53:
> lib/fts_.h:70:32: error: function-like macro '__GNUC_PREREQ' is not defined
>    70 | #   if defined __cplusplus && (__GNUC_PREREQ (2,8) ||
> __clang_major__ >= 4)
> ```
> Looking in the llvm source, the closest grep result I could find was:
> ```
> llvm_project/llvm/include/llvm/Support/Compiler.h:/// Extend the
> default __GNUC_PREREQ even if glibc's features.h isn't
> ```

Thanks for the report. I could not reproduce this on the Musl system I
have access too, but it is clearly due to a recent commit of mine in
Gnulib.

I don't have commit privileges to Coreutils so you can run 'git am' on
the attached patch. Or wait until a Coreutils maintainer does the same
and pushes the change.

Collin

Attachment: 0001-build-update-gnulib-submodule-to-latest.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]