multiarch / crossbuild

:earth_africa: multiarch cross compiling environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arm64 unrecognized command line option '-mfpu=vfp' and '-marm'

dijiang opened this issue · comments

commented

use linux-arm64 to build nodejs 4.8.3 from source, error happened
error like below:

`/usr/xcc/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-g++ '-DV8_TARGET_ARCH_ARM' '-DCAN_USE_ARMV7_INSTRUCTIONS' '-DENABLE_DISASSEMBLER' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I../deps/v8 -pthread -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -mfpu=vfp -marm -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /work/out/Release/.deps//work/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw -c -o /work/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc

aarch64-unknown-linux-gnueabi-g++: error: unrecognized command line option '-mfpu=vfp'; did you mean '-mcpu='?

aarch64-unknown-linux-gnueabi-g++: error: unrecognized command line option '-marm'; did you mean '-fasm'?

deps/v8/tools/gyp/v8_base.target.mk:398: recipe for target '/work/out/Release/obj.target/v8_base/deps/v8/src/accessors.o' failed

make[1]: *** [/work/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 1

make[1]: Leaving directory '/work/out'

Makefile:69: recipe for target 'node' failed

make: *** [node] Error 2`