<div dir="ltr">This is really easy to fix and hopefully Jiri can produce a patch since I am about to leave for the weekend.<div><br></div><div>The git master has this in erc32 <a href="http://configure.ac">configure.ac</a>. It should be in both sis/<a href="http://configure.ac">configure.ac</a> and erc32/<a href="http://configure.ac">configure.ac</a> </div><div>in our gdb 8.2.1 with patches.<br></div><div><br></div><div># Keep in sync with gdb's <a href="http://configure.ac">configure.ac</a> list.<br>AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],<br> [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])<br>if test x$sim_cv_os_cygwin = xyes; then<br> TERMCAP="${TERMCAP} -luser32"<br>fi<br>AC_SUBST(TERMCAP)<br></div><div><br></div><div>The gdb version we are using has some old hack-ish code specific to Cygwin and termcap which is </div><div>now not needed. Unfortunately, that same code is in sis/<a href="http://configure.ac">configure.ac</a>. </div><div><br></div><div>Please and thank you. :)</div><div><br></div><div>--joel</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2019 at 8:37 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/8/19 5:46 am, Joel Sherrill wrote:<br>
> On Wed, Aug 7, 2019 at 2:33 PM Jiri Gaisler <<a href="mailto:jiri@gaisler.se" target="_blank">jiri@gaisler.se</a><br>
> <mailto:<a href="mailto:jiri@gaisler.se" target="_blank">jiri@gaisler.se</a>>> wrote:<br>
> <br>
> <br>
> On 8/7/19 8:22 PM, Joel Sherrill wrote:<br>
> > Hi<br>
> ><br>
> > Looks like Cygwin has libncurses but doesn't install the libtermcap.<br>
> > compatibility library.<br>
> ><br>
> > <a href="https://cygwin.com/ml/cygwin/2010-10/msg00018.html" rel="noreferrer" target="_blank">https://cygwin.com/ml/cygwin/2010-10/msg00018.html</a> says to link<br>
> > against ncurses.<br>
> ><br>
> > gdb-8.2.1/sim/sis/../.. `echo -Dsparc-rtems5 | sed s/-rtems.//` -I.<br>
> > -I../../../gdb-8.2.1/sim/sis -I../common<br>
> > -I../../../gdb-8.2.1/sim/sis/../common -I../../include<br>
> > -I../../../gdb-8.2.1/sim/sis/../../include -I../../bfd<br>
> > -I../../../gdb-8.2.1/sim/sis/../../bfd -I../../opcodes<br>
> > -I../../../gdb-8.2.1/sim/sis/../../opcodes -g -O2 -o sis \<br>
> > sis.o exec.o erc32.o func.o help.o float.o grlib.o leon3.o leon2.o<br>
> > ../../bfd/libbfd.a ../../opcodes/libopcodes.a<br>
> > ../../libiberty/libiberty.a -L../../zlib -lz<br>
> > ../../readline/libreadline.a `if test -r<br>
> > ../../libtermcap/libtermcap.a; then echo<br>
> > ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32 -lm<br>
> > /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld:<br>
> > cannot find -ltermcap<br>
> > collect2: error: ld returned 1 exit status<br>
> ><br>
> > Is the solution to just add -lncurses to the list of libraries it<br>
> > looks for?<br>
> ><br>
> > Hopefully someone has some insight into this one.<br>
> <br>
> How about a patch that disables building sis inside gdb and only use the<br>
> newer stand-alone sis version?<br>
<br>
+1<br>
<br>
> As long as the rtems tester supports it, I am cool with that.<br>
<br>
It should. Please find the existing `sis` run or gdb INI configuration files and<br>
replace with SIS. I suspect you can get down to one INI config rather than the<br>
run and gdb versions we currently have.<br>
<br>
> My goal is to begin to do regular builds and test sweeps on Cygwin<br>
> and Mingw and report to build@. So the RSB and tester need to work. :) <br>
> <br>
<br>
Nice.<br>
<br>
Chris<br>
</blockquote></div>