Compiling NodeJS for ci20

This topic contains 2 replies, has 3 voices, and was last updated by  ZubairLK 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #53829

    john lam


    I was wondering if anyone has had any luck in compiling nodejs for the ci20, I am currently building a small web application on this device as it is always on to perform Wake on lan on my home lab which consists of multiple servers. This will be a web application and I want to be able to use task runners like gulp, however these are dependent on NPM which requires node to be installed.

    I have grabbed the latest nodejs source from their page and have attempted to build with these parameters

    ./configure –without-snapshot –dest-cpu=mipsel –dest-os=linux –with-mips-float-abi=soft  && make

    with this being the output of the build

    creating ./icu_config.gypi
    { ‘target_defaults’: { ‘cflags’: [],
    ‘default_configuration’: ‘Release’,
    ‘defines’: [],
    ‘include_dirs’: [],
    ‘libraries’: []},
    ‘variables’: { ‘asan’: 0,
    ‘gas_version’: ‘2.25’,
    ‘host_arch’: ‘mipsel’,
    ‘icu_small’: ‘false’,
    ‘mips_arch_variant’: ‘r2’,
    ‘mips_fpu_mode’: ‘fp32’,
    ‘node_byteorder’: ‘little’,
    ‘node_install_npm’: ‘true’,
    ‘node_prefix’: ‘/usr/local’,
    ‘node_release_urlbase’: ”,
    ‘node_shared_http_parser’: ‘false’,
    ‘node_shared_libuv’: ‘false’,
    ‘node_shared_openssl’: ‘false’,
    ‘node_shared_zlib’: ‘false’,
    ‘node_tag’: ”,
    ‘node_use_dtrace’: ‘false’,
    ‘node_use_etw’: ‘false’,
    ‘node_use_lttng’: ‘false’,
    ‘node_use_openssl’: ‘true’,
    ‘node_use_perfctr’: ‘false’,
    ‘openssl_fips’: ”,
    ‘openssl_no_asm’: 0,
    ‘target_arch’: ‘mipsel’,
    ‘uv_parent_path’: ‘/deps/uv/’,
    ‘uv_use_dtrace’: ‘false’,
    ‘v8_can_use_fpu_instructions’: ‘false’,
    ‘v8_enable_gdbjit’: 0,
    ‘v8_enable_i18n_support’: 0,
    ‘v8_no_strict_aliasing’: 1,
    ‘v8_optimized_debug’: 0,
    ‘v8_random_seed’: 0,
    ‘v8_use_mips_abi_hardfloat’: ‘false’,
    ‘v8_use_snapshot’: ‘false’,
    ‘want_separate_host_toolset’: 0}}
    creating ./config.gypi
    creating ./
    make -C out BUILDTYPE=Release V=1
    make[1]: Entering directory ‘/home/johnathon332/downloads/node-v4.4.5/out’
    g++ ‘-DV8_TARGET_ARCH_MIPS’ ‘-D__mips_soft_float=1’ ‘-DENABLE_DISASSEMBLER’ ‘-DV8_IMMINENT_DEPRECATION_WARNINGS’ ‘-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC’ ‘-D_MIPS_ARCH_MIPS32R2’ ‘-DFPU_MODE_FP32’ -I../deps/v8 -pthread -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -EL -Wno-error=array-bounds -msoft-float -mips32r2 -Wa,-mips32r2 -mfp32 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/johnathon332/downloads/node-v4.4.5/out/Release/.deps//home/johnathon332/downloads/node-v4.4.5/out/Release/ -c -o /home/johnathon332/downloads/node-v4.4.5/out/Release/ ../deps/v8/src/
    In file included from /usr/include/features.h:398:0,
    from /usr/include/stdint.h:25,
    from /usr/lib/gcc/mipsel-linux-gnu/4.9/include/stdint.h:9,
    from ../deps/v8/include/v8.h:19,
    from ../deps/v8/src/v8.h:29,
    from ../deps/v8/src/
    /usr/include/mipsel-linux-gnu/gnu/stubs.h:8:33: fatal error: gnu/stubs-o32_soft.h: No such file or directory
    # include
    compilation terminated.
    deps/v8/tools/gyp/ recipe for target ‘/home/johnathon332/downloads/node-v4.4.5/out/Release/’ failed
    make[1]: *** [/home/johnathon332/downloads/node-v4.4.5/out/Release/] Error 1
    make[1]: Leaving directory ‘/home/johnathon332/downloads/node-v4.4.5/out’
    Makefile:45: recipe for target ‘node’ failed
    make: *** [node] Error 2



    Hi John,

    Another way to install a more recent version of Node.js on Debian8 is by upgrading the kernel to the next stable release – stretch (testing), with support to Node 4.3.1(

    You can follow the instructions here:

    Best regards,



    Hi John,

    The Ci20 distros can be a bit platform specific. Debian’s usual wikis for upgrading are more x86 specific.

    For the Ci20, I’d recommend upgrading to Debian 8 from here

    Then using apt-get install nodejs.


    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Creator Platforms’ is closed to new topics and replies.