From nobody Mon Sep 6 20:11:31 2021 X-Original-To: ruby@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B703E179C2D5 for ; Mon, 6 Sep 2021 20:11:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3KKv4Y43z4Rxf for ; Mon, 6 Sep 2021 20:11:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7C4E024FC1 for ; Mon, 6 Sep 2021 20:11:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 186KBVj5095060 for ; Mon, 6 Sep 2021 20:11:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 186KBVQB095059 for ruby@FreeBSD.org; Mon, 6 Sep 2021 20:11:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 257525] lang/ruby26: add DTRACE option Date: Mon, 06 Sep 2021 20:11:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: evgeniy@khramtsov.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback- maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257525 --- Comment #15 from Evgeniy Khramtsov --- (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.=