Closed
Description
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.