<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><div><br></div><div>-joel<br><div class="gmail_extra"><br><div class="gmail_quote">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><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-<wbr>builder<br>
--prefix=~/devel4.12-i386.<wbr>fortran/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.<wbr>20160527-x86_64-linux-gnu-1.<wbr>txt):<br>
<br>
Tail of the build log:<br>
~/devel4.12-i386.fortran/<wbr>rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/ieeefp.h: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/<wbr>rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/ieeefp.h: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.<wbr>fortran/rtems-source-builder/<wbr>rtems/build/i386-rtems4.12-<wbr>gcc-6-20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/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/<wbr>rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/ieeefp.h: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.<wbr>fortran/rtems-source-builder/<wbr>rtems/build/i386-rtems4.12-<wbr>gcc-6-20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/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/<wbr>rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>include/ieeefp.h: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/<wbr>rtems-source-builder/rtems/<wbr>build/i386-rtems4.12-gcc-6-<wbr>20160609-newlib-2.4.0.<wbr>20160527-x86_64-linux-gnu-1/<wbr>gcc-6-20160609/newlib/libc/<wbr>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">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></div>