1 Reply Latest reply on Feb 12, 2020 5:32 AM by cj

    Building Nodejs binary from source code

    User588411-Oracle

      I am trying to buildi Nodejs binary from source code.

      Steps

      VM: Oracle

      1. wget https://nodejs.org/dist/v12.14.1/node-v12.14.1.tar.gz

      2. Unzip and navigate to node-v12.14.1

      3. sudo ./configure

      4. sudo make

       

      This is failing

      Env:

      NAME="Oracle Linux Server"

      VERSION="7.7"

      ID="ol"

      ID_LIKE="fedora"

      VARIANT="Server"

      VARIANT_ID="server"

      VERSION_ID="7.7"

      PRETTY_NAME="Oracle Linux Server 7.7"

      ANSI_COLOR="0;31"

      CPE_NAME="cpe:/o:oracle:linux:7:7:server"

      HOME_URL="https://linux.oracle.com/"

      BUG_REPORT_URL="https://bugzilla.oracle.com/"

       

       

      ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"

      ORACLE_BUGZILLA_PRODUCT_VERSION=7.7

      ORACLE_SUPPORT_PRODUCT="Oracle Linux"

      ORACLE_SUPPORT_PRODUCT_VERSION=7.7

       

       

      Errors

       

       

      Build is failing

      I am getting compile errors when trying to build:

      g++ -o /home/opc/node/node-v12.14.1/out/Release/obj.target/libnode/src/api/async_resource.o ../src/api/async_resource.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=1' '-DNODE_REPORT' '-D__POSIX__' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_OPENSSL=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DNGHTTP2_STATICLIB' -I../src -I/home/opc/node/node-v12.14.1/out/Release/obj/gen -I/home/opc/node/node-v12.14.1/out/Release/obj/gen/include -I/home/opc/node/node-v12.14.1/out/Release/obj/gen/src -I../deps/histogram/src -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -I../deps/zlib -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 -I../deps/openssl/openssl/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 /home/opc/node/node-v12.14.1/out/Release/.deps//home/opc/node/node-v12.14.1/out/Release/obj.target/libnode/src/api/async_resource.o.d.raw  -c

      In file included from ../src/env-inl.h:27:0,

               from ../src/api/async_resource.cc:2:

      ../src/aliased_buffer.h:32:22: error: expected type-specifier

            typename = std::enable_if_t<std::is_scalar<NativeT>::value>>

                 ^

      ../src/aliased_buffer.h:32:22: error: expected ‘>’

      ../src/aliased_buffer.h:65:54: error: template argument 3 is invalid

          const AliasedBufferBase<uint8_t, v8::Uint8Array>& backing_buffer)

                                 ^

      ../src/aliased_buffer.h:112:45: error: template argument 3 is invalid

         Reference(AliasedBufferBase<NativeT, V8T>* aliased_buffer, size_t index)

                             ^