Problem building RTEMS - readline/undefined reference to tputs

2019-06-05 Thread John Graham
Hi there,

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:

https://docs.rtems.org/branches/master/user/start/tools.html

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.:

~~~
gcc -O2 -pipe -I/home/john/src/
git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/include
-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/
git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/lib
-o run \
  run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a
 ../../libiberty/libiberty.a -ldl -lnsl  -L../../zlib -lz
../../readline/libreadline.a  -lm
/usr/bin/ld: ../../readline/libreadline.a(display.o): in function
`_rl_move_cursor_relative':
/home/john/src/
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:
undefined reference to `tputs'
~~~

I'm not sure how to go about solving this in the context of the RTEMS build
system. This thread (https://github.com/monero-project/monero/issues/2919)
seems to suggest I just need to link in termcap wherever readline is,
though I can't find where that's done.

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.

Thanks for any help,

John
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Problem building RTEMS - readline/undefined reference to tputs

2019-06-05 Thread John Graham
I'm on Ubuntu 19.04, assumed that would be fine as I saw Ubuntu marked as
supported elsewhere, however in your link I see 18.04 LTS is specifically
mentioned so I may try that if I can't get this to work.

John

On Wed, 5 Jun 2019, 13:45 Sebastian Huber, <
sebastian.hu...@embedded-brains.de> wrote:

> On 05/06/2019 14:27, John Graham wrote:
> >
> > 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:
> >
> > https://docs.rtems.org/branches/master/user/start/tools.html
> >
> > 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.:
>
> Which host operating system do you have? Maybe it is on this list:
>
> https://docs.rtems.org/branches/master/user/hosts/index.html#host-computer
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail  : sebastian.hu...@embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Problem building RTEMS - readline/undefined reference to tputs

2019-06-05 Thread John Graham
> Did you install the packages listed here:
>
> https://docs.rtems.org/branches/master/user/hosts/posix.html#xubuntu
>
> sudo apt-get build-dep gcc-defaults g++ gdb git unzip pax bison \
> flex libpython-dev git libncurses5-dev zlib1g-dev

It can't find build-dep or gcc-defaults - any idea if this is because
I'm on 19.04 or if the package name isn't quite right?
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel