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: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78376: closed (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 message dated Sun, 11 May 2025 10:22:16 -0700
with message-id <3b95eaa0-5195-4246-8ead-a65e599be0ad <at> cs.ucla.edu>
and subject line Re: bug#78376: Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not defined"
has caused the debbugs.gnu.org bug report #78376,
regarding Llvm & Musl Libc - "function-like macro '__GNUC_PREREQ' is not defined"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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
```


[Message part 3 (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.


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.