Hi Tanushree, It seams the error is related to documentation, maybe if you disable generating it the binutils will compile.
BR, Alan On 4/25/21, Tanushree Baindur <tanushree.bain...@gmail.com> wrote: > Hi, > > I started working on issue Illegal calls to romdisk_register() #246 a while > back. I've been able to figure out how to run all of the examples listed in > the issue on the simulator, except for these two : examples/ nxflat and > examples/thttpd. > > I found information regarding nxflat on this website: > https://nuttx.apache.org/docs/latest/components/nxflat.html > > In the above website I found the following information: > "GCC/ARM/Cortex-M3/4 Only: At present, the NXFLAT toolchain is only > available for ARM and Cortex-M3/4 (thumb2) targets." Does this mean that > the nxflat example cannot be run in the simulator? > > I went ahead and tried to install the NXFLAT toolchain. I followed the > instructions under "Building the NXFLAT Toolchain" in the above website. On > doing a 'make' I now get the following errors: > > > /home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17/bfd/doc/elf.texi:11: > raising the section level of @subsubsection which is too low > mv: cannot move '.am15588/bfd.info' to > './/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17/bfd/doc/': > No such file or directory > Makefile:364: recipe for target > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17/bfd/doc/ > bfd.info' failed > make[4]: *** > [/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17/bfd/doc/ > bfd.info] Error 1 > make[4]: Leaving directory > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build/bfd/doc' > Makefile:1029: recipe for target 'info-recursive' failed > make[3]: *** [info-recursive] Error 1 > make[3]: Leaving directory > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build/bfd' > Makefile:2720: recipe for target 'all-bfd' failed > make[2]: *** [all-bfd] Error 2 > make[2]: Leaving directory > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build' > Makefile:629: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build' > toolchain/binutils/binutils.mk:55: recipe for target > '/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build/binutils/objdump' > failed > make: *** > [/home/tanushree/nuttx-code/buildroot/toolchain_build_i686/binutils-2.17-build/binutils/objdump] > Error 2 > > > Following is my .config file: > # > # Automatically generated make config: don't edit > # > BR2_HAVE_DOT_CONFIG=y > # BR2_alpha is not set > # BR2_arm is not set > # BR2_armeb is not set > # BR2_avr is not set > # BR2_avr32 is not set > # BR2_bfin is not set > # BR2_cris is not set > BR2_i386=y > # BR2_lm32 is not set > # BR2_m32c is not set > # BR2_m68k is not set > # BR2_m68hc11 is not set > # BR2_m68hc12 is not set > # BR2_m9s12x is not set > # BR2_mips is not set > # BR2_mipsel is not set > # BR2_nios2 is not set > # BR2_powerpc is not set > # BR2_sh is not set > # BR2_sh64 is not set > # BR2_h8300 is not set > # BR2_sparc is not set > # BR2_x86_64 is not set > # BR2_GCC_CORTEX is not set > # BR2_GCC_CORTEX_M4F is not set > # BR2_x86_i386 is not set > # BR2_x86_i486 is not set > # BR2_x86_i586 is not set > BR2_x86_i686=y > BR2_ARCH="i686" > BR2_GCC_TARGET_TUNE="i686" > BR2_GCC_TARGET_ARCH="i686" > > # > # Build options > # > BR2_WGET="wget --passive-ftp" > BR2_SVN="svn co" > BR2_ZCAT="zcat" > BR2_BZCAT="bzcat" > BR2_TAR_OPTIONS="" > BR2_DL_DIR="$(BASE_DIR)/dl" > BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" > BR2_NUTTX_DIR="$(TOPDIR)/../nuttx" > BR2_TOPDIR_PREFIX="" > BR2_TOPDIR_SUFFIX="" > BR2_GNU_BUILD_SUFFIX="pc-elf" > BR2_GNU_TARGET_SUFFIX="nuttx-elf" > # BR2_PREFER_IMA is not set > > # > # Toolchain Options > # > > # > # Binutils Options > # > BR2_PACKAGE_BINUTILS=y > BR2_BINUTILS_VERSION_2_17=y > # BR2_BINUTILS_VERSION_2_18 is not set > # BR2_BINUTILS_VERSION_2_19 is not set > # BR2_BINUTILS_VERSION_2_19_1 is not set > # BR2_BINUTILS_VERSION_2_21_1 is not set > # BR2_BINUTILS_VERSION_2_22 is not set > # BR2_BINUTILS_VERSION_2_24 is not set > # BR2_BINUTILS_VERSION_2_26_1 is not set > # BR2_BINUTILS_VERSION_2_28_1 is not set > BR2_BINUTILS_VERSION="2.17" > BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="" > > # > # GCC Options > # > BR2_PACKAGE_GCC=y > # BR2_GCC_VERSION_3_3_6 is not set > # BR2_GCC_VERSION_3_4_6 is not set > # BR2_GCC_VERSION_4_2_4 is not set > BR2_GCC_VERSION_4_3_3=y > # BR2_GCC_VERSION_4_5_2 is not set > # BR2_GCC_VERSION_4_6_3 is not set > # BR2_GCC_VERSION_4_7_4 is not set > # BR2_GCC_VERSION_4_8_5 is not set > # BR2_GCC_VERSION_4_9_4 is not set > # BR2_GCC_VERSION_5_5_0 is not set > # BR2_GCC_VERSION_6_4_0 is not set > # BR2_GCC_VERSION_7_3_0 is not set > BR2_GCC_SUPPORTS_SYSROOT=y > BR2_GCC_VERSION="4.3.3" > # BR2_GCC_USE_SJLJ_EXCEPTIONS is not set > BR2_EXTRA_GCC_CONFIG_OPTIONS="" > # BR2_INSTALL_LIBSTDCPP is not set > # BR2_INSTALL_OBJC is not set > # BR2_INSTALL_FORTRAN is not set > > # > # Gdb Options > # > # BR2_PACKAGE_GDB is not set > # BR2_PACKAGE_GDB_SERVER is not set > # BR2_PACKAGE_GDB_HOST is not set > > # > # NuttX Binary Support > # > # BR2_PACKAGE_GENROMFS is not set > BR2_PACKAGE_KCONFIG_FRONTENDS=y > # BR2_NCONF_FRONTEND is not set > # BR2_GCONF_FRONTEND is not set > # BR2_QCONF_FRONTEND is not set > BR2_KCONFIG_FRONTENDS_VERSION="3.12.0.0" > > # > # Common Toolchain Options > # > # BR2_PACKAGE_SSTRIP_TARGET is not set > # BR2_PACKAGE_SSTRIP_HOST is not set > # BR2_ENABLE_MULTILIB is not set > BR2_LARGEFILE=y > BR2_TARGET_OPTIMIZATION="-Os -pipe" > > > > Could you please let me know what I'm doing wrong? > > Tanushree >