Skip to content

Build failure on Raspberry Pi 4 #34202

@YuGiOhJCJ

Description

@YuGiOhJCJ
  • Version: node-v12.18.2.tar.xz
  • Platform: Linux rpi4 5.4.47-v7l+ #1322 SMP Wed Jun 17 17:58:52 BST 2020 armv7l BCM2711 GNU/Linux
  • Subsystem: ...

What steps will reproduce the bug?

$ ./configure --prefix=/usr --shared-zlib --without-ssl
$ make CFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4" CXXFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4"
[...]
g++ -o /tmp/build/firefox/node-v12.18.2/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/codegen/arm/assembler-arm.o ../deps/v8/src/codegen/arm/assembler-arm.cc '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DV8_TARGET_ARCH_ARM' '-DCAN_USE_ARMV7_INSTRUCTIONS' '-DV8_EMBEDDER_STRING="-node.39"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DV8_INTL_SUPPORT' '-DV8_USE_SNAPSHOT' '-DV8_CONCURRENT_MARKING' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_EMBEDDED_BUILTINS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/v8 -I../deps/v8/include -I/tmp/build/firefox/node-v12.18.2/out/Release/obj/gen/inspector-generated-output-root -I../deps/v8/third_party/inspector_protocol -I/tmp/build/firefox/node-v12.18.2/out/Release/obj/gen/torque-output-root -I/tmp/build/firefox/node-v12.18.2/out/Release/obj/gen/generate-bytecode-output-root -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -mfpu=vfp -marm -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /tmp/build/firefox/node-v12.18.2/out/Release/.deps//tmp/build/firefox/node-v12.18.2/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/codegen/arm/assembler-arm.o.d.raw   -c
../deps/v8/src/codegen/arm/assembler-arm.cc:177:2: error: #error "CAN_USE_ARMV7_INSTRUCTIONS should match CAN_USE_VFP3_INSTRUCTIONS"
 #error "CAN_USE_ARMV7_INSTRUCTIONS should match CAN_USE_VFP3_INSTRUCTIONS"
  ^~~~~
tools/v8_gypfiles/v8_base_without_compiler.target.mk:636: recipe for target '/tmp/build/firefox/node-v12.18.2/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/codegen/arm/assembler-arm.o' failed
make[1]: *** [/tmp/build/firefox/node-v12.18.2/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/codegen/arm/assembler-arm.o] Error 1
rm 6908e42a15dc3bb9aee07f6cbf9fe349bac7daed.intermediate 3bc3356d0f5836f07b2a45cd6a026ed30cd8e758.intermediate
Makefile:101: recipe for target 'node' failed
make: *** [node] Error 2

How often does it reproduce? Is there a required condition?

It reproduces always.
The condition is to use the Raspberry Pi 4 machine with the Slackware ARM 14.2 operating system.

What is the expected behavior?

No error while building.

What do you see instead?

An error while building.

Additional information

Slackware ARM 14.2 is a soft-float operating system whereas the Raspberry Pi 4 is a hard-float capable machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions