[MacPorts] #71551: nodejs22 @22.12.0_0: error: invalid value 'gnu++20' in '-std=gnu++20' (was: nodejs22 @22.12.0_0 : Failed to build nodejs22: command execution failed)
MacPorts
noreply at macports.org
Mon Dec 16 04:16:48 UTC 2024
#71551: nodejs22 @22.12.0_0: error: invalid value 'gnu++20' in '-std=gnu++20'
-----------------------+----------------------
Reporter: axoide | Owner: ci42
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: mojave
Port: nodejs22 |
-----------------------+----------------------
Changes (by ryandesign):
* keywords: => mojave
Comment:
The error in the log is:
{{{
:info:build error: invalid value 'gnu++20' in '-std=gnu++20'
:info:build note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with
amendments' standard
:info:build note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with
amendments and GNU extensions' standard
:info:build note: use 'c++11' for 'ISO C++ 2011 with amendments' standard
:info:build note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU
extensions' standard
:info:build note: use 'c++14' for 'ISO C++ 2014 with amendments' standard
:info:build note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU
extensions' standard
:info:build note: use 'c++17' for 'ISO C++ 2017 with amendments' standard
:info:build note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU
extensions' standard
:info:build note: use 'c++2a' for 'Working draft for ISO C++ 2020'
standard
:info:build note: use 'gnu++2a' for 'Working draft for ISO C++ 2020 with
GNU extensions' standard
}}}
This is surprising. MacPorts has chosen MacPorts clang 17 and according to
CompilerSelection MacPorts clang 16 and later (and Apple clang 15 and
later) support C++20.
The port says `compiler.cxx_standard 2017`. If it now requires C++20 that
line should change to `2020` but that won't fix this problem.
The log shows that it is using MacPorts clang 17 as the C compiler but
Xcode clang as the C++ compiler. Fixing that should fix the problem.
--
Ticket URL: <https://trac.macports.org/ticket/71551#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list