<div dir="ltr">Following up again. So far a handful of architectures have built OK for<div>me but you were unlucky enough to try the one that failed -- i386:</div><div><br></div><div><div>/home/joel/rtems-4.11-work/rtems-source-builder/rtems/build/i386-rtems4.12-gcc-6-20161110-newlib-2.4.0.20161025-x86_64-linux-gnu-1/gcc-6-20161110/newlib/libc/include/ieeefp.h:152:2: error: #error "double and long double are the same size but LDBL_EQ_DBL is not defined"</div><div> #error "double and long double are the same size but LDBL_EQ_DBL is not defined"</div><div> ^~~~~</div></div><div><br></div><div>Following up on newlib about this.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 12:51 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Please update your RSB and try again. I successfully built a SPARC 4.12<div>toolset using the current RSB master. </div><div><br></div><div>Please follow up and let us know what happens.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">-joel<br></font></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Nov 21, 2016 at 9:24 AM, Ricardo Derbes <span dir="ltr"><<a href="mailto:rmderbes@gmail.com" target="_blank">rmderbes@gmail.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
I'm trying to build rtems toolchain for i386 using<br>
rtems-source-builder with fortran support (--with-fortran option).<br>
The RSB I'm using has been dowloaded from git, commit<br>
534332f22a66f16b4022e87ae50c11<wbr>ff20c98dcb from Sep 12 2016.<br>
<br>
The full command line is:<br>
../source-builder/sb-set-build<wbr>er<br>
--prefix=~/devel4.12-i386.fort<wbr>ran/rtems4.12 4.12/rtems-i386<br>
--without-rtems --with-fortran<br>
<br>
When trying to build gcc, it fails with the following errors (excerpt<br>
from report file<br>
rsb-report-i386-rtems4.12-gcc-<wbr>6-20160609-newlib-2.4.0.201605<wbr>27-x86_64-linux-gnu-1.txt):<br>
<br>
Tail of the build log:<br>
~/devel4.12-i386.fortran/rtems<wbr>-source-builder/rtems/build/<wbr>i386-rtems4.12-gcc-6-20160609-<wbr>newlib-2.4.0.20160527-x86_64-<wbr>linux-gnu-1/gcc-6-20160609/<wbr>newlib/libc/include/ieeefp.h:<wbr>196:38:<br>
error: 'EXT_FRACHBITS' undeclared here (not in a function)<br>
__ieee_ext_field_type ext_frach : EXT_FRACHBITS;<br>
^~~~~~~~~~~~~<br>
~/devel4.12-i386.fortran/rtems<wbr>-source-builder/rtems/build/<wbr>i386-rtems4.12-gcc-6-20160609-<wbr>newlib-2.4.0.20160527-x86_64-<wbr>linux-gnu-1/gcc-6-20160609/<wbr>newlib/libc/include/ieeefp.h:<wbr>196:26:<br>
error: bit-field 'ext_frach' width not an integer constant<br>
__ieee_ext_field_type ext_frach : EXT_FRACHBITS;<br>
^~~~~~~~~<br>
/home/dev/devel4.12-i386.fortr<wbr>an/rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.20160527<wbr>-x86_64-linux-gnu-1/gcc-6-<wbr>20160609/newlib/libc/include/<wbr>ieeefp.h:197:3:<br>
error: unknown type name '__ieee_ext_field_type'<br>
__ieee_ext_field_type ext_exp : EXT_EXPBITS;<br>
^~~~~~~~~~~~~~~~~~~~~<br>
~/devel4.12-i386.fortran/rtems<wbr>-source-builder/rtems/build/<wbr>i386-rtems4.12-gcc-6-20160609-<wbr>newlib-2.4.0.20160527-x86_64-<wbr>linux-gnu-1/gcc-6-20160609/<wbr>newlib/libc/include/ieeefp.h:<wbr>197:38:<br>
error: 'EXT_EXPBITS' undeclared here (not in a function)<br>
__ieee_ext_field_type ext_exp : EXT_EXPBITS;<br>
^~~~~~~~~~~<br>
/home/dev/devel4.12-i386.fortr<wbr>an/rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.20160527<wbr>-x86_64-linux-gnu-1/gcc-6-<wbr>20160609/newlib/libc/include/<wbr>ieeefp.h:197:26:<br>
error: bit-field 'ext_exp' width not an integer constant<br>
__ieee_ext_field_type ext_exp : EXT_EXPBITS;<br>
^~~~~~~<br>
~/devel4.12-i386.fortran/rtems<wbr>-source-builder/rtems/build/<wbr>i386-rtems4.12-gcc-6-20160609-<wbr>newlib-2.4.0.20160527-x86_64-<wbr>linux-gnu-1/gcc-6-20160609/<wbr>newlib/libc/include/ieeefp.h:<wbr>198:3:<br>
error: unknown type name '__ieee_ext_field_type'<br>
__ieee_ext_field_type ext_sign : 1;<br>
^~~~~~~~~~~~~~~~~~~~~<br>
<br>
As for my application I need fortran support, how can I fix this problem?<br>
As long I can see, all symbols that the compiler claims as undeclared<br>
are indeed declared and accessible in file<br>
~/devel4.12-i386.fortran/rtems<wbr>-source-builder/rtems/build/<wbr>i386-rtems4.12-gcc-6-20160609-<wbr>newlib-2.4.0.20160527-x86_64-<wbr>linux-gnu-1/gcc-6-20160609/<wbr>newlib/libc/include/ieeefp.h<br>
May be it's missing a symbol, e.g a proper value for LDBL_MANT_DIG ?<br>
<br>
Thank you<br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/users</a><br>
</blockquote></div></div></div><br></div></div></div>
</blockquote></div><br></div>