Error when building 14.0-STABLE: incompatible integer to pointer conversion

I'm trying to build the stable/14 branch, but I keep getting the below error:

Code:
# kldload filemon
# make j14 buildworld
...
building shared library librt.so.1
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/librt/librt.so.1.debug
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/librt/librt.so.1
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/liblzma/delta_common.pico
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/librt/_libinstall
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/liblzma/delta_encoder.pico
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/ncurses/ncurses/lib_color.o
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/secure/lib/libcrypto/f_string.o
Building /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/ncurses/ncurses/lib_delch.o
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:192:5: warning: call to undeclared function '_nc_tiparm'; ISO C99 and later do not support implicit function declarations [-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 *' [-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)
                      ^~~~~~~~~~~~~~~~~
./term.h:850:77: note: passing argument to parameter here
extern NCURSES_EXPORT(int)     NCURSES_SP_NAME(tputs) (SCREEN*, const char *, int, NCURSES_SP_OUTC);
                                                                            ^
/usr/src/contrib/ncurses/ncurses/base/lib_color.c:197:5: warning: call to undeclared function '_nc_tiparm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                TIPARM_1(set_background, toggled_colors(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)
There are several more errors, warnings and notes similar to these.

I used to follow and build the stable/13 branch before, but I thought it was time to try 14 now.

I have /etc/src-env.conf with:
Code:
WITH_META_MODE=YES

... and /etc/src.conf:
Code:
KERNCONF=VALHALLA
WITHOUT_ASSERT_DEBUG="YES"
WITH_MALLOC_PRODUCTION="YES"
WITH_CCACHE_BUILD="YES"
WITHOUT_GSSAPI="YES"
WITHOUT_KERBEROS="YES"
WITHOUT_LLVM_ASSERTIONS="YES"

What could I be doing wrong?

Is there some kind of "make clean" command I need to run? I did try that once or twice already, but no luck so far ...
 
Right, so I did git checkout releng/14.0, git pull, make clean, and I also manually deleted the contents of the /usr/obj/ directory.

And now it works! :)
 
Back
Top