From owner-freebsd-dtrace@FreeBSD.ORG Mon Dec 8 15:39:47 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE17F15D for ; Mon, 8 Dec 2014 15:39:47 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C51E1CF for ; Mon, 8 Dec 2014 15:39:47 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id ex7so5187284wid.0 for ; Mon, 08 Dec 2014 07:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=6vnE3SHwDewsHBn2K7B4c8w4FcRdLBhDfnczUZll8/0=; b=ixjdjWhdVG6+Kq5Rv4Ns3pTSpD3V0RghuitW9OBGHxdEdOieDmgeQm26z3LrQaLURe Yfeepa8Jn/z6N/uZjazZnsTUELxW1JdYRBKWDyAQggeyEPEIg5DLgAHOQKqx3N4us938 u1ZHuBWvaNFCkMoe0OUqcjnL/RV9Qie+ZuqSmNG9IC2EcPQ5X1GNxynUZMnZ1ng/4PDb k9NJy5t/QWptIXNEXOAkYqenHrO+zHY+xQ6bJgHUuKPydB6lYi77nDhx5jR2kkDYsxIR dk686IzZo0WvvZ04JIFyF/RbhPueejOsm/SnV3yIradHxdzkE4BcovHFTrFd3THstJne jnRQ== X-Received: by 10.180.82.226 with SMTP id l2mr24586662wiy.61.1418053185789; Mon, 08 Dec 2014 07:39:45 -0800 (PST) Received: from ?IPv6:2001:470:1f0b:408:c16f:5efc:fabd:821a? ([2001:470:1f0b:408:c16f:5efc:fabd:821a]) by mx.google.com with ESMTPSA id bo18sm10225021wib.11.2014.12.08.07.39.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Dec 2014 07:39:45 -0800 (PST) Sender: ultramage Message-ID: <5485C63E.3090002@gmail.com> Date: Mon, 08 Dec 2014 16:39:42 +0100 From: =?UTF-8?B?VmlrdG9yIMWgdHVqYmVy?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-dtrace@freebsd.org Subject: missing system struct definitions during compilation files in /usr/lib/dtrace/ in local releng/10.1 build Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2014 15:39:48 -0000 I was running releng/10.0 from 10-jul-2014 and dtrace was working fine. I built/installed releng/10.1 from 07-dec-2014 and now when running "dtrace -s anyfile", even an empty file, it prints the following errors: dtrace: failed to compile script test.d: "/usr/lib/dtrace/tcp.d", line 166: operator -> cannot be applied to a forward declaration: no struct tcpcb definition is available (same with io.d struct devstat and struct bio) I tried a clean install of release/10.1 from the 12-nov-2014 iso file, and it works fine there. There doesn't seem to have been any changes to the branch since the release. I went through all the directories in / and /usr, making sure there are no stale config/header/lib files, and that the contents of all existing config/header files is identical to the clean version (plusminus my custom changes). I also temporarily moved the entire /usr/local tree to make sure its contents don't interfere; did not help. Finally I tried just shoving the missing system C header information into the D code, which might have worked, but after the 5th time I got tired of it. I would like to fix this problem without doing a full system reinstall. However at this point I'm stuck. I don't know how to make the D compiler built into dtrace to print diagnostic information about the build process. I'm not even sure what exactly the compiler is trying to do - does it parse the system C headers (possibly indicating an INCLUDE path problem)? But I think I checked all the files... Maybe something went wrong during buildworld and the executable itself is broken?