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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: NR <nroycea+gnu <at> gmail.com>
Subject: bug#78376: closed (Re: bug#78376: Llvm & Musl Libc -
 "function-like macro '__GNUC_PREREQ' is not defined")
Date: Sun, 11 May 2025 17:23:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78376: Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not defined"

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78376 <at> debbugs.gnu.org.

-- 
78376: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78376
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Collin Funk <collin.funk1 <at> gmail.com>
Cc: 78376-done <at> debbugs.gnu.org, NR <nroycea+gnu <at> gmail.com>
Subject: Re: bug#78376: Llvm & Musl Libc - "function-like macro
 '__GNUC_PREREQ' is not defined"
Date: Sun, 11 May 2025 10:22:16 -0700
Thanks, I pushed that patch into coreutils master on Savannah. Closing 
the bug report.

[Message part 3 (message/rfc822, inline)]
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 7 days ago.

Previous Next


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