Skip to content

Compiling on Mac cause an error thrown by g++-12 #58219

Open
@vagostep

Description

@vagostep

Version

22.x

Platform

Darwin Kernel Version 24.4.0

Subsystem

No response

What steps will reproduce the bug?

On a brand new Mac, following the BUILDING.md steps, specifically

To build Node.js:
export CXX=g++-12
•/configure
make -j4

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

It should compile successfully by following the BUILDING.md steps.

If I skip the export CXX=g++-12 command, it compiles successfully.

Maybe it is a documentation error, or a dependency step that is not working as expected in the latest Mac versions

What do you see instead?

An error:

cc1plus: error: '-Werror=undefined-inline': no option '-Wundefined-inline'; did you mean '-Wundefined-do-loop'?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions