This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] to not include a currently-included file in sanitizedheaders


Robert P. J. Day wrote:
When you post patches, though, could you include the
error message that it fixes?


good point, and perhaps you can clarify something.  if you use just
the sanitized headers and not the full kernel source, obviously you're
not going to do any configuration and, consequently, if you look under
the include/ directory, you'll see all of:

  asm-alpha/
  asm-arm/
  asm-arm26/

and so on.  however, because of no configuration, you'll never have
the appropriate symlink, say, asm->asm-sh.

what that means is that you better never incorporate a header file
that contains anything of the form:

#include <asm/whatever.h>

since it's guaranteed to fail.  that's what happened with
include/asm-sh/ptrace.h -- it included <asm/ubc.h> and choked.  so
just commenting out that single include directive was the patch.

I think you must have missed the crucial line from crosstool.sh: cp -r include/asm-${ARCH} $HEADERDIR/asm Did you use the sanitized header support built into crosstool-0.32? I suspect not... - Dan

--
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]