Skip to content

Noisy warning in configure: WARNING: No acceptable ld.gold linker found!Β #35872

@MylesBorins

Description

@MylesBorins
$ ./configure
Node.js configure: Found Python 3.8.6...
WARNING: No acceptable ld.gold linker found!
WARNING: warnings were emitted in the configure phase
INFO: configure completed successfully

It seems like this is related to the inclusion of using the ld.gold linker as part of --use-section-ordering-file.

The default compiler setup on OSX does not have these features... further, I don't believe the default configuration for node.js even uses --use-section-ordering-file. When I saw this warning at first I was worried that there had been some sort of regression in my build tools locally (something that can happen with OSX / Xcode upgrades) and I lots about an hour of time trying to debug things.

In the end I really couldn't find an easy way to get the ld.gold linker installed on OSX at all.

With all this in mind I wonder if it might make sense for us to only present the warning if the flag that requires the ld.gold linker is passed.

/cc @gabrielf whom I believe added this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions