From owner-freebsd-current@freebsd.org Mon Apr 9 00:41:00 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06B76F8FF94 for ; Mon, 9 Apr 2018 00:41:00 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7DCEB7B999 for ; Mon, 9 Apr 2018 00:40:58 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w390et1v016182; Sun, 8 Apr 2018 17:40:55 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w390et36016181; Sun, 8 Apr 2018 17:40:55 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201804090040.w390et36016181@pdx.rh.CN85.dnsmgr.net> Subject: Re: Module compiles looking in /usr/src when alternate src tree is in use In-Reply-To: <20180408235308.GA93747@www.zefox.net> To: bob prohaska Date: Sun, 8 Apr 2018 17:40:55 -0700 (PDT) CC: freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2018 00:41:00 -0000 > On Sun, Apr 08, 2018 at 12:00:52PM -0700, Rodney W. Grimes 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. > > > Might this be a cousin to the problem reported at > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227274 ? > > In that kernel compile (on an RPi3) the compiler complains > > In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: > In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31: > /usr/lib/clang/6.0.0/include/stdint.h:228:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs '__int_fast16_t' (aka 'int')) > typedef __int_least16_t int_fast16_t; > > The reference to /usr/lib/clang/... seems a bit strange; isn't a major > purpose of the kernel build procedure to minimize reliance on the > host system's (already-stale) software? Are you building in /usr/src, or are your sources located some place else? Really need the log that includes the cc command line, as that has the tell tell -I/usr/src/sys in it. That component is totally bogus! At no time should a src tree rooted at /usr/src-topo be trying to use files from /usr/src/. > If the two problems are related, should the subject line on the bug > report be changed? It could be, but more info would be needed. In my case I was able to proove it out as my compile from /usr/src-topo worked just fine after I copied my 3 modified header files to /usr/src. -- Rod Grimes rgrimes@freebsd.org