Skip to content

Ubuntu 22.04 is a Tier 1 platform, but main does not build with default gcc, and we do not provide instructions #56475

Description

@mcollina

Cloning the repo and running:

$ ./configure
Node.js configure: Found Python 3.10.12...
WARNING: C++ compiler (CXX=g++, 11.4.0) too old, need g++ 12.2.0 or clang++ 8.0.0
WARNING: warnings were emitted in the configure phase
INFO: configure completed successfully

However, this happens on Ubuntu 22.04.5 LTS, which is a Tier 1 platform. I have not found any instructions in https://github.com/nodejs/node/blob/main/BUILDING.md#unix-prerequisites:

sudo apt-get install python3 g++ make python3-pip

Which installs gcc 11.4.0.

Activity

  1. targos commented on Jan 5, 2025

    @targos
    Member

    We can't give general instructions for every possible Linux distribution or version of it.

  2. targos commented on Jan 5, 2025

    @targos
    Member

    In other words, I think it's fair to assume that the documentation is for the latest version (Ubuntu 24.04 in this case)

  3. joyeecheung commented on Jan 9, 2025

    @joyeecheung
    Member

    It seems interesting to update the configuration script to give some tips on how to update your compiler accordingly on the platform where it is run, instead of saying generic things like need g++ 12.2.0 or clang++ 8.0.0. I have no idea how complex this is, though. If that sounds like a good idea, we can label it as a good first issue and see if someone's happy to take it on.

  4. mcollina commented on Jan 9, 2025

    @mcollina
    SponsorMemberAuthor

    This is solved with:

    sudo apt-get install gcc-12
    export CXX=g++-12
    ./configure

    Should be easy to add to the doc, at least for ubuntu.

  5. added
    good first issueIssues that are suitable for first-time contributors.
    docIssues and PRs related to Node.js documentation.
    on Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions