Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 00:41:41 +1100
From:      "Dewayne Geraghty" <dewayne.geraghty@heuristicsystems.com.au>
To:        "'Mikolaj Golub'" <trociny@freebsd.org>
Cc:        andrey@zonov.org, freebsd-stable@freebsd.org
Subject:   RE: 9.0 Stable unable to buildworld, missing KERN_PROC_ENV in kvm_proc.c
Message-ID:  <948CB7705C4A40AF8694F78A4923CECC@white>
In-Reply-To: <861uq9a9m2.fsf@kopusha.home.net>
References:  <C573F9714ACC4138A4B54B7EA87898E2@white> <861uq9a9m2.fsf@kopusha.home.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?948CB7705C4A40AF8694F78A4923CECC>