From owner-freebsd-current@freebsd.org Sat Sep 12 16:28:15 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA73A3DC6EB for ; Sat, 12 Sep 2020 16:28:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpdMz4Vmyz4BZ8; Sat, 12 Sep 2020 16:28:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 632DA10DC3; Sat, 12 Sep 2020 16:28:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [192.168.178.61] (unknown [194.76.129.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AF8076E9AB; Sat, 12 Sep 2020 18:28:13 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_88441850-20A9-4B67-810B-FCAB5251A2DF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: compiling with ports llvm11 breaks on mman.h: struct shm_larg epage_conf Date: Sat, 12 Sep 2020 18:28:03 +0200 In-Reply-To: Cc: FreeBSD Current To: Ronald Klop References: X-Mailer: Apple Mail (2.3445.104.15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Sat, 12 Sep 2020 16:28:15 -0000 --Apple-Mail=_88441850-20A9-4B67-810B-FCAB5251A2DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Sep 2020, at 17:43, Ronald Klop wrote: >=20 > Because I'm tired of hours of compilation of llvm/clang I'm testing = compiling FreeBSD with llvm11 from a pkg. >=20 > Setup a jail with 13-CURRENT. Compilation of the installed version = went fine. > Today I svn up'd and compiled and compilation broke. >=20 > /lib/clang/11.0.0/include -fstack-protector-strong -Wsystem-headers = -Werror -Wall -[29/1822] > t-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality = -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-address-of-packed-member - > Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter = -Qunused-arguments -I/usr/src/li > b/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86 = -I/usr/src/lib/msun/src -c /usr/ > src/lib/libc/sys/shm_open.c -o shm_open.o > /usr/src/lib/libc/sys/shm_open.c:64:28: error: variable has incomplete = type 'struct shm_larg > epage_conf' > struct shm_largepage_conf slc; > ^ > /usr/src/lib/libc/sys/shm_open.c:64:9: note: forward declaration of = 'struct shm_largepage_co > nf' > struct shm_largepage_conf slc; >=20 >=20 > I can see the difference between /usr/include/sys/mman.h and = /usr/src/sys/sys/mman.h is exactly about these symbols. > Why is the base compiler using the latter and ports llvm11 the former? >=20 > Configuration of my src.conf and make.conf is described in = https://blog.klop.ws/2020/08/waiting-for-clang-forever-and-ever.html . >=20 >=20 > Do I miss some directive about system header files? During what stage is this, and is it an incremental (e.g. -DNO_CLEAN) build? With this kind of failure, it is usually required to be able to inspect the full buildworld log, and the exact command line you used to invoke make. If you can, upload that somewhere so it can be viewed. That said, it looks like something is messing up your include order, as during a very early stage in buildword, the sys/sys/ headers are symlinked to objdir/tmp/legacy/usr/include/sys/. This should include the mman.h header. -Dimitry --Apple-Mail=_88441850-20A9-4B67-810B-FCAB5251A2DF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCX1z3EwAKCRCwXqMKLiCW o4kBAKDTIf4sZRZ059Y6rWoSF3cGXTrs+ACg/0CKKoPw747cx2xHN3h0TrT+0KI= =po9J -----END PGP SIGNATURE----- --Apple-Mail=_88441850-20A9-4B67-810B-FCAB5251A2DF--