Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when cross compiling for arm7 #14112

Closed
davidchappelle opened this issue Jul 6, 2017 · 4 comments
Closed

Build fails when cross compiling for arm7 #14112

davidchappelle opened this issue Jul 6, 2017 · 4 comments
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI. invalid Issues and PRs that are invalid.

Comments

@davidchappelle
Copy link

davidchappelle commented Jul 6, 2017

I am trying to cross compile node v8.1.3 for arm7. It appears that part of the build process is to build the executable mkpeephole. Which is then invoked as part of the build process. Unfortunately, since we are cross compiling, the mkpeephole executable has been built for the target and cannot be executed as a native executable on the host. Here is the build output illustrating the issue:

  /usr/bin/arm-linux-gnueabihf-g++ -pthread -rdynamic  -o /home/dchappelle/repositories/node/out/Release/mkpeephole -Wl,--start-group /home/dchappelle/repositories/node/out/Release/obj.host/mkpeephole/deps/v8/src/interpreter/bytecode-operands.o /home/dchappelle/repositories/node/out/Release/obj.host/mkpeephole/deps/v8/src/interpreter/bytecodes.o /home/dchappelle/repositories/node/out/Release/obj.host/mkpeephole/deps/v8/src/interpreter/mkpeephole.o /home/dchappelle/repositories/node/out/Release/obj.host/deps/v8/src/libv8_libbase.a -static -ldl -lrt -Wl,--end-group
  LD_LIBRARY_PATH=/home/dchappelle/repositories/node/out/Release/lib.host:/home/dchappelle/repositories/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/src; mkdir -p /home/dchappelle/repositories/node/out/Release/obj.target/v8_base/geni; "/home/dchappelle/repositories/node/out/Release/mkpeephole" "/home/dchappelle/repositories/node/out/Release/obj.target/v8_base/geni/bytecode-peephole-table.cc"
/home/dchappelle/repositories/node/out/Release/mkpeephole: 1: /home/dchappelle/repositories/node/out/Release/mkpeephole: Syntax error: word unexpected (expecting ")")
deps/v8/src/v8_base.target.mk:13: recipe for target '/home/dchappelle/repositories/node/out/Release/obj.target/v8_base/geni/bytecode-peephole-table.cc' failed
make[1]: *** [/home/dchappelle/repositories/node/out/Release/obj.target/v8_base/geni/bytecode-peephole-table.cc] Error 2
Makefile:76: recipe for target 'node' failed
make: *** [node] Error 2

Here is the script that I am running to configure and build:

#!/bin/sh -e

set -x #echo on

need() {
    dpkg -s $1
    if [ $? -ne 0 ]; then
        sudo apt-get install $1
    fi  
}

need gcc-arm-linux-gnueabihf
need g++-arm-linux-gnueabihf
need g++-4.8-multilib

export CSTOOLS="/usr/local/uclinux-dist/arm-linux-gnueabi-tools-20140823/arm-linux-gnueabi"

#Define our target device
export TARGET_ARCH="-march=armv7-a"
export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb"

#Define the cross compilators on your system
export AR="/usr/bin/arm-linux-gnueabihf-ar"
export CC="/usr/bin/arm-linux-gnueabihf-gcc"
export CXX="/usr/bin/arm-linux-gnueabihf-g++"
export LINK="/usr/bin/arm-linux-gnueabihf-g++"
export CPP="/usr/bin/arm-linux-gnueabihf-gcc -E"
export LD="/usr/bin/arm-linux-gnueabihf-ld"
export AS="/usr/bin/arm-linux-gnueabihf-as"
export CCLD="/usr/bin/arm-linux-gnueabihf-gcc ${TARGET_ARCH} ${TARGET_TUNE}"
export NM="/usr/bin/arm-linux-gnueabihf-nm"
export STRIP="/usr/bin/arm-linux-gnueabihf-strip"
export OBJCOPY="/usr/bin/arm-linux-gnueabihf-objcopy"
export RANLIB="/usr/bin/arm-linux-gnueabihf-ranlib"
export F77="/usr/bin/arm-linux-gnueabi-g77 ${TARGET_ARCH} ${TARGET_TUNE}"
unset LIBC

#Define flags
export CXXFLAGS="-march=armv7-a"
export LDFLAGS="-L${CSTOOLS_LIB} -Wl,-rpath-link,${CSTOOLS_LIB} -Wl,-O1 -Wl,--hash-style=gnu"
export CFLAGS="-isystem${CSTOOLS_INC} -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
export CPPFLAGS="-isystem${CSTOOLS_INC}"
export CCFLAGS="-march=armv7-a"

#Tools
export CSTOOLS=/usr/arm-linux-gnueabi
export CSTOOLS_INC=${CSTOOLS}/include
export CSTOOLS_LIB=${CSTOOLS}/lib
export ARM_TARGET_LIB=$CSTOOLS_LIB
export GYP_DEFINES="armv7=1"

#Define other things, those are not 'must' to have defined but we added
export SHELL="/bin/bash"
export TERM="screen"
export LANG="en_US.UTF-8"
export MAKE="make"
#Export the path for your system
export HOME="/home/gioyik" #Change this one with the name of your user directory
export PATH="${CSTOOLS}/bin:/usr/arm-linux-gnueabi/bin/:${HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

./configure --prefix=`pwd`/../build --cross-compiling --with-snapshot --dest-cpu=arm --dest-os=linux --with-arm-fpu=vfpv3-d16 --without-intl --fully-static
make
@bnoordhuis bnoordhuis added arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI. labels Jul 6, 2017
@bnoordhuis
Copy link
Member

Does it work when you do make clean all CC.host=gcc CXX.host=g++? If not, can you post the contents of config.gypi?

@davidchappelle
Copy link
Author

I tried your suggestion and it didn't work. Seems that my target CC/CXX flags are being used for host compilation. I have updated my build script accordingly to account for both host and target options:

#!/bin/sh -e

set -x #echo on

need() {
    dpkg -s $1
    if [ $? -ne 0 ]; then
        sudo apt-get install $1
    fi
}

need gcc-arm-linux-gnueabihf
need g++-arm-linux-gnueabihf
need g++-4.8-multilib

export CSTOOLS="/usr/local/uclinux-dist/arm-linux-gnueabi-tools-20140823/arm-linux-gnueabi"

#Define our target device
export TARGET_ARCH="-march=armv7-a"
export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb"

#Define the cross compilators on your system
export AR_target="/usr/bin/arm-linux-gnueabihf-ar"
export CC_target="/usr/bin/arm-linux-gnueabihf-gcc"
export CXX_target="/usr/bin/arm-linux-gnueabihf-g++"
export LINK_target="/usr/bin/arm-linux-gnueabihf-g++"
export CPP_target="/usr/bin/arm-linux-gnueabihf-gcc -E"
export LD_target="/usr/bin/arm-linux-gnueabihf-ld"
export AS_target="/usr/bin/arm-linux-gnueabihf-as"
export CCLD_target="/usr/bin/arm-linux-gnueabihf-gcc ${TARGET_ARCH} ${TARGET_TUNE}"
export NM_target="/usr/bin/arm-linux-gnueabihf-nm"
export STRIP_target="/usr/bin/arm-linux-gnueabihf-strip"
export OBJCOPY_target="/usr/bin/arm-linux-gnueabihf-objcopy"
export RANLIB_target="/usr/bin/arm-linux-gnueabihf-ranlib"
export F77_target="/usr/bin/arm-linux-gnueabi-g77 ${TARGET_ARCH} ${TARGET_TUNE}"

export AR_host="ar"
export CC_host="gcc"
export CXX_host="g++"
export LINK_host="g++"
export CPP_host="gcc -E"
export LD_host="ld"
export AS_host="as"
export CCLD_host="gcc"
export NM_host="nm"
export STRIP_host="strip"
export OBJCOPY_host="objcopy"
export RANLIB_host="ranlib"
export F77_host="g77"

