-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Closed
Copy link
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.
Description
Version
v18.6.0
Platform
Linux vmware 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:05:39 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Hello, I'm trying to corss compile NodeJS on Ubuntu aarch64 ( a virtual machine on Apple chip ) for x64.
./configure --dest-cpu=x64 --dest-os=linux --cross-compiling --shared-zlib --shared-openssl --shared-nghttp2 --shared-cares --with-intl=none --prefix=/usr
make -C out BUILDTYPE=Release V=s
And then I got a g++ error error: unrecognized command line option ‘-m64’
:
g++ -o /home/malash/Downloads/node-v18.6.0/out/Release/obj.target/libnode/src/api/async_resource.o ../src/api/async_resource.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-D__STDC_FORMAT_MACROS' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=0' '-DNODE_ENABLE_LARGE_CODE_PAGES=1' '-D__POSIX__' '-DNODE_USE_V8_PLATFORM=1' '-DHAVE_OPENSSL=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' -I../src -I/home/malash/Downloads/node-v18.6.0/out/Release/obj/gen -I../deps/googletest/include -I../deps/histogram/src -I../deps/uvwasi/include -I../deps/v8/include -I../deps/llhttp/include -I../deps/uv/include -I../deps/brotli/c/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++17 -MMD -MF /home/malash/Downloads/node-v18.6.0/out/Release/.deps//home/malash/Downloads/node-v18.6.0/out/Release/obj.target/libnode/src/api/async_resource.o.d.raw -c
g++: error: unrecognized command line option ‘-m64’
make: *** [libnode.target.mk:269: /home/malash/Downloads/node-v18.6.0/out/Release/obj.target/libnode/src/api/async_resource.o] Error 1
make: Leaving directory '/home/malash/Downloads/node-v18.6.0/out'
How often does it reproduce? Is there a required condition?
Host: aarch64
Target: x64
What is the expected behavior?
No response
What do you see instead?
g++: error: unrecognized command line option ‘-m64’
Additional information
No response
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.