From nobody Sat Oct 9 13:40:52 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 E694312D4DF3 for ; Sat, 9 Oct 2021 13:41:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRR69620Bz4plY for ; Sat, 9 Oct 2021 13:41:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ua1-x934.google.com with SMTP id f3so5187216uap.6 for ; Sat, 09 Oct 2021 06:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l4zg5xJb4FBTGZ6GsnGjP1oe3PEG2uST0E9hWUt1+Do=; b=pKNrCFJ+rPKikjz7+dIcn1U8DUjTjJ/jxAeIZgRBxB0vx9DZaQMd1FuA+e+JFT5lJi FybD/2rp/ijLs7xWoztXJB3n5FnWtxi7AqUW6ZCeWo3N8AAoL5knoE76kNSUpYmzUt28 Mju3T2sQ0eitiUInC9ECF8ixQzvnJNIoFF3mdxQA1fO5+0KH/JljNwI9et67RFVCxn9g cbYKhxO2+bYKEzaBfoNgcIcXi9RrFhmi0BEhCuuQuGUlK98p2zSbgvvoixA+QSokBYiK LxYTThzv8KLuZuKcRB+UkXA1zstrwZo6secOIuS1wfvhzKs0zOSB+zD5ELM9ZBZHA+0n 4HMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l4zg5xJb4FBTGZ6GsnGjP1oe3PEG2uST0E9hWUt1+Do=; b=lEQgiqo/xO5/ALoyRpUWTvN40W/Z94wNm1YRcEmEMyzEpthP1+gWvHdzBDDjewort8 lfNKTCa3BkQnEXr2FJPJYM4/vVLEZ+Xqjvhu7EEyCTzvmq8UqyiKxkCK8h1/vVWR7KHb WHBsqPojqcK0MBwPqTenR9tZtglA9BRmBqxZnDrAWhaDFVBVVM87DjBCh2J9g1Tq7W1G WxmY0/q13q2QVLY2OBYGJ9UiFjhyo7jGekgVinnu/ZPhTFt5h1bCYAg4TZ9fxHK30Gph OoXyElppRQnMgeFpWar7dF6cKF1Gn0bjxeCVFX6d0jyx9xEDqqT/3qxI4Nbh+/1xAClA NfUA== X-Gm-Message-State: AOAM532vyYaccAFB54yw136upJnLgu+BO7/0JcLhQvEWAikSR8pcQ+fV s126Nw3K9eQtNAV5woOJYPXfeJjqhUWpwlhZyLIVyg== X-Google-Smtp-Source: ABdhPJyLZ8fv6zxvJoGbhR7Jw8E2GyE4qD5bRRT3r1oykkQMjIFqObK08Xjp5K4a+FXe5ukAgGtXPbaX7RhyFmGWOio= X-Received: by 2002:ab0:6c56:: with SMTP id q22mr8649659uas.39.1633786865085; Sat, 09 Oct 2021 06:41:05 -0700 (PDT) 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 References: <20211009094624.3f3cacc8@jelly.fritz.box> <2FCA108B-29E1-48EA-A8C7-BC621CC6F963@FreeBSD.org> In-Reply-To: <2FCA108B-29E1-48EA-A8C7-BC621CC6F963@FreeBSD.org> From: Warner Losh Date: Sat, 9 Oct 2021 07:40:52 -0600 Message-ID: Subject: Re: clang/llvm-tblgen --- ld: error: undefined symbol: setupterm To: Dimitry Andric Cc: FreeBSD User , FreeBSD CURRENT , Baptiste Daroussin Content-Type: multipart/alternative; boundary="000000000000bb80d605cdeba55b" X-Rspamd-Queue-Id: 4HRR69620Bz4plY X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000bb80d605cdeba55b Content-Type: text/plain; charset="UTF-8" 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: > > Okay, this is because recently on -CURRENT, libtinfow got split off from > libncursesw: https://cgit.freebsd.org/src/commit/?id=396851c20aebd > > This affects such cross-builds obviously, and manually adding -ltinfow > to the link command line makes it link correctly. > > 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? > > Baptiste, any ideas? :) > Add setupterm() to libegacy as a nop. Warner -Dimitry > > --000000000000bb80d605cdeba55b--