Re: [MacPorts] #72595: gunits @2.24: error: ‘DBL_DECIMAL_DIG’ undeclared
MacPorts
noreply at macports.org
Sun Jun 15 11:34:14 UTC 2025
#72595: gunits @2.24: error: ‘DBL_DECIMAL_DIG’ undeclared
-------------------------+-------------------------------------------------
Reporter: | Owner: saj
barracuda156 |
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Resolution: fixed | Keywords: lion mountainlion mavericks
Port: gunits | yosemite elcapitan
-------------------------+-------------------------------------------------
Comment (by saj):
Builds now succeed on 10.6 through 10.10. Unfortunately, the build is
still broken on 10.11. I will reopen.
llvm.org say they fixed this in `llvmorg-3.9.0`. I wanted to know which
Apple clang incorporated that upstream release.
https://trac.macports.org/wiki/XcodeVersionInfo#OSX10.11
AFAICS, there are no llvm.org version identifiers here. In my earlier
patch, I had resorted to the information on Wikipedia.
https://en.wikipedia.org/wiki/Xcode#Xcode_7.0_-_10.x_(since_Free_On-
Device_Development)_2
The row for Xcode 8.0, with Apple clang-800.0.38, looked like the minimum:
LLVM `3.9.0svn`. And so I wrote this:
{{{
compiler.blacklist-append {clang < 800}
}}}
The buildbot for 10.11 logged the following.
{{{
DEBUG: Xcode 8.2.1, CLT 8.2.0.0.1.1480973914
DEBUG: SDK 10.11
}}}
{{{
DEBUG: compiler clang 800.0.42.1 not blacklisted because it doesn't match
{clang < 800}
}}}
I can only guess the underlying llvm clang in Xcode is still too old. \\
i.e. 800 should be substituted with some other, greater, number.
https://stackoverflow.com/a/32997109
> The LLVM version reported was always misleading. "3.6.0svn" means that
code was branched some time after 3.5 and before 3.6.
This is nuts.
I am afraid I don't have time to set up another test environment on 10.11,
and I cannot send a PR in good faith without testing it on 10.11 first.
If you are on 10.11, and if this bothers you, please try bumping that
number.
--
Ticket URL: <https://trac.macports.org/ticket/72595#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list