Skip to content

Clang 4.2 breakage, Node 5.2.0 #4284

Closed
@DomT4

Description

@DomT4

Hey Folks,

Had a report over at Homebrew of Node failing to build on OS X 10.7.5. It works built against GCC 5.x but fails against the system Clang, which is 4.2. As far as the README on the Node repo here states it should compile fine against that version of Clang.

I reproduced the failure on our testing infrastructure to check the reported error wasn't potentially user-related. Error is at the bottom of this gist but:

In file included from ../src/debug-agent.h:26:
../src/util-inl.h:206:14: error: use of undeclared identifier '__builtin_bswap16'
    dst[i] = __builtin_bswap16(src[i]);
             ^
In file included from ../test/cctest/util.cc:2:
../src/util-inl.h:206:14: error: use of undeclared identifier '__builtin_bswap16'
    dst[i] = __builtin_bswap16(src[i]);
             ^
In file included from ../src/fs_event_wrap.cc:2:

More or less that error reproduced through a bunch of files.

Just wanted to check whether or not the breakage is known and whether the Clang breakage for that version is an intentional thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.macosIssues and PRs related to the macOS platform / OSX.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions