Bug 1468047

Summary: nodejs fails to build on aarch64 with debug
Product: [Fedora] Fedora Reporter: D. Marlin <dmarlin>
Component: nodejsAssignee: NodeJS Packaging SIG <nodejs-sig>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: jamielinux, mrunge, nodejs-sig, piotr1212, sgallagh, tchollingsworth, thrcka, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 15:40:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description D. Marlin 2017-07-05 22:05:31 UTC
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):

nodejs-8.1.2-1


How reproducible:

consistently


Steps to Reproduce:
1.  change the spec file to build with debug:
    %ifarch %{arm} aarch64 %{power64}
   -%global with_debug 0
   +%global with_debug 1
    %endif
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
3.

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