From nobody Sat Oct 09 17:09:13 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8503B12D087B for ; Sat, 9 Oct 2021 17:09:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRWkT3693z3nfh; Sat, 9 Oct 2021 17:09:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 879B821644; Sat, 9 Oct 2021 17:09:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:e42e:3b09:eca2:fb60]) (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 BCDCF4FFDD; Sat, 9 Oct 2021 19:09:18 +0200 (CEST) From: Dimitry Andric Message-Id: <94E84785-8F8C-4E90-A437-929565F5C968@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_3B2C8B46-4219-4A27-B4C7-E8B990BF4F49"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: clang/llvm-tblgen --- ld: error: undefined symbol: setupterm Date: Sat, 9 Oct 2021 19:09:13 +0200 In-Reply-To: Cc: FreeBSD User , FreeBSD CURRENT , Baptiste Daroussin To: Warner Losh References: <20211009094624.3f3cacc8@jelly.fritz.box> <2FCA108B-29E1-48EA-A8C7-BC621CC6F963@FreeBSD.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_3B2C8B46-4219-4A27-B4C7-E8B990BF4F49 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 9 Oct 2021, at 15:40, Warner Losh wrote: >=20 > On Sat, Oct 9, 2021, 5:59 AM Dimitry Andric wrote: > On 9 Oct 2021, at 13:37, Dimitry Andric wrote: > > > > On 9 Oct 2021, at 09:46, FreeBSD User = wrote: > >> > >> On recent CURRENT (FreeBSD 14.0-CURRENT #2 = main-n249971-0525ece3554e: > >> Fri Oct 8 15:17:34 CEST 2021 amd64) building of an 13-STABLE based > >> appliance failed very early in the build process of the 13-STABLE > >> sources as shown below. 13-STABLE is most recent, since the sources = are > >> fetched every time the build process is triggered. > > ... > >> = /pool/home/ohartmann/Projects/router/router/apu2c4/src/tools/install.sh > >> -s -o root -g wheel -m 555 compile_et > >> /pool/home/ohartmann/Projects/router/router/apu2 > >> = c4/world/amd64/ALERICH_13-STABLE_amd64/pool/home/ohartmann/Projects/router= /router/apu2c4/src/amd64.amd64/tmp/legacy/usr/bin/compile_et > >> --- _bootstrap-tools-usr.bin/clang/llvm-tblgen --- ld: error: = undefined > >> symbol: setupterm > >>>>> referenced by Process.cpp > >>>>> = Process.o:(llvm::sys::Process::FileDescriptorHasColors(int)) > > > > It is complaining about ncurses functions; it seems that even though = the link step gets -lncursesw added, it still is not able to find the = symbol: >=20 > Okay, this is because recently on -CURRENT, libtinfow got split off = from > libncursesw: https://cgit.freebsd.org/src/commit/?id=3D396851c20aebd >=20 > This affects such cross-builds obviously, and manually adding -ltinfow > to the link command line makes it link correctly. >=20 > However, the 396851c20aebd commit is probably not suitable for MFC'ing > to stable/13. Maybe we need to put some kind of kludge in > share/mk/src.libnames.mk for this, or in the top-level Makefile.inc1? >=20 > Baptiste, any ideas? :) >=20 > Add setupterm() to libegacy as a nop. That's not enough I think, it requires more ncurses functions than just setupterm. And it actually calls them and checks the return values too, IIRC. :) -Dimitry --Apple-Mail=_3B2C8B46-4219-4A27-B4C7-E8B990BF4F49 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYWHMuQAKCRCwXqMKLiCW o4loAKD1KObbUMYTf6WSCVX+8jJsYg/ccQCfUoTYpmf662SXWrfQXmSSqZaejrA= =gTUS -----END PGP SIGNATURE----- --Apple-Mail=_3B2C8B46-4219-4A27-B4C7-E8B990BF4F49--