Buildworld Fails RELENG_7
Clifton Royston
cliftonr at lava.net
Tue May 20 00:01:59 UTC 2008
On Mon, May 19, 2008 at 03:14:08PM -0500, Dave Uhring wrote:
> On Mon, May 19, 2008 at 02:54:31PM -0400, Lowell Gilbert wrote:
> > Dave Uhring <duhring at charter.net> writes:
> > >
> > > If a -I/some/directory is used as a CFLAG then the *include directive must read
> > >
> > > #include <driver.h>, *not* #include "driver.h". The latter demands that the
> > > header file be in the same directory as the source file.
> >
> > Not that it necessarily affects what you're going through, but that
> > last statement is incorrect. The double quotes are (according to the
> > C standard) implementation defined, and gcc (like many other
> > compilers) will prefer the local directory for the double quotes, but
> > will search the entire search path if it doesn't find the file there.
>
> The problem is that gcc is *not* finding the file in the directory
> referenced by the -I cflag. If I copy the header files to the directory
> where the error occurs the header file is found and used to compile the
> source file.
This starts to narrow down the problem you're having a bit, I think.
Given that this is different from the expected behavior and the
behavior others are seeing, this sounds to me like either 1) the wrong
compiler or version of the compiler is being found and used in place of
the desired gcc instance, or 2) something in your shell or environment
is somehow getting into the buildworld environment and causing make or
the inner shell to misparse the commandline to gcc.
-- Clifton
--
Clifton Royston -- cliftonr at iandicomputing.com / cliftonr at lava.net
President - I and I Computing * http://www.iandicomputing.com/
Custom programming, network design, systems and network consulting services
More information about the freebsd-stable
mailing list