sis/gdb on Cygwin

Jiri Gaisler jiri at gaisler.se
Fri Aug 9 21:46:09 UTC 2019


On 8/9/19 8:34 PM, Jiri Gaisler wrote:
>
>
> On 8/9/19 3:24 PM, Joel Sherrill wrote:
>> I thought I saw a patch pushed yesterday afternoon but a fresh build today shows the same
>> breakage. 
>>
>> Jiri .. feel free to push a fix for this and I will test when I get back.
> The problem right now is that RSB has some breakage which causes the stand-alone version of sis not to be installed. If I push the patch, then no sis at all will be installed. I will try to find some time to look at the cygwin build problem, until Chris gets some time to look at the RSB issue ...

I tried to build gdb on cygwin but failed on configuration issues and python3 problems. Cygwin has a million packages with various versions and it is hard to figure out what needs to be installed. For windows 10 users, my recommendation is to use WSL with ubuntu 18.04. I built RSB without issues in WSL at near native speed, and no windows specific patches are needed. Even async SIGIO on sockets works ...! With windows 7 being unsupported from January 2020, is it really necessary to maintaining msys/mingw/cygwin support ...?



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


More information about the devel mailing list