Re: dumb xnu-792 build question
Re: dumb xnu-792 build question
- Subject: Re: dumb xnu-792 build question
- From: "Herb Petschauer" <email@hidden>
- Date: Sun, 7 May 2006 14:50:33 -0700
This is going to be vague because it's been a few months since I've
built a kernel. Somewhere in the config files of the build system
there is a file that indicates which files are to be built with the
"treat warnings as errors" directive. I can't recall what that
directive is exactly (no dev tools on this laptop) but simple grep on
"error" may be enlightening.
Perhaps in your case the default config is "treat warnings as errors"?
Check to see what options your added files are being compiled with.
Look for the word "error" in the compile directive itself. Then you
may have to do some reverse engineering to figure out the build
system...
Anyway, it's Sunday so I hope some of that makes sense :-)
-H.
On 07/05/06, email@hidden
<email@hidden> wrote:
Ok, I feel dumb asking this, but I can't seem to find it, so...
I've added a bunch of dirs to xnu-792 and the make finds them and builds
them ok. (added to bsd/conf/files) However, as soon as I get a warning
on any of them, the build stops. I can see that other parts of the system
build with warnings and keep going.
So, what's the trick to get the build environment to not stop on warnings?
(I'm building on Darwin8.0.1 for i386, if that makes any difference.)
I have succeeded in getting rid of the warnings, but had to add crud like
the following to avoid the warnings, which isn't exactly pretty:-)
/* XXX really dumb, but the compiler complains since the last arg
* of vnode_waitforwrites() isn't "const char *".
*/
bcopy("nfsflush", stupid, 9);
while ((error = vnode_waitforwrites(vp, 0, slpflag, slptimeo, stupid))) {
Thanks in advance for any help, rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden