From owner-freebsd-stable@FreeBSD.ORG Sun Feb 5 13:43:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4B5C1065670; Sun, 5 Feb 2012 13:43:23 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from nskntmtas01p.mx.bigpond.com (nskntmtas01p.mx.bigpond.com [61.9.168.137]) by mx1.freebsd.org (Postfix) with ESMTP id 2FFE98FC12; Sun, 5 Feb 2012 13:43:22 +0000 (UTC) Received: from nskntcmgw07p ([61.9.169.167]) by nskntmtas01p.mx.bigpond.com with ESMTP id <20120205134321.WQSQ25972.nskntmtas01p.mx.bigpond.com@nskntcmgw07p>; Sun, 5 Feb 2012 13:43:21 +0000 Received: from hermes.heuristicsystems.com.au ([58.172.112.204]) by nskntcmgw07p with BigPond Outbound id WDjL1i0054QfL3601DjL8b; Sun, 05 Feb 2012 13:43:21 +0000 X-Authority-Analysis: v=2.0 cv=A4LuztqG c=1 sm=1 a=3gUU17yAEl4T7pnfkUDLuw==:17 a=OJ00FmT28VQA:10 a=twTT4oUKOlYA:10 a=kj9zAlcOel0A:10 a=VlaoTGg91ZV2_1jiuZ8A:9 a=620n_tYgBPI_RJWyBSYA:7 a=CjuIK1q_8ugA:10 a=3gUU17yAEl4T7pnfkUDLuw==:117 Received: from white (white.hs [10.0.5.2]) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id q15Dfhg0071931 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Mon, 6 Feb 2012 00:41:44 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) From: "Dewayne Geraghty" To: "'Mikolaj Golub'" References: <861uq9a9m2.fsf@kopusha.home.net> Date: Mon, 6 Feb 2012 00:41:41 +1100 Message-ID: <948CB7705C4A40AF8694F78A4923CECC@white> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-reply-to: <861uq9a9m2.fsf@kopusha.home.net> Thread-Index: Aczj7C/Dqn7eJa0mQ1KxXCKn45VEmAAFrIvA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: andrey@zonov.org, freebsd-stable@freebsd.org Subject: RE: 9.0 Stable unable to buildworld, missing KERN_PROC_ENV in kvm_proc.c X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 13:43:23 -0000 Hi Mikolaj, As part of the process, I delete all logs, audit trails of the build, /usr/obj/* and the various DESTDIR's that have been set. The build process is from a single /usr/src but I do modify MAKEOBJDIRPREFIX, DESTDIR and various WITHOUT_ statements through variable switches in {make,src}.conf. And you're right, in the sources, KERN_PROC_ENV is defined. # ls -lrth /usr/src/sys/sys/sysctl.h -rw-r--r-- 1 root wheel 30k Jan 30 19:56 /usr/src/sys/sys/sysctl.h # grep KERN_PROC_ENV /usr/src/sys/sys/sysctl.h #define KERN_PROC_ENV 35 /* get environment */ The clue seems to be in here # ls -lrth /usr/src/sys/sys/ |tail -n 12 -rw-r--r-- 1 root wheel 4.2k Jan 16 19:10 mchain.h -rw-r--r-- 1 root wheel 8.2k Jan 16 19:10 iconv.h -rw-r--r-- 1 root wheel 6.2k Jan 23 22:24 umtx.h -rw-r--r-- 1 root wheel 31k Jan 23 22:24 pmc.h -rw-r--r-- 1 root wheel 11k Jan 23 22:24 param.h # The following aren't copied into /usr/include -rw-r--r-- 1 root wheel 30k Jan 30 06:24 mount.h -rw-r--r-- 1 root wheel 30k Jan 30 19:56 sysctl.h -rw-r--r-- 1 root wheel 5.6k Jan 30 19:56 resourcevar.h -rw-r--r-- 1 root wheel 39k Jan 30 19:56 proc.h -rw-r--r-- 1 root wheel 15k Feb 4 15:19 mutex.h -rw-r--r-- 1 root wheel 40k Feb 4 15:19 elf_common.h -rw-r--r-- 1 root wheel 11k Feb 4 15:19 sx.h # ls -lrth /usr/include/sys/ | tail -n 12 -r--r--r-- 1 root wheel 11k Jan 9 00:05 syscallsubr.h -r--r--r-- 1 root wheel 11k Jan 9 00:05 syscall.h -r--r--r-- 1 root wheel 5.0k Jan 9 00:05 resource.h -r--r--r-- 1 root wheel 10k Jan 9 00:05 file.h -r--r--r-- 1 root wheel 10k Jan 9 00:05 fcntl.h -r--r--r-- 1 root wheel 6.4k Jan 13 10:32 taskqueue.h -r--r--r-- 1 root wheel 28k Jan 14 17:54 vnode.h -r--r--r-- 1 root wheel 8.2k Jan 16 19:38 iconv.h -r--r--r-- 1 root wheel 4.2k Jan 16 19:38 mchain.h -r--r--r-- 1 root wheel 6.2k Jan 23 23:09 umtx.h -r--r--r-- 1 root wheel 31k Jan 23 23:09 pmc.h -r--r--r-- 1 root wheel 11k Jan 23 23:09 param.h # I'm looking into why this is the last file copied. I'm reviewing my build logs to ascertain why files after param.h aren't being copied from /usr/src/sys into /usr/include Its after midnight so I'll continue investigating tomorrow, clearly its going to take some time. The buildworld succeeding only for amd64/K8-sse is the really confusing part. So far, I note that log files each contain: ... if [ -L /usr/obj/prod/900/P/PRESCOTT/usr/src/tmp/usr/include/sys ]; then rm -f /usr/obj/prod/900/P/PRESCOTT/usr/src/tmp/usr/include/sys; fi ... cd /usr/src/include/../sys/sys; for h in *.h; do ln -fs ../../../sys/sys/$h /usr/obj/prod/900/P/PRESCOTT/usr/src/tmp/usr/include/sys; done ... Which seems normal. And yes, grep KERN_PROC_ENV /usr/obj/prod/900/P/PRESCOTT/usr/src/tmp/usr/include/sys/sysctl.h is defined Kind regards, Dewayne.