unset LIBC

#Define flags
export CXXFLAGS_target="-march=armv7-a"
export LDFLAGS_target="-L${CSTOOLS_LIB} -Wl,-rpath-link,${CSTOOLS_LIB} -Wl,-O1 -Wl,--hash-style=gnu"
export CFLAGS_target="-isystem${CSTOOLS_INC} -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
export CPPFLAGS_target="-isystem${CSTOOLS_INC}"
export CCFLAGS_target="-march=armv7-a"

export CXXFLAGS_host=""
export LDFLAGS_host=""
export CFLAGS_host=""
export CPPFLAGS_host=""
export CCFLAGS_host=""

#Tools
export CSTOOLS=/usr/arm-linux-gnueabi
export CSTOOLS_INC=${CSTOOLS}/include
export CSTOOLS_LIB=${CSTOOLS}/lib
export ARM_TARGET_LIB=$CSTOOLS_LIB
export GYP_DEFINES="armv7=1"

#Define other things, those are not 'must' to have defined but we added
export SHELL="/bin/bash"
export TERM="screen"
export LANG="en_US.UTF-8"
export MAKE="make"

#Export the path for your system
export HOME="/home/dchappelle" #Change this one with the name of your user directory
export PATH="${CSTOOLS}/bin:/usr/arm-linux-gnueabi/bin/:${HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

./configure --prefix=`pwd`/../build --cross-compiling --without-snapshot --dest-cpu=arm --dest-os=linux --with-arm-fpu=vfpv3-d16 --without-intl --fully-static
make -d clean all

Here is my config.gypi:

# Do not edit. Generated by the configure script.
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': ['-static']},
  'variables': { 'arm_float_abi': 'default',
                 'arm_fpu': 'vfpv3-d16',
                 'arm_thumb': 0,
                 'arm_version': 'default',
                 'asan': 0,
                 'coverage': 'false',
                 'debug_devtools': 'node',
                 'force_dynamic_crt': 0,
                 'gas_version': 0,
                 'host_arch': 'x64',
                 'icu_small': 'false',
                 'node_byteorder': 'little',
                 'node_enable_d8': 'false',
                 'node_enable_v8_vtunejit': 'false',
                 'node_install_npm': 'true',
                 'node_module_version': 57,
                 'node_no_browser_globals': 'false',
                 'node_prefix': '/home/dchappelle/repositories/node/../build',
                 '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',
                 'node_without_node_options': 'false',
                 'openssl_fips': '',
                 'openssl_no_asm': 0,
                 'shlib_suffix': 'so.57',
                 'target_arch': 'arm',
                 'uv_parent_path': '/deps/uv/',
                 'uv_use_dtrace': 'false',
                 'v8_enable_gdbjit': 0,
                 'v8_enable_i18n_support': 0,
                 'v8_enable_inspector': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_optimized_debug': 0,
                 'v8_promise_internal_field_count': 1,
                 'v8_random_seed': 0,
                 'v8_use_snapshot': 'false',
                 'want_separate_host_toolset': 0,
                 'want_separate_host_toolset_mkpeephole': 1}}

Here is the output of the current failure. Seems that something is passing --32 to as and it is getting angry:

+ need gcc-arm-linux-gnueabihf
+ dpkg -s gcc-arm-linux-gnueabihf
Package: gcc-arm-linux-gnueabihf
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 23
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: gcc-defaults (1.150ubuntu1)
Version: 4:5.3.1-1ubuntu1
Depends: cpp-arm-linux-gnueabihf (>= 4:5.3.1-1ubuntu1), gcc-5-arm-linux-gnueabihf (>= 5.3.1-3~)
Recommends: libc6-dev-armhf-cross | libc-dev-armhf-cross
Suggests: make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb-arm-linux-gnueabihf, gcc-doc
Description: GNU C compiler for the armhf architecture
 This is the GNU C compiler, a fairly portable optimizing compiler for C.
 .
 This is a dependency package providing the default GNU C cross-compiler
 for the armhf architecture.
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
+ [ 0 -ne 0 ]
+ need g++-arm-linux-gnueabihf
+ dpkg -s g++-arm-linux-gnueabihf
Package: g++-arm-linux-gnueabihf
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 11
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: gcc-defaults (1.150ubuntu1)
Version: 4:5.3.1-1ubuntu1
Depends: cpp-arm-linux-gnueabihf (>= 4:5.3.1-1ubuntu1), gcc-arm-linux-gnueabihf (>= 4:5.3.1-1ubuntu1), g++-5-arm-linux-gnueabihf (>= 5.3.1-3~)
Description: GNU C++ compiler for the armhf architecture
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package providing the default GNU C++ cross-compiler
 for the armhf architecture.
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
+ [ 0 -ne 0 ]
+ need g++-4.8-multilib
+ dpkg -s g++-4.8-multilib
Package: g++-4.8-multilib
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 6
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: gcc-4.8
Version: 4.8.5-4ubuntu2
Depends: gcc-4.8-base (= 4.8.5-4ubuntu2), g++-4.8 (= 4.8.5-4ubuntu2), gcc-4.8-multilib (= 4.8.5-4ubuntu2), lib32stdc++-4.8-dev (= 4.8.5-4ubuntu2), libx32stdc++-4.8-dev (= 4.8.5-4ubuntu2)
Suggests: lib32stdc++6-4.8-dbg (>= 4.8.5-4ubuntu2), libx32stdc++6-4.8-dbg (>= 4.8.5-4ubuntu2)
Description: GNU C++ compiler (multilib support)
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package, depending on development packages
 for the non-default multilib architecture(s).
