Skip to content

build: DEBUG build with clang in FreeBSD fails #1608

Description

@santigimeno

Output:

gmake[1]: Entering directory '/usr/home/sgimeno/node/io.js/out'
  c++ '-DDEBUG' '-D_DEBUG' -I../deps/gtest -I../deps/gtest/include  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-initializers -g -Og -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /usr/home/sgimeno/node/io.js/out/Debug/.deps//usr/home/sgimeno/node/io.js/out/Debug/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw  -c -o /usr/home/sgimeno/node/io.js/out/Debug/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc
error: invalid integral value 'g' in '-Og'
error: invalid integral value 'g' in '-Og'

clang version:

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512

It looks like clang does not support debug-safe optimizations with -Og introduced in #1569. See: https://llvm.org/bugs/show_bug.cgi?id=20765. Some workarounds are proposed there.

Activity

  1. added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on May 4, 2015
  2. Fishrock123 commented on May 4, 2015

    @Fishrock123
    Contributor

    This doesn't seem so good.

    @bnoordhuis maybe we can make it an option to use -Og?

  3. bnoordhuis commented on May 4, 2015

    @bnoordhuis
    Member

    Fixed by e67542a.

  4. santigimeno commented on May 4, 2015

    @santigimeno
    MemberAuthor

    Still getting the same error. It looks like the clang variable is not set

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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions