Re: clang/llvm-tblgen --- ld: error: undefined symbol: setupterm

From: Daniel Nebdal <dnebdal_at_gmail.com>
Date: Sun, 10 Oct 2021 20:41:15 UTC
On Sun, 10 Oct 2021 at 22:17, Baptiste Daroussin <bapt@freebsd.org> wrote:
>
> >
> > I don't know if this is the right place to jump in, but I suspect this
> > is a related issue?
> > I'm trying to do the opposite - building 14 on a 13-STABLE machine. It
> > fails when trying to build ncurses:
> >
> > root@p14s-bsd:/usr/src # uname -v
> > FreeBSD 13.0-STABLE #0 stable/13-n247584-fdbbd118faa: Sun Oct 10
> > 03:25:38 CEST 2021
> > root@p14s-bsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
> > root@p14s-bsd:/usr/src # git pull
> > Already up to date.
> > root@p14s-bsd:/usr/src # git status
> > On branch main
> > Your branch is up to date with 'origin/main'.
> >
> > nothing to commit, working tree clean
> > root@p14s-bsd:/usr/src # make buildworld > build.log
> > (...)
> >
> > The full log is at http://eurostar.nebdal.no/build.log
> > It's all variations over this:
> >
> > ===> lib/ncurses/ncurses (obj,all,install)
> > Building /usr/obj/usr/src/amd64.amd64/lib/ncurses/ncurses/lib_color.o
> > /usr/src/contrib/ncurses/ncurses/base/lib_color.c:192:5: error:
> > implicit declaration of function '_nc_tiparm' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration]
> >                                 TIPARM_1(set_a_background, bg),
> >                                 ^
> > /usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from
> > macro 'TIPARM_1'
> > #define TIPARM_1(s,a) _nc_tiparm(1,s,a)
> >                       ^
> > /usr/src/contrib/ncurses/ncurses/base/lib_color.c:192:5: error:
> > incompatible integer to pointer conversion passing 'int' to parameter
> > of type 'const char *' [-Werror,-Wint-conversion]
> >                                 TIPARM_1(set_a_background, bg),
> >                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /usr/src/contrib/ncurses/include/nc_tparm.h:81:23: note: expanded from
> > macro 'TIPARM_1'
> > #define TIPARM_1(s,a) _nc_tiparm(1,s,a)
> >                       ^~~~~~~~~~~~~~~~~
> >
> > -DanielN
>
> It is an entirely different storry that deserves its own investigation!
>
> I will try to find time in the next couple of days.
>
> In the meantile could you provide your make.conf, src.conf and src-env.conf?
>
> Best regards
> Bapt

Sure - they're plain enough:
 # cat /etc/make.conf
cat: /etc/make.conf: No such file or directory
 # cat /etc/src.conf
cat: /etc/src.conf: No such file or directory
 # cat /etc/src-env.conf
WITH_META_MODE=YES

I did try with meta mode disabled as well, with the same result.

-DanielN