Skip to content

FreeBSD 10.1: build fails #324

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.

Activity

  1. rvagg commented on Jan 13, 2015

    @rvagg
    Member

    /cc @indutny

    I have 2 FreeBSD boxes from Voxer to hook up to CI but it's going to have to wait post 1.0.0 for now, having the tests pass prior to 1.0.0 would be really nice though, if possible.

  2. added a commit that references this issue on Jan 13, 2015
    d9977e8
  3. indutny commented on Jan 13, 2015

    @indutny
    Member

    See https://github.com/iojs/io.js/pull/332/files for a fix. Still has lots of test failures :)

  4. indutny commented on Jan 13, 2015

    @indutny
    Member

    After lots of fixes:

    === release test-http-default-encoding ===
    Path: parallel/test-http-default-encoding
    200
    Command: out/Release/iojs /usr/home/indutny/io.js/test/parallel/test-http-default-encoding.js
    === release test-http-request-end ===
    Path: parallel/test-http-request-end
    200
    Command: out/Release/iojs /usr/home/indutny/io.js/test/parallel/test-http-request-end.js
    --- TIMEOUT ---
    === release test-net-better-error-messages-port-hostname ===
    Path: parallel/test-net-better-error-messages-port-hostname
    Command: out/Release/iojs /usr/home/indutny/io.js/test/parallel/test-net-better-error-messages-port-hostname.js
    --- TIMEOUT ---
    === release test-net-connect-immediate-finish ===
    Path: parallel/test-net-connect-immediate-finish
    Command: out/Release/iojs /usr/home/indutny/io.js/test/parallel/test-net-connect-immediate-finish.js
    --- TIMEOUT ---
    === release test-child-process-execsync ===
    Path: sequential/test-child-process-execsync
    assert.js:100
      throw new assert.AssertionError({
            ^
    AssertionError: false == true
        at Object.<anonymous> (/usr/home/indutny/io.js/test/sequential/test-child-process-execsync.js:28:3)
        at Module._compile (module.js:446:26)
        at Object.Module._extensions..js (module.js:464:10)
        at Module.load (module.js:341:32)
        at Function.Module._load (module.js:296:12)
        at Function.Module.runMain (module.js:487:10)
        at startup (node.js:111:16)
        at node.js:809:3
    Command: out/Release/iojs /usr/home/indutny/io.js/test/sequential/test-child-process-execsync.js
    [02:27|% 100|+ 785|-   5]: Done
    
  5. indutny commented on Jan 13, 2015

    @indutny
    Member

    Should be better now.

  6. indutny commented on Jan 13, 2015

    @indutny
    Member
  7. added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    freebsdIssues and PRs related to the FreeBSD platform.
    on Sep 2, 2015
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

    buildIssues and PRs related to Node.js builds or CI infrastructure.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