Re: [MacPorts] #72595: gunits @2.24: error: ‘DBL_DECIMAL_DIG’ undeclared

MacPorts noreply at macports.org
Sat Jun 14 16:54:29 UTC 2025


#72595: gunits @2.24: error: ‘DBL_DECIMAL_DIG’ undeclared
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  (none)
  barracuda156           |
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.7
Resolution:              |   Keywords:  lion mountainlion mavericks
      Port:  gunits      |  yosemite elcapitan
-------------------------+-------------------------------------------------

Comment (by saj):

 Thank you.

 After some faffing about, I installed 10.8 in a virtual machine, and
 tested there.

 It would seem that `compiler.c_standard 2011` is not enough.

 [[https://github.com/llvm/llvm-project/issues/26657|float.h is missing
 mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG]]
 [github.com/llvm]

 > This issue was fixed [...] in Clang 3.9

 Xcode clang, on 10.8, appears to satisfy `compiler.c_standard 2011` -- for
 it is selected for use by MacPorts -- however the C11 implementation in
 this old compiler is incomplete.

 I sent a patch here. \\
 https://github.com/macports/macports-ports/pull/28690

-- 
Ticket URL: <https://trac.macports.org/ticket/72595#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list