Date: Mon, 06 Sep 2021 20:11:31 +0000 From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 257525] lang/ruby26: add DTRACE option Message-ID: <bug-257525-21402-k5qrbQ2LvV@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-257525-21402@https.bugs.freebsd.org/bugzilla/> References: <bug-257525-21402@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257525 --- Comment #15 from Evgeniy Khramtsov <evgeniy@khramtsov.org> --- (In reply to Steve Wills from comment #14) Adding "-x ldpath=3D/usr/local/llvm12/bin/ld" fixes examples: 1: dtrace: script 'script.d' matched 1 probe a=3D1, b=3D2 a=3D2, b=3D3 dtrace: pid 92114 has exited 1 2 1 2 3 1 MD5 (app.o) =3D 4aa6f8c53e1786b9af667f38c03631de MD5 (probes.o) =3D 9e27e17d7782614b07441578d49be643 MD5 (app) =3D 72cb8fb8f57b04d5c85405fc211c9e2a 2: 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 dtrace: script 'script.d' matched 1 probe a=3D1, b=3D2 a=3D2, b=3D3 dtrace: pid 47097 has exited 1 2 1 2 3 1 MD5 (app.o) =3D e6c17b37918f8d953da79811b8131c0b MD5 (probes.o) =3D 2ee59d958960e03ec4772462606a0c4f MD5 (app) =3D 258f7505f4884f955ecc809d419f71e8 But it seems that Ruby needs something more? [...] dtrace: failed to compile script probes.d: Preprocessor not found [...] I took a look at build log: [...] checking whether dtrace USDT is available... yes(-x ldpath=3Dld -xnolibs) [...] LD =3D ld [...] Then I passed LD: - CONFIGURE_ENV=3D debugflags=3D + CONFIGURE_ENV=3D debugflags=3D LD=3D${LD} And the build log changed: [...] - checking whether dtrace USDT is available... yes(-x ldpath=3Dld -xnolibs) + checking whether dtrace USDT is available... yes(-x ldpath=3D/usr/local/llvm12/bin/ld -xnolibs) - checking whether dtrace needs post processing... no + checking whether dtrace needs post processing... rebuild [...] BASERUBY =3D echo executable host ruby is required. use --with-bas= eruby option.; false CC =3D /usr/local/llvm12/bin/clang - LD =3D ld + LD =3D /usr/local/llvm12/bin/ld LDSHARED =3D /usr/local/llvm12/bin/clang -shared CFLAGS =3D -O2 -pipe -O3 -mbranches-within-32B-boundaries=20 -fstack-protector-all -fPIE -fPIC -isystem /usr/local/include -fno-strict-aliasing -fPIC XCFLAGS =3D -D_FORTIFY_SOURCE=3D2 -fstack-protector-strong -fno-strict-overflow -fvisibility=3Dhidden -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN CPPFLAGS =3D -I/usr/local/include -isystem /usr/local/include -I. -I.ext/include/amd64-freebsd14 -I./include -I. -I./enc/unicode/12.1.0 DLDFLAGS =3D -fstack-protector-all -pie -Wl,-z,noexecstack -Wl,-z,n= ow -Wl,-z,relro -Wl,--compress-debug-sections=3Dzlib -Wl,-E -Wl,-soname,libruby26.so.26 -fstack-protector-strong SOLIBS =3D -lelf -lunwind -lexecinfo -lprocstat -lz -lthr -lrt -lrt= -ldl -lcrypt -lm -lpthread -L/usr/local/lib -L/usr/local/lib LANG =3D C LC_ALL =3D C LC_CTYPE =3D clang version 12.0.1 Target: x86_64-portbld-freebsd14.0 Thread model: posix InstalledDir: /usr/local/llvm12/bin translating probes probes.d dtrace: failed to compile script probes.d: Preprocessor not found *** Error code 1 ^ But still preprocessor (is it the $CPP one?) could not be found. Passing $CPP to CONFIGURE_ENV did not help. Did you try in a freshly created poudriere jail built using the patch and src.conf? The jail should not have "cc", etc by default. "delete-old" on existing jail does not delete "cc" and other binaries. Thanks for trying to fix this. My priority in fixing DTRACE with ports LLVM is low, but I will try any patches. --=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-257525-21402-k5qrbQ2LvV>