<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2019, 7:27 AM John Graham <<a href="mailto:johngavingraham@googlemail.com">johngavingraham@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That symbol comes from the ncurses package. So you will need to build it also. </div><div dir="auto"><br></div><div dir="auto">I think there are RSB recipes for both these. Or at least I remember working on them. Hopefully I finished successfully.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>