Bug 1468047 - nodejs fails to build on aarch64 with debug
nodejs fails to build on aarch64 with debug
Product: Fedora
Classification: Fedora
Component: nodejs (Show other bugs)
aarch64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: NodeJS Packaging SIG
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-05 18:05 EDT by D. Marlin
Modified: 2017-08-10 11:40 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-08-10 11:40:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description D. Marlin 2017-07-05 18:05:31 EDT
Description of problem:

nodejs-8 fails to complete the build on AArch64 if with_debug is set to '1'.  The comment in the spec file shows:

 # ARM builds currently break on the Debug builds, so we'll just
 # build the standard runtime until that gets sorted out.

but I could not find an existing BZ on this.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.  change the spec file to build with debug:
    %ifarch %{arm} aarch64 %{power64}
   -%global with_debug 0
   +%global with_debug 1
2.  submit a scratch build
   rpmbuild -bs SPECS/nodejs.spec
   koji build f26 --arch-override=aarch64 --scratch SRPMS/nodejs-8.1.2-1.fc26.src.rpm

Actual results:

  g++ '-DNODE_OPENSSL_CERT_STORE' '-DV8_TARGET_ARCH_ARM64' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT' '-Dv8_promise_internal_field_count' '-DV8_I18N_SUPPORT' -I../deps/v8 -I../. -I../deps/v8/include  -pthread -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -fdata-sections -ffunction-sections -O3 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /builddir/build/BUILD/node-v8.1.2/out/Release/.deps//builddir/build/BUILD/node-v8.1.2/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o.d.raw  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -g   -D_LARGEFILE_SOURCE   -D_FILE_OFFSET_BITS=64   -DZLIB_CONST   -fno-delete-null-pointer-checks  -c -o /builddir/build/BUILD/node-v8.1.2/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o ../deps/v8/src/snapshot/mksnapshot.cc
Unknown external reference 0xffffa50ede20.
/lib64/libc.so.6(_IO_printf+0) [0xffffa50ede20]/bin/sh: line 1: 32371 Trace/breakpoint trap   (core dumped) "/builddir/build/BUILD/node-v8.1.2/out/Debug/mksnapshot" --startup_src "/builddir/build/BUILD/node-v8.1.2/out/Debug/obj.target/v8_snapshot/geni/snapshot.cc" ""
rm 78b0e4d71b05fb0442046143b9f468bfeed7559c.intermediate
make[1]: *** [deps/v8/src/v8_snapshot.target.mk:13: /builddir/build/BUILD/node-v8.1.2/out/Debug/obj.target/v8_snapshot/geni/snapshot.cc] Error 133
make: *** [Makefile:80: node_g] Error 2

Expected results:

completes build without errors.

Additional info:

Scratch build with debug on aarch64:
  Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=20349690

Despite the fact that %{power64} also has with_debug 0, this (scratch) builds successfully with debug on ppc64le:
  Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=20350954

Note You need to log in before you can comment on or make changes to this bug.