Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Nov 2023 09:54:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 274847] www/node18: Remove DTrace support to fix build with upcoming binutils 2.41
Message-ID:  <bug-274847-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274847

            Bug ID: 274847
           Summary: www/node18: Remove DTrace support to fix build with
                    upcoming binutils 2.41
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: yasu@freebsd.org
            Blocks: 272853
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 246046
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D246046&action=
=3Dedit
Patch file

* With binutils 2.41 build fails as following.
=20=20=20=20=20
LD_LIBRARY_PATH=3D/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Rele=
ase/lib.host:/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/l=
ib.target:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH; cd ../.; mkdir -p
/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj.target/lib=
node/src;
dtrace -64
"-I/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj/gen" -I=
src
-C -G -s src/v8ustack.d -o
"/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj.target/li=
bnode/src/node_dtrace_ustack.o"
    dtrace: failed to compile script src/v8ustack.d: line 1: failed to reso=
lve
V8DBG_SMITAG: Unknown variable name
* This is because behaviour of objdump has changes with binutils 2.41. [1][=
2]
* On upstream DTrace support itself has been removed with Node.js 19.x.
* There is a pull request that says it fixes build error. [3]  I tried it b=
ut
unfortunately it doesn't work as is expected.
* Upstream suggests me to remove DTrace support. [4]

Reference:      https://github.com/nodejs/node/issues/49991#issue-1920717730
[1]
Reference:=20=20=20=20=20
https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D0a3137ce4c4=
b38ee8 [2]
Reference:      https://github.com/nodejs/node/pull/49992 [3]
Reference:=20=20=20=20=20
https://github.com/nodejs/node/pull/49992#issuecomment-1784231190 [4]


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272853
[Bug 272853] devel/binutils: Update to 2.41
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274847-7788>