Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2018 16:56:37 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>
Cc:        <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: Module compiles looking in /usr/src when alternate src tree is in use
Message-ID:  <3030.1523404597@kaos.jnpr.net>
In-Reply-To: <201804081900.w38J0q23014767@pdx.rh.CN85.dnsmgr.net>
References:  <201804081900.w38J0q23014767@pdx.rh.CN85.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Rodney W. Grimes <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> wrote:

> I am having a compile time issue for a patched that compiled fine on my
> r329294 system, but now failes to compile with what looks like a wrong
> header being included.

You may find it helpful to do something like:

make -dv -C sys/modules/vmm -V CFLAGS > /tmp/dvo 2>&1
egrep ':.PARSE|/usr/src/sys' /tmp/dvo | grep -B1 usr/src | more

The arg to -V doesn't matter btw.
You could narrow that down if you know what var -I/usr/src/sys is in
(probably CFLAGS but you never know)
the above should help find the makefile that is introducing the bogus -I


> =

> =

> I have wrapped the long line so I can point to a difference between
> r329294 and r332262 make log of this file.
> =

> r329294 make output:
> =

> cc  -O2 -pipe -DVMM_KEEP_STATS -DSMP  -fno-strict-aliasing -Werror -D_KE=
RNEL \
> -DKLD_MODULE -nostdinc  -I/usr/src-topo/sys/amd64/vmm \
> -I/usr/src-topo/sys/amd64/vmm/io -I/usr/src-topo/sys/amd64/vmm/intel \
> -I/usr/src-topo/sys/amd64/vmm/amd -I. -I/usr/src-topo/sys -fno-common  \
>                                        ^^^^^^^^^^^^^^^^^ this is what I =
would expect



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