Quick test on FreeBSD AMD64 13.2-RELEASE-p0 (upgraded today from 13.1-RELEASE-p6).
FreeBSD octagon 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 ESP32 builds work fine, but sim:nsh build fails at linking backtrace o_O 1. ESP32-DEVKITC (OK, log truncated) 1.1. CoreMark (OK) gmake distclean ./tools/configure.sh -B esp32-devkitc:coremark gmake gmake flash ESPTOOL_PORT=/dev/cuaU0 ESPTOOL_BAUD=115200 cu -l /dev/cuaU0 -s 115200 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:5656 load:0x40078000,len:12696 load:0x40080400,len:4292 entry 0x400806b0 Running CoreMark... 2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 12180 Total time (secs): 12.180000 Iterations/Sec : 985.221675 Iterations : 12000 Compiler version : GCC8.4.0 Compiler flags : -O3 -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections Parallel PThreads : 2 Memory location : Stack seedcrc : 0xe9f5 [0]crclist : 0xe714 [1]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [1]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [1]crcstate : 0x8e3a [0]crcfinal : 0xa14c [1]crcfinal : 0xa14c Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 985.221675 / GCC8.4.0 -O3 -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections / Stack / 2:PThreads 1.2. NSH (OK) gmake distclean ./tools/configure.sh -B esp32-devkitc:nsh gmake gmake flash ESPTOOL_PORT=/dev/cuaU0 ESPTOOL_BAUD=115200 cu -l /dev/cuaU0 -s 115200 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:5656 load:0x40078000,len:12696 load:0x40080400,len:4292 entry 0x400806b0 NuttShell (NSH) NuttX-12.1.0 nsh> uname -a NuttX 12.1.0 d40f4032fc-dirty Apr 12 2023 04:26:43 xtensa esp32-devkitc nsh> exit ~ [EOT] 2. SIM (build error in nsh) 2.1. ostest (OK) gmake distclean ./tools/configure.sh -B sim:ostest gmake ./nuttx stdio_test: write fd=1 stdio_test: Standard I/O Check: printf stdio_test: write fd=2 stdio_test: Standard I/O Check: fprintf to stderr ostest_main: putenv(Variable1=BadValue3) ostest_main: setenv(Variable1, GoodValue1, TRUE) ostest_main: setenv(Variable2, BadValue1, FALSE) ostest_main: setenv(Variable2, GoodValue2, TRUE) ostest_main: setenv(Variable3, GoodValue3, FALSE) ostest_main: setenv(Variable3, BadValue2, FALSE) show_variable: Variable=Variable1 has value=GoodValue1 show_variable: Variable=Variable2 has value=GoodValue2 show_variable: Variable=Variable3 has value=GoodValue3 ostest_main: Started user_main at PID=4 user_main: Begin argument test user_main: Started with argc=5 user_main: argv[0]="ostest" user_main: argv[1]="Arg1" user_main: argv[2]="Arg2" user_main: argv[3]="Arg3" user_main: argv[4]="Arg4" End of test memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 3fffd80 3fffd80 ordblks 2 2 mxordblk 3fb9a40 3fb9a40 uordblks 46310 46310 fordblks 3fb9a70 3fb9a70 user_main: getopt() test getopt(): Simple test getopt(): Invalid argument getopt(): Missing optional argument getopt_long(): Simple test getopt_long(): No short options getopt_long(): Argument for --option=argument getopt_long(): Invalid long option getopt_long(): Mixed long and short options getopt_long(): Invalid short option getopt_long(): Missing optional arguments getopt_long_only(): Mixed long and short options getopt_long_only(): Single hyphen long options 2.2. nsh (ERROR undefined symbol: backtrace) gmake clean distclean ./tools/configure.sh -B sim:nsh Copy files Select CONFIG_HOST_BSD=y Refreshing... CP: arch/dummy/Kconfig to /zraid/data/XXX/nuttxworkspace.git/nuttx/arch/dummy/dummy_kconfig CP: boards/dummy/Kconfig to /XXX/nuttxworkspace.git/nuttx/boards/dummy/dummy_kconfig LN: platform/board to /XXX/nuttxworkspace.git/apps/platform/dummy LN: include/arch to arch/sim/include LN: include/arch/board to /XXX/nuttxworkspace.git/nuttx/boards/sim/sim/sim/include LN: drivers/platform to /XXX/nuttxworkspace.git/nuttx/drivers/dummy LN: include/arch/chip to /XXX/nuttxworkspace.git/nuttx/arch/sim/include/sim LN: arch/sim/src/chip to /XXX/nuttxworkspace.git/nuttx/arch/sim/src/sim LN: arch/sim/src/board to /XXX/nuttxworkspace.git/nuttx/boards/sim/sim/sim/src mkkconfig in /XXX/nuttxworkspace.git/apps/audioutils mkkconfig in /XXX/nuttxworkspace.git/apps/benchmarks mkkconfig in /XXX/nuttxworkspace.git/apps/boot mkkconfig in /XXX/nuttxworkspace.git/apps/canutils mkkconfig in /XXX/nuttxworkspace.git/apps/crypto mkkconfig in /XXX/nuttxworkspace.git/apps/examples/mcuboot mkkconfig in /XXX/nuttxworkspace.git/apps/examples mkkconfig in /XXX/nuttxworkspace.git/apps/fsutils mkkconfig in /XXX/nuttxworkspace.git/apps/games mkkconfig in /XXX/nuttxworkspace.git/apps/gpsutils mkkconfig in /XXX/nuttxworkspace.git/apps/graphics mkkconfig in /XXX/nuttxworkspace.git/apps/industry mkkconfig in /XXX/nuttxworkspace.git/apps/interpreters/luamodules mkkconfig in /XXX/nuttxworkspace.git/apps/interpreters mkkconfig in /XXX/nuttxworkspace.git/apps/logging mkkconfig in /XXX/nuttxworkspace.git/apps/math mkkconfig in /XXX/nuttxworkspace.git/apps/mlearning mkkconfig in /XXX/nuttxworkspace.git/apps/netutils mkkconfig in /XXX/nuttxworkspace.git/apps/sdr mkkconfig in /XXX/nuttxworkspace.git/apps/system mkkconfig in /XXX/nuttxworkspace.git/apps/testing mkkconfig in /XXX/nuttxworkspace.git/apps/wireless/bluetooth mkkconfig in /XXX/nuttxworkspace.git/apps/wireless/ieee802154 mkkconfig in /XXX/nuttxworkspace.git/apps/wireless mkkconfig in /XXX/nuttxworkspace.git/apps # # configuration written to .config # (venv3.9embedded) gmake -j8 Create version.h LN: platform/board to /XXX/nuttxworkspace.git/apps/platform/dummy Register: gpio Register: hello Register: dumpstack Register: nsh Register: sh CP: /XXX/nuttxworkspace.git/nuttx/include/nuttx/config.h LD: nuttx ld: warning: arch_setjmp_x86_64.o: missing .note.GNU-stack section implies executable stack ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker ld: error: undefined symbol: backtrace >>> referenced by sim_hostmisc.c:88 (sim/posix/sim_hostmisc.c:88) >>> sim_hostmisc.o:(host_backtrace) cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [Makefile:369: nuttx] Error 1 gmake: *** [tools/Unix.mk:520: nuttx] Error 2 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info