<div dir="ltr">Dear Sir,<div><br></div><div>After I download rtems-yaffs2-master.zip from <a href="https://github.com/m-labs/rtems-yaffs2">https://github.com/m-labs/rtems-yaffs2</a>, I am tring to build yaffs.</div><div><br>
</div><div>After I do "make -f Makefile.rtems", Build error is below;</div><div><br></div><div><div>sparc-rtems4.11-gcc --pipe -I. -Idirect -Idirect/rtems -mtune=v7 -msoft-float -fcommon -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT build-leon2/yaffs_ecc.o -MD -MP -MF build-leon2/yaffs_ecc.d -g -I . -B /home/thomas/projects/rtems/4.10.99/package/sparc-rtems4.11/leon2/lib -specs bsp_specs -qrtems -c yaffs_ecc.c -o build-leon2/yaffs_ecc.o</div>
<div>In file included from direct/ydirectenv.h:82:0,</div><div> from direct/yportenv.h:93,</div><div> from yaffs_ecc.c:24:</div><div>direct/yaffsfs.h:30:1: error: unknown type name '__loff_t'</div>
<div> typedef __loff_t loff_t;</div></div><div><br></div><div>Please let me know how to fix this.</div><div><br></div><div>GCC -v message is below;</div><div><br></div><div><div>COLLECT_GCC=sparc-rtems4.11-gcc</div><div>COLLECT_LTO_WRAPPER=/opt/rtems-4.11/libexec/gcc/sparc-rtems4.11/4.8.2/lto-wrapper</div>
<div>Target: sparc-rtems4.11</div><div>Configured with: ../gcc-4.8.2/configure --prefix=/opt/rtems-4.11 --bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11 --includedir=/opt/rtems-4.11/include --libdir=/opt/rtems-4.11/lib --libexecdir=/opt/rtems-4.11/libexec --mandir=/opt/rtems-4.11/share/man --infodir=/opt/rtems-4.11/share/info --datadir=/opt/rtems-4.11/share --build=i686-linux-gnu --host=i686-linux-gnu --target=sparc-rtems4.11 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --disable-lto --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 --enable-threads --disable-plugin --enable-languages=c,c++</div>
<div>Thread model: posix</div><div>gcc version 4.8.2 20131016 (RTEMS 4.11-RSB-40d25dc8fe6da6b93b295d9b42632c1d3338a97a-1,gcc-4.8.2/newlib-2.1.0) (GCC) </div></div><div><br></div><div>Best Regards,</div><div><br></div></div>