Skip to content

FreeBSD 10.1: build fails #324

@jbergstroem

Description

@jbergstroem

Couldn't find any other open bugs about clang compatibility, but this error probably just affects FreeBSD:

V8 seems to call g++ instead of c++ (rather clang++) which makes the build fail. If I set CC/CPP/CXX environment flags it at least builds, but fails here:

  clang++ '-DV8_TARGET_ARCH_X64' '-DENABLE_DISASSEMBLER' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DENABLE_HANDLE_ZAPPING' -I../deps/v8  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-strict-aliasing -I/usr/local/include -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /usr/home/jbergstroem/io.js-1.x/out/Release/.deps//usr/home/jbergstroem/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/arguments.o.d.raw  -c -o /usr/home/jbergstroem/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/arguments.o ../deps/v8/src/arguments.cc
In file included from ../deps/v8/src/api.cc:16:
In file included from ../deps/v8/src/background-parsing-task.h:11:
In file included from ../deps/v8/src/parser.h:13:
../deps/v8/src/preparser.h:470:29: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed
                            reinterpret_cast<const char*>(NULL),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is FreeBSD builder 10.1-RELEASE amd64, clang 3.4.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.freebsdIssues and PRs related to the FreeBSD platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions