Date: Thu, 07 Jun 2012 20:43:39 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Ryan Stone <rysto32@gmail.com> Cc: FreeBSD-Current <freebsd-current@FreeBSD.org> Subject: Re: dtrace: identifier redefined: cpu Message-ID: <4FD0E84B.4030000@FreeBSD.org> In-Reply-To: <CAFMmRNxinSy86LEEwjkF7EzG-179GTij261Hw6QfwhimzCPDBw@mail.gmail.com> References: <4FD06011.5000805@FreeBSD.org> <CAFMmRNxinSy86LEEwjkF7EzG-179GTij261Hw6QfwhimzCPDBw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
on 07/06/2012 18:18 Ryan Stone said the following: > On Thu, Jun 7, 2012 at 4:02 AM, Andriy Gapon <avg@freebsd.org> wrote: >> >> I am getting the following error while trying to execute any DTrace script on a >> freshly updated CURRENT system (both kernel and world). >> Example: >> >> dtrace: failed to compile script sysctl_kern_proc.d: "/usr/lib/dtrace/sched.d", >> line 70: identifier redefined: cpu >> current: inline definition >> previous: scalar >> -- >> Andriy Gapon > > Hm, I cannot reproduce this on the following system, freshly built this morning: > FreeBSD vm-head 10.0-CURRENT FreeBSD 10.0-CURRENT #3 r236713: Thu Jun > 7 10:30:45 EDT 2012 > rstone@rstone-laptop:/home/rstone/freebsd/obj/usr/home/rstone/freebsd/head_2/sys/GENERIC > amd64 > > I don't even have a /usr/lib/dtrace/sched.d. Do you have some local > changes that is installing that? Bingo! The file is not there on any of recently installed machines. This machine has been going through upgrades for several years. I must have manually placed that file there while hacking on something with DTrace (although now I do not have any recollection of when and why). So, rm to the rescue :-) Thank you. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD0E84B.4030000>