Closed n1gp closed 5 years ago
Error starts with environment.cc
I'm using Ubuntu 14.04. nodejs 8.12.0 and 10.16.3 build OK. Anything above that seems to get this same error.
g++ -o /disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj.target/libnode/src/api/environment.o ../src/api/environment.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=0' '-DNODE_REPORT' '-DPOSIX' '-DNODE_USE_V8_PLATFORM=1' '-DHAVE_OPENSSL=1' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DNGHTTP2_STATICLIB' -I/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -I../src -I/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj/gen -I../deps/histogram/src -I../deps/v8/include -I../deps/http_parser -I../deps/llhttp/include -I../deps/cares/include -I../deps/uv/include -I../deps/nghttp2/lib/includes -I../deps/brotli/c/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/.deps//disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj.target/libnode/src/api/environment.o.d.raw -isystem/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -isystem/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -O2 -pipe -c | In file included from ../src/memory_tracker.h:5:0, | from ../src/memory_tracker-inl.h:6, | from ../src/base_object.h:28, | from ../src/async_wrap.h:27, | from ../src/async_wrap-inl.h:27, | from ../src/api/callback.cc:2: | ../src/aliased_buffer.h:27:22: error: expected type-specifier | typename = std::enable_if_t<std::is_scalar::value>> | ^ | ../src/aliased_buffer.h:27:22: error: expected ‘>’ | ../src/aliased_buffer.h:63:31: error: template argument 3 is invalid | v8::Uint8Array>& backing_buffer) | ^ | ../src/aliased_buffer.h:112:41: error: template argument 3 is invalid | Reference(AliasedBuffer<NativeT, V8T>* aliased_buffer, size_t index) | ^ | ../src/aliased_buffer.h:152:31: error: template argument 3 is invalid
This appears to be a compiler version problem as I tried this on Ubuntu 16.04 using g++ 5.4.0 and it compiled successfully.
Error starts with environment.cc
I'm using Ubuntu 14.04. nodejs 8.12.0 and 10.16.3 build OK. Anything above that seems to get this same error.
g++ -o /disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj.target/libnode/src/api/environment.o ../src/api/environment.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=0' '-DNODE_REPORT' '-DPOSIX' '-DNODE_USE_V8_PLATFORM=1' '-DHAVE_OPENSSL=1' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DNGHTTP2_STATICLIB' -I/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -I../src -I/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj/gen -I../deps/histogram/src -I../deps/v8/include -I../deps/http_parser -I../deps/llhttp/include -I../deps/cares/include -I../deps/uv/include -I../deps/nghttp2/lib/includes -I../deps/brotli/c/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/.deps//disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/node-v12.0.0/out/Release/obj.target/libnode/src/api/environment.o.d.raw -isystem/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -isystem/disk2/IMX7/edgeProject2/build-edge3/tmp/work/x86_64-linux/nodejs-native/12.0.0-r1.4/recipe-sysroot-native/usr/include -O2 -pipe -c | In file included from ../src/memory_tracker.h:5:0, | from ../src/memory_tracker-inl.h:6, | from ../src/base_object.h:28, | from ../src/async_wrap.h:27, | from ../src/async_wrap-inl.h:27, | from ../src/api/callback.cc:2: | ../src/aliased_buffer.h:27:22: error: expected type-specifier | typename = std::enable_if_t<std::is_scalar::value>>
| ^
| ../src/aliased_buffer.h:27:22: error: expected ‘>’
| ../src/aliased_buffer.h:63:31: error: template argument 3 is invalid
| v8::Uint8Array>& backing_buffer)
| ^
| ../src/aliased_buffer.h:112:41: error: template argument 3 is invalid
| Reference(AliasedBuffer<NativeT, V8T>* aliased_buffer, size_t index)
| ^
| ../src/aliased_buffer.h:152:31: error: template argument 3 is invalid