-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.mipsIssues and PRs related to the MIPS architecture.Issues and PRs related to the MIPS architecture.questionIssues that look for answers.Issues that look for answers.
Description
- Version*: The program 'node' can be found in the following packages:
node
nodejs-legacy
Try: sudo apt-get install
- Platform:
Linux grimreaper 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux - Subsystem:
I'm trying to cross compile node.js for a MIPS-24kc architecture running openwrt.
This is my environment script:
#!/bin/sh
export AR=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-ar
export CC=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc
export CXX=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++
export LINK=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++
export RANLIB=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-ranlib
export STAGING_DIR=../openwrt/staging_dir
export LIBPATH=../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib
export LDFLAGS='-Wl,-rpath-link '${LIBPATH}
output of ls:
$ ls
a.out environment_jk.sh example.c node openwrt sys
output of ls in the openwrt directory
smith@foo:~/ubiquiti/openwrt$ ls
bin build_dir Config.in docs feeds.conf.default key-build LICENSE package rules.mk staging_dir tmp tools
BSDmakefile config dl feeds include key-build.pub Makefile README scripts target toolchain
Output of ./configure --without-snapshot --without-npm
creating ./icu_config.gypi
* Using ICU in deps/icu-small
Using version-specific floating patch tools/icu/patches/58/source/i18n/digitlst.cpp
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'asan': 0,
'coverage': 'false',
'debug_devtools': 'node',
'force_dynamic_crt': 0,
'gas_version': '2.24',
'host_arch': 'mips',
'icu_data_file': 'icudt58l.dat',
'icu_data_in': '../../deps/icu-small/source/data/in/icudt58l.dat',
'icu_endianness': 'l',
'icu_gyp_path': 'tools/icu/icu-generic.gyp',
'icu_locales': 'en,root',
'icu_path': 'deps/icu-small',
'icu_small': 'true',
'icu_ver_major': '58',
'mips_arch_variant': 'r2',
'mips_fpu_mode': 'fp32',
'node_byteorder': 'little',
'node_enable_d8': 'false',
'node_enable_v8_vtunejit': 'false',
'node_install_npm': 'false',
'node_module_version': 54,
'node_no_browser_globals': 'false',
'node_prefix': '/usr/local',
'node_release_urlbase': '',
'node_shared': 'false',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_openssl': 'false',
'node_shared_zlib': 'false',
'node_tag': '',
'node_use_bundled_v8': 'true',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_lttng': 'false',
'node_use_openssl': 'true',
'node_use_perfctr': 'false',
'node_use_v8_platform': 'true',
'openssl_fips': '',
'openssl_no_asm': 0,
'shlib_suffix': 'so.54',
'target_arch': 'mips',
'uv_parent_path': '/deps/uv/',
'uv_use_dtrace': 'false',
'v8_can_use_fpu_instructions': 'true',
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 1,
'v8_enable_inspector': 1,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_random_seed': 0,
'v8_use_mips_abi_hardfloat': 'true',
'v8_use_snapshot': 'false',
'want_separate_host_toolset': 0,
'want_separate_host_toolset_mkpeephole': 0}}
creating ./config.gypi
creating ./config.mk
This is the make error I'm getting:
make[1]: ../openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++: Command not found
make[1]: *** [/home/smith/ubiquiti/node/out/Release/obj.target/v8_libbase/deps/v8/src/base/bits.o] Error 127
make[1]: Leaving directory `/home/smith/ubiquiti/node/out'
make: *** [node] Error 2
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.mipsIssues and PRs related to the MIPS architecture.Issues and PRs related to the MIPS architecture.questionIssues that look for answers.Issues that look for answers.