Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-06 Thread J David
On Thu, Jul 4, 2013 at 11:27 PM, Konstantin Belousov kostik...@gmail.comwrote: Try to apply r252528 and see if it helps. OK, I svn up'd to get the clang changes and applied this patch as well. (Built tree off of local /usr/obj to avoid hitting the problem while building with the patch.) So

Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-04 Thread Dimitry Andric
On Jul 4, 2013, at 04:43, J David j.david.li...@gmail.com wrote: We are seeing strange problems building the kernel on 9-STABLE. The problem is intermittent and will go away if we build enough times in a row without making any changes. The problem seems to be that the usbdevs.h file

Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-04 Thread J David
On Thu, Jul 4, 2013 at 9:08 AM, Dimitry Andric d...@freebsd.org wrote: So the actual file does *not* have any NUL characters in it? What happens if you run e.g. sha1(1) over it a million times? Based on this suggestion, I wrote a script to sha256 usbdevs.h every 0.25 seconds and did another

Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-04 Thread Dimitry Andric
On Jul 4, 2013, at 18:02, J David j.david.li...@gmail.com wrote: ... Yes, I am pretty sure we have seen this with gcc as well because one of the first machines that started doing this doesn't have the CLANG options in make.conf. I will try to reproduce that to be absolutely sure, but that

Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-04 Thread J David
On Thu, Jul 4, 2013 at 12:15 PM, Dimitry Andric d...@freebsd.org wrote: One other thing: which type of file system are you using for /usr/obj, or wherever you pointed $MAKEOBJDIRPREFIX? Also ZFS-over-NFS. The goal is to build on one machine and install on many. I was able to reproduce this

Re: Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-04 Thread Konstantin Belousov
On Thu, Jul 04, 2013 at 07:38:24PM -0400, J David wrote: On Thu, Jul 4, 2013 at 12:15 PM, Dimitry Andric d...@freebsd.org wrote: One other thing: which type of file system are you using for /usr/obj, or wherever you pointed $MAKEOBJDIRPREFIX? Also ZFS-over-NFS. The goal is to build on

Phantom nulls in usbdevs.h during 9-STABLE kernel build

2013-07-03 Thread J David
We are seeing strange problems building the kernel on 9-STABLE. The problem is intermittent and will go away if we build enough times in a row without making any changes. The problem seems to be that the usbdevs.h file (which appears to be automatically generated) gets random NULL bytes in it.