DTrace instrumentation build error
Cy Schubert
Cy.Schubert at cschubert.com
Sat May 25 05:01:17 UTC 2019
Cy Schubert writes:
> Hi,
>
> I'm helping rmacklem@ with instrumentation of mountd with USDT
> probes.It builds fine on amd64 however fails on i386
>
> ===> sbin/sconfig (all)
> ld: error: cannot open /usr/lib32/dtrace/drti.o: No such file or
> directory
> dtrace: failed to link script /home/cy/stable12/usr.sbin/mountd/mountd_d
> t.d: fai
> led to link mountd_dt.o: ld exited with status 1
> --- mountd_dt.o ---
> *** [mountd_dt.o] Error code 1
>
> make[6]: stopped in /home/cy/stable12/usr.sbin/mountd
> 1 error
>
> make[6]: stopped in /home/cy/stable12/usr.sbin/mountd
> --- all_subdir_usr.sbin/mountd ---
> *** [all_subdir_usr.sbin/mountd] Error code 2
>
> A couple of interesting things here:
I found a bit of time to investigate this tonight.
>
> 1. /usr/lib32/dtrace/drti.o doesn't exist in the universe12a and
> universe12b jails.
>
> 2. Why would buildworld (tinderbox in this case) link against an object
> outside of /usr/obj?
>
> I can look at this tonight to cobble up a patch for review to our build
> infrastructure to address #1 tonight.
Speaking of #2, we can add additional link paths to dtrace(1) using -L.
However it probably makes sense for dtrace(1) to support --sysroot as
other toolchain tools do.
--
Cheers,
Cy Schubert <Cy.Schubert at cschubert.com>
FreeBSD UNIX: <cy at FreeBSD.org> Web: http://www.FreeBSD.org
The need of the many outweighs the greed of the few.
More information about the freebsd-hackers
mailing list