GNU bug report logs - #78376
Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not defined"

Previous Next

Package: coreutils;

Reported by: NR <nroycea+gnu <at> gmail.com>

Date: Sun, 11 May 2025 15:44:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: NR <nroycea+gnu <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not
 defined"
Date: Sun, 11 May 2025 10:18:17 -0500
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
```




This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.