<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/9/19 8:34 PM, Jiri Gaisler wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c84c6a82-e954-dc5d-aa02-f4f292df6b7d@gaisler.se">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 8/9/19 3:24 PM, Joel Sherrill
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAF9ehCW5wcXNvNWUBO4hCczU9JATdPF8m-Q3MkFSh7K_HSZPUA@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">I thought I saw a patch pushed yesterday
          afternoon but a fresh build today shows the same
          <div>breakage. </div>
          <div><br>
          </div>
          <div>Jiri .. feel free to push a fix for this and I will test
            when I get back.</div>
        </div>
      </blockquote>
      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 ...<br>
    </blockquote>
    <p>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 ...?<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:c84c6a82-e954-dc5d-aa02-f4f292df6b7d@gaisler.se">
      <blockquote type="cite"
cite="mid:CAF9ehCW5wcXNvNWUBO4hCczU9JATdPF8m-Q3MkFSh7K_HSZPUA@mail.gmail.com"><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 2:37
            PM Joel Sherrill <<a href="mailto:joel@rtems.org"
              moz-do-not-send="true">joel@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">
            <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" target="_blank"
                  moz-do-not-send="true">configure.ac</a>. It should be
                in both sis/<a href="http://configure.ac"
                  target="_blank" moz-do-not-send="true">configure.ac</a>
                and erc32/<a href="http://configure.ac" target="_blank"
                  moz-do-not-send="true">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" target="_blank"
                  moz-do-not-send="true">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" target="_blank"
                  moz-do-not-send="true">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" target="_blank"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">jiri@gaisler.se</a><br>
                > <mailto:<a href="mailto:jiri@gaisler.se"
                  target="_blank" moz-do-not-send="true">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"
                  moz-do-not-send="true">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>
          </blockquote>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:devel@rtems.org">devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a></pre>
    </blockquote>
  </body>
</html>