Homepage: http://gcc.gnu.org/
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
+ [ 0 -ne 0 ]
+ export CSTOOLS=/usr/local/uclinux-dist/arm-linux-gnueabi-tools-20140823/arm-linux-gnueabi
+ export TARGET_ARCH=-march=armv7-a
+ export TARGET_TUNE=-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
+ export AR_target=/usr/bin/arm-linux-gnueabihf-ar
+ export CC_target=/usr/bin/arm-linux-gnueabihf-gcc
+ export CXX_target=/usr/bin/arm-linux-gnueabihf-g++
+ export LINK_target=/usr/bin/arm-linux-gnueabihf-g++
+ export CPP_target=/usr/bin/arm-linux-gnueabihf-gcc -E
+ export LD_target=/usr/bin/arm-linux-gnueabihf-ld
+ export AS_target=/usr/bin/arm-linux-gnueabihf-as
+ export CCLD_target=/usr/bin/arm-linux-gnueabihf-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
+ export NM_target=/usr/bin/arm-linux-gnueabihf-nm
+ export STRIP_target=/usr/bin/arm-linux-gnueabihf-strip
+ export OBJCOPY_target=/usr/bin/arm-linux-gnueabihf-objcopy
+ export RANLIB_target=/usr/bin/arm-linux-gnueabihf-ranlib
+ export F77_target=/usr/bin/arm-linux-gnueabi-g77 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb
+ export AR_host=ar
+ export CC_host=gcc
+ export CXX_host=g++
+ export LINK_host=g++
+ export CPP_host=gcc -E
+ export LD_host=ld
+ export AS_host=as
+ export CCLD_host=gcc
+ export NM_host=nm
+ export STRIP_host=strip
+ export OBJCOPY_host=objcopy
+ export RANLIB_host=ranlib
+ export F77_host=g77
+ unset LIBC
+ export CXXFLAGS_target=-march=armv7-a
+ export LDFLAGS_target=-L -Wl,-rpath-link, -Wl,-O1 -Wl,--hash-style=gnu
+ export CFLAGS_target=-isystem -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
+ export CPPFLAGS_target=-isystem
+ export CCFLAGS_target=-march=armv7-a
+ export CXXFLAGS_host=
+ export LDFLAGS_host=
+ export CFLAGS_host=
+ export CPPFLAGS_host=
+ export CCFLAGS_host=
+ export CSTOOLS=/usr/arm-linux-gnueabi
+ export CSTOOLS_INC=/usr/arm-linux-gnueabi/include
+ export CSTOOLS_LIB=/usr/arm-linux-gnueabi/lib
+ export ARM_TARGET_LIB=/usr/arm-linux-gnueabi/lib
+ export GYP_DEFINES=armv7=1
+ export SHELL=/bin/bash
+ export TERM=screen
+ export LANG=en_US.UTF-8
+ export MAKE=make
+ export HOME=/home/dchappelle
+ export PATH=/usr/arm-linux-gnueabi/bin:/usr/arm-linux-gnueabi/bin/:/home/dchappelle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ pwd
+ ./configure --prefix=/home/dchappelle/repositories/node/../build --cross-compiling --without-snapshot --dest-cpu=arm --dest-os=linux --with-arm-fpu=vfpv3-d16 --without-intl --fully-static
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': ['-static']},
  'variables': { 'arm_float_abi': 'default',
                 'arm_fpu': 'vfpv3-d16',
                 'arm_thumb': 0,
                 'arm_version': 'default',
                 'asan': 0,
                 'coverage': 'false',
                 'debug_devtools': 'node',
                 'force_dynamic_crt': 0,
                 'gas_version': 0,
                 'host_arch': 'x64',
                 'icu_small': 'false',
                 'node_byteorder': 'little',
                 'node_enable_d8': 'false',
                 'node_enable_v8_vtunejit': 'false',
                 'node_install_npm': 'true',
                 'node_module_version': 57,
                 'node_no_browser_globals': 'false',
                 'node_prefix': '/home/dchappelle/repositories/node/../build',
                 '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',
                 'node_without_node_options': 'false',
                 'openssl_fips': '',
                 'openssl_no_asm': 0,
                 'shlib_suffix': 'so.57',
                 'target_arch': 'arm',
                 'uv_parent_path': '/deps/uv/',
                 'uv_use_dtrace': 'false',
                 'v8_enable_gdbjit': 0,
                 'v8_enable_i18n_support': 0,
                 'v8_enable_inspector': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_optimized_debug': 0,
                 'v8_promise_internal_field_count': 1,
                 'v8_random_seed': 0,
                 'v8_use_snapshot': 'false',
                 'want_separate_host_toolset': 0,
                 'want_separate_host_toolset_mkpeephole': 1}}
creating ./config.gypi
creating ./config.mk
+ make clean all
rm -f -r out/Makefile node node_g out/Release/node \
                out/Release/node.exp
rm -f -r node_modules
rm -f test.tap
/usr/bin/python tools/gyp_node.py -f make
make -C out BUILDTYPE=Release V=1
  LD_LIBRARY_PATH=/home/dchappelle/repositories/node/out/Release/lib.host:/home/dchappelle/repositories/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/dchappelle/repositories/node/out/Release/obj/gen; python tools/js2c.py "/home/dchappelle/repositories/node/out/Release/obj/gen/node_javascript.cc" lib/internal/bootstrap_node.js lib/async_hooks.js lib/assert.js lib/buffer.js lib/child_process.js lib/console.js lib/constants.js lib/crypto.js lib/cluster.js lib/dgram.js lib/dns.js lib/domain.js lib/events.js lib/fs.js lib/http.js lib/_http_agent.js lib/_http_client.js lib/_http_common.js lib/_http_incoming.js lib/_http_outgoing.js lib/_http_server.js lib/https.js lib/inspector.js lib/module.js lib/net.js lib/os.js lib/path.js lib/process.js lib/punycode.js lib/querystring.js lib/readline.js lib/repl.js lib/stream.js lib/_stream_readable.js lib/_stream_writable.js lib/_stream_duplex.js lib/_stream_transform.js lib/_stream_passthrough.js lib/_stream_wrap.js lib/string_decoder.js lib/sys.js lib/timers.js lib/tls.js lib/_tls_common.js lib/_tls_legacy.js lib/_tls_wrap.js lib/tty.js lib/url.js lib/util.js lib/v8.js lib/vm.js lib/zlib.js lib/internal/buffer.js lib/internal/child_process.js lib/internal/cluster/child.js lib/internal/cluster/master.js lib/internal/cluster/round_robin_handle.js lib/internal/cluster/shared_handle.js lib/internal/cluster/utils.js lib/internal/cluster/worker.js lib/internal/errors.js lib/internal/freelist.js lib/internal/fs.js lib/internal/http.js lib/internal/linkedlist.js lib/internal/net.js lib/internal/module.js lib/internal/process/next_tick.js lib/internal/process/promises.js lib/internal/process/stdio.js lib/internal/process/warning.js lib/internal/process.js lib/internal/querystring.js lib/internal/process/write-coverage.js lib/internal/readline.js lib/internal/repl.js lib/internal/socket_list.js lib/internal/test/unicode.js lib/internal/url.js lib/internal/util.js lib/internal/v8_prof_polyfill.js lib/internal/v8_prof_processor.js lib/internal/streams/lazy_transform.js lib/internal/streams/BufferList.js lib/internal/streams/legacy.js lib/internal/streams/destroy.js deps/v8/tools/splaytree.js deps/v8/tools/codemap.js deps/v8/tools/consarray.js deps/v8/tools/csvparser.js deps/v8/tools/profile.js deps/v8/tools/profile_view.js deps/v8/tools/logreader.js deps/v8/tools/tickprocessor.js deps/v8/tools/SourceMap.js deps/v8/tools/tickprocessor-driver.js deps/node-inspect/lib/_inspect.js deps/node-inspect/lib/internal/inspect_client.js deps/node-inspect/lib/internal/inspect_repl.js ./config.gypi src/notrace_macros.py src/nolttng_macros.py src/perfctr_macros.py
  touch /home/dchappelle/repositories/node/out/Release/obj.host/node_js2c.stamp
  g++ '-DV8_TARGET_ARCH_ARM' '-DCAN_USE_ARMV7_INSTRUCTIONS' '-DCAN_USE_VFP3_INSTRUCTIONS' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT' '-Dv8_promise_internal_field_count' '-DUSE_EABI_HARDFLOAT=0' -I../deps/v8  -pthread -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -m32 -fdata-sections -ffunction-sections -O3 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/dchappelle/repositories/node/out/Release/.deps//home/dchappelle/repositories/node/out/Release/obj.host/v8_libbase/deps/v8/src/base/bits.o.d.raw   -c -o /home/dchappelle/repositories/node/out/Release/obj.host/v8_libbase/deps/v8/src/base/bits.o ../deps/v8/src/base/bits.cc
as: unrecognized option '--32'
deps/v8/src/v8_libbase.host.mk:118: recipe for target '/home/dchappelle/repositories/node/out/Release/obj.host/v8_libbase/deps/v8/src/base/bits.o' failed
make[1]: *** [/home/dchappelle/repositories/node/out/Release/obj.host/v8_libbase/deps/v8/src/base/bits.o] Error 1
Makefile:76: recipe for target 'node' failed
make: *** [node] Error 2

@bnoordhuis
Copy link
Member

You also need to install binutils-multiarch. The problem right now is that your copy of g++ is multiarch capable (accepts -m32) but as isn't (rejects --32.)

@bnoordhuis
Copy link
Member

Closing, see #14124.

@bnoordhuis bnoordhuis added the invalid Issues and PRs that are invalid. label Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI. invalid Issues and PRs that are invalid.
Projects
None yet
Development

No branches or pull requests

2 participants