<html>
<head>
</head>
<body>
In am using snapshot rtems-ss-20010525 using the rpms of that date (which
was around November) and paranoia is working fine. I have no co-processor
on my machine and am using the pc386dx BSP.<br>
<br>
Additionally, the floating point problem was resolved in Feb last year, so
the RPMs from there should be fine<br>
<br>
<br>
Smith, Gene wrote:<br>
<blockquote type="cite" cite="mid:6391E0672315FB41904F245E7764A6BAD8C9CB@jsc0001e">
<pre wrap="">I am trying to include soft-float on my rtems-4.5.0 386 system (no<br>coprocessor). This thread indicates there was (is?) a problem with the<br>newlib rpms. I am using the newlib rpm updated in Sept for 4.5.0. However,<br>the compile of paranoia fails due to undefined fp routines (I have set<br>CPU_CFLAG = -msoft-float -mno-fp-ret-in-387). <br><br>Is it ok to use snapshot or preview rpms (need newlib1.9.0-1 per below) with<br>my 4.5.0 system without totally upgrading rtems to the 4.5.1-preview or a<br>snapshot? If so, which ones? (I see some that indicated they are<br>LATEST_TRUSTED.)<br><br>Tks,<br>-gene<br><br></pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----<br>From: Angelo Fraietta [<a class="moz-txt-link-freetext" href="mailto:angelo@hunterlink.net.au">mailto:angelo@hunterlink.net.au</a>]<br>Sent: Tuesday, February 27, 2001 4:10 AM<br>To: <a class="moz-txt-link-abbreviated" href="mailto:corsepiu@faw.uni-ulm.de">corsepiu@faw.uni-ulm.de</a>; rtems-users; Joel Sherrill<br>Subject: Re: Soft Float for PC386<br><br><br>Wait on that, I have just found that there was another RPM <br>made, being the i386-rtems-gcc-gcc2.95.2newlib1.9.0-1.i386.rpm as<br>well as the rtems-base-gcc-gcc2.95.2newlib1.9.0-1.i386.rpm<br>(I thought my machine had frozen up after the first RPM was made)<br>I'll rebuild RTEMS and check again. Sorry about that.<br><br>Angelo Fraietta wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">The computer no longer re-boots when running two tasks with <br></pre>
</blockquote>
<pre wrap="">the -mno-fp-ret-in-387 flags.<br></pre>
<blockquote type="cite">
<pre wrap="">However, there are still co-processor commands occuring. <br></pre>
</blockquote>
<pre wrap="">This is where the exception occurs:<br></pre>
<blockquote type="cite">
<pre wrap="">with CPU_CFLAGS =-msoft-float -mno-fp-ret-in-387<br><br> 10ba89: 5e pop %esi<br> 10ba8a: 5f pop %edi<br> 10ba8b: dd 45 f0 fldl 0xfffffff0(%ebp)<br> 10ba8e: c9 leave<br><br>Ralf Corsepius wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">Angelo Fraietta wrote:<br></pre>
<blockquote type="cite">
<pre wrap="">If I build the pc386 with both the -mno-fp-ret-in-387 <br></pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">and the -msoft-float flags<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">the machine re-boots if you try to create a task. Eg, if <br></pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">you try to run the<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">ticker sample, the machine re-boots. If you only use <br></pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">the -msoft-float and not<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">the -mno-fp-ret-in-387 flag, the tasks run OK.<br>I am mentioning this because the ts_386ex build uses <br></pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">both flags, and so if<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">someone tests these on a ts_386ex, they may want to try <br></pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">running ticker on it to<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">see if it crashes.<br><br></pre>
</blockquote>
<pre wrap="">This doesn't surprize me, because newlib unconditionally inserts<br>FPU-code into its libc, no matter which compiler options are used<br>for building it. I.e. at least one cause of your problems <br></pre>
</blockquote>
</blockquote>
<pre wrap="">is lurking<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">in newlib.<br><br>I believe to have fixed this issue, so you could consider <br></pre>
</blockquote>
</blockquote>
<pre wrap="">rebuilding<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">your gcc-newlib rpms, using the *.nosrc.rpm below, which <br></pre>
</blockquote>
</blockquote>
<pre wrap="">contains my<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">fixes.<br><br>Procedure for rebuilding:<br>1) Copy gcc-2.95.2.tar.gz and newlib-1.9.0.tar.gz to<br>/usr/src/redhat/SOURCES.<br><br>2) rpm -i i386-rtems-gcc-newlib-gcc2.95.2newlib1.9.0-1.nosrc.rpm<br>[This will install RTEMS diffs and my patches to<br>/usr/src/redhat/SOURCES]<br><br>3)<br>export PATH=/opt/rtems/bin:$PATH<br>rpm -bb<br><br></pre>
</blockquote>
</blockquote>
<pre wrap="">/usr/src/redhat/SPECS/i386-rtems-gcc-newlib-gcc2.95.2newlib1.9.0.spec<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">[Now wait a couple of hours for the built to finish. Requires 500MB<br>to 1GB of free diskspace below /usr/src/redhat]<br><br>4) /usr/src/redhat/RPMS/i386 now should contain the new<br>i386-rtems-*.rpms<br><br>5) Rebuild RTEMS w/ -msoft-float -mno-fp-ret-in-387.<br><br>6) Test at run-time.<br><br>Hope that helps.<br><br>FYI: These patches already are submitted to Joel and to the newlib<br>maintainers.<br><br>AFAIK, Joel already is preparing new RTEMS toolchain rpms. <br></pre>
</blockquote>
</blockquote>
<pre wrap="">So if you<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">can't build the toolchain yourself for some reason, it's probably<br>only a matter of days until new RTEMS toolchain rpms will appear on<br>OAR's site.<br><br>Ralf<br><br>--<br>Ralf Corsepius<br>Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung<br>(FAW)<br>Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690<br><a class="moz-txt-link-freetext" href="mailto:corsepiu@faw.uni-ulm.de">mailto:corsepiu@faw.uni-ulm.de</a> FAX: +49/731/501-999<br><a class="moz-txt-link-freetext" href="http://www.faw.uni-ulm.de">http://www.faw.uni-ulm.de</a><br><br> <br></pre>
</blockquote>
</blockquote>
<pre wrap="">---------------------------------------------------------------<br>---------<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> <br></pre>
</blockquote>
</blockquote>
<pre wrap=""> Name: i386-rtems-gcc-newlib-gcc2.95.2newlib1.9.0-1.nosrc.rpm<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> i386-rtems-gcc-newlib-gcc2.95.2newlib1.9.0-1.nosrc.rpm <br></pre>
</blockquote>
</blockquote>
<pre wrap=""> Type: RealPlayer(tm) as Plug-in (audio/x-pn-realaudio-plugin)<br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> <br></pre>
</blockquote>
</blockquote>
<pre wrap="">Encoding: base64<br></pre>
<blockquote type="cite">
<pre wrap="">--<br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><a class="moz-txt-link-freetext" href="http://users.hunterlink.net.au/~maaaf/">http://users.hunterlink.net.au/~maaaf/</a><br><br>There are those who seek knowledge for the sake of knowledge <br></pre>
</blockquote>
<pre wrap="">- that is CURIOSITY<br></pre>
<blockquote type="cite">
<pre wrap="">There are those who seek knowledge to be known by others - <br></pre>
</blockquote>
<pre wrap="">that is VANITY<br></pre>
<blockquote type="cite">
<pre wrap="">There are those who seek knowledge in order to serve - that is LOVE<br> Bernard of Clairvaux (1090 - 1153)<br></pre>
</blockquote>
<pre wrap="">--<br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><a class="moz-txt-link-freetext" href="http://users.hunterlink.net.au/~maaaf/">http://users.hunterlink.net.au/~maaaf/</a><br><br>There are those who seek knowledge for the sake of knowledge - <br>that is CURIOSITY<br>There are those who seek knowledge to be known by others - <br>that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br> Bernard of Clairvaux (1090 - 1153)<br><br><br></pre>
</blockquote>
<pre wrap=""><!----><br></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)</pre>
<br>
</body>
</html>