Skip to content

Instantly share code, notes, and snippets.

@richardlau
Created April 20, 2016 18:12
Show Gist options
  • Save richardlau/63dcc30b555d88729a2a831fc5cf4b93 to your computer and use it in GitHub Desktop.
Save richardlau/63dcc30b555d88729a2a831fc5cf4b93 to your computer and use it in GitHub Desktop.
`make binary` on arm
riclau@tau1 ~/node-1 $ uname -a
Linux tau1 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
riclau@tau1 ~/node-1 $
riclau@tau1 ~/node-1 $ make binary 2>&1 | tee ../build.linux-arm.log
rm -rf node-v6.0.0-linux-x86
rm -rf out/deps out/Release
python ./configure \
--prefix=/ \
--dest-cpu=x86 \
--tag= \
--release-urlbase= \
--download=all --with-intl=small-icu
WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++)
creating ./icu_config.gypi
* ECMA-402 (Intl) support didn't find ICU in ./deps/icu..
<https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.zip>
Fetch: . 26.5MB total, 26.5MB downloaded
MD5: 61d71888f14bf00cc3e8a6f2c087d367 ./deps/icu4c-56_1-src.zip
Extracting zipfile: ./deps/icu4c-56_1-src.zip
* Using ICU in ./deps/icu
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'asan': 0,
'gas_version': '2.24',
'host_arch': 'arm',
'icu_data_file': 'icudt56l.dat',
'icu_data_in': '../../deps/icu/source/data/in/icudt56l.dat',
'icu_endianness': 'l',
'icu_gyp_path': 'tools/icu/icu-generic.gyp',
'icu_locales': 'en,root',
'icu_path': './deps/icu',
'icu_small': 'true',
'icu_ver_major': '56',
'node_byteorder': 'little',
'node_enable_v8_vtunejit': 'false',
'node_install_npm': 'true',
'node_no_browser_globals': 'false',
'node_prefix': '/',
'node_release_urlbase': '',
'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_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': 'ia32',
'uv_parent_path': '/deps/uv/',
'uv_use_dtrace': 'false',
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 1,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_random_seed': 0,
'v8_use_snapshot': 'true',
'want_separate_host_toolset': 1}}
creating ./config.gypi
creating ./config.mk
WARNING: warnings were emitted in the configure phase
make install DESTDIR=node-v6.0.0-linux-x86 V=1 PORTABLE=1
make[1]: Entering directory '/home/riclau/node-1'
make -C out BUILDTYPE=Release V=1
make[2]: Entering directory '/home/riclau/node-1/out'
deps/v8/tools/gyp/v8_base.target.mk:553: warning: overriding recipe for target '/home/riclau/node-1/out/Release/libv8_base.a'
deps/v8/tools/gyp/v8_base.host.mk:551: warning: ignoring old recipe for target '/home/riclau/node-1/out/Release/libv8_base.a'
deps/v8/tools/gyp/v8_libbase.target.mk:165: warning: overriding recipe for target '/home/riclau/node-1/out/Release/libv8_libbase.a'
deps/v8/tools/gyp/v8_libbase.host.mk:161: warning: ignoring old recipe for target '/home/riclau/node-1/out/Release/libv8_libbase.a'
deps/v8/tools/gyp/v8_libplatform.target.mk:153: warning: overriding recipe for target '/home/riclau/node-1/out/Release/libv8_libplatform.a'
deps/v8/tools/gyp/v8_libplatform.host.mk:149: warning: ignoring old recipe for target '/home/riclau/node-1/out/Release/libv8_libplatform.a'
deps/v8/tools/gyp/v8_nosnapshot.target.mk:154: warning: overriding recipe for target '/home/riclau/node-1/out/Release/libv8_nosnapshot.a'
deps/v8/tools/gyp/v8_nosnapshot.host.mk:154: warning: ignoring old recipe for target '/home/riclau/node-1/out/Release/libv8_nosnapshot.a'
deps/v8/tools/gyp/v8_snapshot.target.mk:181: warning: overriding recipe for target '/home/riclau/node-1/out/Release/libv8_snapshot.a'
deps/v8/tools/gyp/v8_snapshot.host.mk:173: warning: ignoring old recipe for target '/home/riclau/node-1/out/Release/libv8_snapshot.a'
g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m32 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/riclau/node-1/out/Release/.deps//home/riclau/node-1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw -c -o /home/riclau/node-1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc
cc1plus: error: unrecognized command line option ‘-m32’
deps/gtest/gtest.target.mk:81: recipe for target '/home/riclau/node-1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o' failed
make[2]: *** [/home/riclau/node-1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o] Error 1
make[2]: Leaving directory '/home/riclau/node-1/out'
Makefile:66: recipe for target 'node' failed
make[1]: *** [node] Error 2
make[1]: Leaving directory '/home/riclau/node-1'
Makefile:518: recipe for target 'node-v6.0.0-linux-x86.tar' failed
make: *** [node-v6.0.0-linux-x86.tar] Error 2
riclau@tau1 ~/node-1 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment