[Bug 257525] lang/ruby26: add DTRACE option

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Sep 2021 14:31:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257525

--- Comment #10 from Evgeniy Khramtsov <evgeniy@khramtsov.org> ---
(In reply to Steve Wills from comment #8)

Sure. Although I changed $COMP because "cc" and "ld" don't exist here:
-COMP="cc"
+COMP="/usr/local/llvm12/bin/clang"
and
-COMP="c++"
+COMP="/usr/local/llvm12/bin/clang++"

1 output:
rm: app: No such file or directory
rm: app.o: No such file or directory
rm: probes.o: No such file or directory
sh: ld: not found
dtrace: failed to link script probes: failed to link probes.o: ld exited with
status 127
clang: error: no such file or directory: 'probes.o'
dtrace: failed to execute ./app: No such file or directory
MD5 (app.o) = 4aa6f8c53e1786b9af667f38c03631de
md5: probes.o: No such file or directory
md5: app: No such file or directory

2 output:
rm: app: No such file or directory
rm: app.o: No such file or directory
rm: probes.o: No such file or directory
rm: probes.h: No such file or directory
sh: ld: not found
dtrace: failed to link script probes: failed to link probes.o: ld exited with
status 127
clang++: error: no such file or directory: 'probes.o'
dtrace: failed to execute ./app: No such file or directory
MD5 (app.o) = e6c17b37918f8d953da79811b8131c0b
md5: probes.o: No such file or directory
md5: app: No such file or directory

Seems that dtrace calls "ld" regardless of what is set as LD in
/usr/share/mk/sys.mk. LD set via env(1) is also ignored. Maybe a base issue?

Greg V of DankBSD could not experience issues with Ruby because of symlinks:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257621#c1

In my setup I don't use symlinks.

-- 
You are receiving this mail because:
You are the assignee for the bug.