<div dir="ltr"><div>Hi there,</div><div><br></div><div>I'm trying to build RTEMS to see about starting development work, I took the advice to build the tools as per the user manual, and everything goes okay until this page:</div><div><br></div><div>    <a href="https://docs.rtems.org/branches/master/user/start/tools.html">https://docs.rtems.org/branches/master/user/start/tools.html</a></div><div><br></div><div>I've followed the instructions but when I try and actually build the tools (i.e. ../source-builder/sb-set-builder --prefix=${RTEMS_PREFIX?} 5/rtems-sparc) I get a linker error with lots of undefined references to tputs, e.g.:</div><div><br></div><div>~~~</div><div>gcc -O2 -pipe -I/home/john/src/<a href="http://git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/include">git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/include</a> -DHAVE_CONFIG_H       -DDEFAULT_INLINE=0      -DFAST_UART -I../../../gdb-8.2.1/sim/sis/../.. `echo -Dsparc-rtems5 | sed s/-rtems.//`   -I. -I../../../gdb-8.2.1/sim/sis -I../common -I../../../gdb-8.2.1/sim/sis/../common -I../../include -I../../../gdb-8.2.1/sim/sis/../../include -I../../bfd -I../../../gdb-8.2.1/sim/sis/../../bfd -I../../opcodes -I../../../gdb-8.2.1/sim/sis/../../opcodes  -g -O2 -static-libstdc++ -static-libgcc -L/home/john/src/<a href="http://git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/lib">git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/lib</a> -o run \<br>  run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a  ../../libiberty/libiberty.a -ldl -lnsl  -L../../zlib -lz ../../readline/libreadline.a  -lm <br>/usr/bin/ld: ../../readline/libreadline.a(display.o): in function `_rl_move_cursor_relative':<br>/home/john/src/<a href="http://git.rtems.org/rsb/rtems/build/sparc-rtems5-gdb-8.2.1-x86_64-linux-gnu-1/build/readline/../../gdb-8.2.1/readline/display.c:1985">git.rtems.org/rsb/rtems/build/sparc-rtems5-gdb-8.2.1-x86_64-linux-gnu-1/build/readline/../../gdb-8.2.1/readline/display.c:1985</a>: undefined reference to `tputs'</div><div>~~~</div><div><br></div><div>I'm not sure how to go about solving this in the context of the RTEMS build system. This thread (<a href="https://github.com/monero-project/monero/issues/2919">https://github.com/monero-project/monero/issues/2919</a>) seems to suggest I just need to link in termcap wherever readline is, though I can't find where that's done.</div><div><br></div><div>I'm coming back to this sort of development after a long break, so may have missed something obvious! I'm using a fresh Ubuntu 19.04 system, nothing installed except emacs and what the RTEMS user guide says.</div><div><br></div><div>Thanks for any help,</div><div><br></div><div>John<br></div></div>