Created attachment 199677 [details] patch There are two issues with this port on powerpc64: 1. DTRACE is enabled by default, but it doesn't work on powerpc64, 2. GCC7 from ports is used, but links to base libstdc++. Tested on power64 and amd64. Hardware sponsored by IntegriCloud.
Created attachment 199898 [details] v2 Replace COMPILER_TYPE with CHOSEN_COMPILER_TYPE.
Created attachment 201400 [details] v3 Add --openssl-no-asm only when BUNDLED_SSL is selected.
I can see my Makefile changes were partially committed, but extra-patch-common.gypi wasn't. Do you want me to modify my patch?
Hi Piotr, I have been wondering if it would be possible to add the extra linker options for PowerPC using MAKE_ENV+=LDFLAGS.target="-Wl,..." instead of adding an extra patch? If I cooked up an alternative patch, could you give it a try to see if it works for you?
(In reply to Bradley T. Hughes from comment #4) Sure, I can try it.
I uploaded the patch to Phabricator: https://reviews.freebsd.org/D19250
A commit references this bug: Author: bhughes Date: Tue Mar 12 21:05:40 UTC 2019 New revision: 495525 URL: https://svnweb.freebsd.org/changeset/ports/495525 Log: www/node: set environment variables for host build The Node.js build system supports cross-compilation via node-gyp, which picks up CC, CXX, LINK, C*FLAGS, and LDFLAGS from the environment for the target build, but not for the host. We need to set the environment variables for the "host" build. This unbreaks the build on powerpc64. PR: 233650 Reported by: Piotr Kubaj <pkubaj@anongoth.pl> Sponsored by: Miles AS Differential Revision: https://reviews.freebsd.org/D19250 Changes: head/www/node/Makefile
I've committed the change. Thanks for the report :)
A commit references this bug: Author: feld Date: Thu Mar 14 17:28:12 UTC 2019 New revision: 495723 URL: https://svnweb.freebsd.org/changeset/ports/495723 Log: MFH: r494851 r495525 www/node: Update 11.10.1 -> 11.11.0 https://nodejs.org/en/blog/release/v11.11.0/ Sponsored by: Miles AS www/node: set environment variables for host build The Node.js build system supports cross-compilation via node-gyp, which picks up CC, CXX, LINK, C*FLAGS, and LDFLAGS from the environment for the target build, but not for the host. We need to set the environment variables for the "host" build. This unbreaks the build on powerpc64. PR: 233650 Reported by: Piotr Kubaj <pkubaj@anongoth.pl> Sponsored by: Miles AS Differential Revision: https://reviews.freebsd.org/D19250 Changes: _U branches/2019Q1/ branches/2019Q1/www/node/Makefile branches/2019Q1/www/node/distinfo