After fixing the kconfig and tools/configure problem now we need to
fix the compiler / toolchain detection issue on esp32-c3 risc-v.

(venv38zephyr) ./tools/configure.sh esp32c3-devkit:ble
No configuration change.

(venv38zephyr) gmake
Create .version
Create version.h
gmake[1]: Entering directory '/XXX/nuttx.git/nuttx/boards'
gmake[1]: Nothing to be done for 'dirlinks'.
gmake[1]: Leaving directory '/XXX/nuttx.git/nuttx/boards'
gmake[1]: Entering directory '/XXX/nuttx.git/apps'
gmake[2]: Entering directory '/XXX/nuttx.git/apps/platform'
LN: platform/board to /XXX/nuttx.git/apps/platform/dummy
gmake[2]: Leaving directory '/XXX/nuttx.git/apps/platform'
gmake[1]: Leaving directory '/XXX/nuttx.git/apps'
gmake[1]: Entering directory '/XXX/nuttx.git/nuttx/boards'
gmake[2]: Entering directory
'/XXX/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/src'
gmake[2]: gcc: No such file or directory
gmake[2]: *** [Makefile:118:
/XXX/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3_out.ld]
Error 127
gmake[2]: Leaving directory
'/XXX/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/src'
gmake[1]: *** [Makefile:105: context] Error 2
gmake[1]: Leaving directory '/XXX/nuttx.git/nuttx/boards'
gmake: *** [tools/Makefile.unix:341: context] Error 2

For some reason it wants to use standard GCC not the RISC-V GCC. Any
hints welcome :-)

The OS is FreeBSD 13.0-STABLE AMD64. I have both ESP-IDF and FreeBSD
compilers + binutils available.

(venv38zephyr) uname -a FreeBSD 0xCFMX4 13.0-STABLE FreeBSD
13.0-STABLE #0 stable/13-n247642-39a1ff43ad7: Tue Oct 12 12:31:41 CEST
2021 root@0xCFMX4:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

(venv38zephyr) pkg search -x riscv
riscv-isa-sim-g_20201102       Spike, a RISC-V ISA Simulator
riscv32-unknown-elf-binutils-2.37_1,1 GNU binary tools
riscv32-unknown-elf-gcc-8.4.0_3 GNU Compiler Collection for bare metal
riscv32 cross-development
riscv64-binutils-2.37_1,1      GNU binary tools
riscv64-gcc-8.3.0_1            Cross GNU Compiler Collection for riscv64
riscv64-gcc9-9.3.0_1           Cross GNU Compiler Collection for riscv64
riscv64-none-elf-binutils-2.37_1,1 GNU binary tools
riscv64-none-elf-gcc-8.4.0_3   GNU Compiler Collection for bare metal
riscv64 cross-development
u-boot-qemu-riscv64-2021.07    Cross-build das u-boot for model qemu-riscv64

(venv38zephyr) ls ~/.espressif/tools/zephyr/
openocd-esp32/       riscv32-esp-elf/     xtensa-esp32-elf/
xtensa-esp32s2-elf/

(venv38zephyr) ls ~/.espressif/tools/zephyr/riscv32-esp-elf/bin/riscv32-esp-elf-
riscv32-esp-elf-addr2line*      riscv32-esp-elf-ct-ng.config*
riscv32-esp-elf-gcc-ranlib*     riscv32-esp-elf-ld*
riscv32-esp-elf-size*
riscv32-esp-elf-ar*             riscv32-esp-elf-elfedit*
riscv32-esp-elf-gcov*           riscv32-esp-elf-ld.bfd*
riscv32-esp-elf-strings*
riscv32-esp-elf-as*             riscv32-esp-elf-g++*
riscv32-esp-elf-gcov-dump*      riscv32-esp-elf-nm*
riscv32-esp-elf-strip*
riscv32-esp-elf-c++*            riscv32-esp-elf-gcc*
riscv32-esp-elf-gcov-tool*      riscv32-esp-elf-objcopy*
riscv32-esp-elf-c++filt*        riscv32-esp-elf-gcc-8.4.0*
riscv32-esp-elf-gdb*            riscv32-esp-elf-objdump*
riscv32-esp-elf-cc@             riscv32-esp-elf-gcc-ar*
riscv32-esp-elf-gdb-add-index*  riscv32-esp-elf-ranlib*
riscv32-esp-elf-cpp*            riscv32-esp-elf-gcc-nm*
riscv32-esp-elf-gprof*          riscv32-esp-elf-readelf*


I am working on the NuttX upstream master fork:

(venv38zephyr) git log -3
commit fefadc2e2d190ad0eb671cfef017a82301321ea9 (HEAD ->
cederom-tools_configure-bsd_make_vs_gnu_make,
origin/cederom-tools_configure-bsd_make_vs_gnu_make)
Author: Tomasz 'CeDeROM' CEDRO <to...@cedro.info>
Date:   Sat Oct 16 18:30:54 2021 +0200

    tools/configure.sh: Detect and use GNU make (gmake) on BSD platforms.

    Linux uses GNU Make as default, command is `make`.
    BSD uses BSD Make as default, command is also `make`.
    BSD can also use GNU Make, but the command is `gmake`.
    This patch uses `make` on GNU platforms and `gmake` on BSD platforms.

    Signed-off-by: Tomasz 'CeDeROM' CEDRO <to...@cedro.info>

commit 8b67944c75b81d17174bd207ad63acfa22da8983 (upstream/master,
upstream/HEAD, master)
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
Date:   Thu Oct 14 11:03:07 2021 +0800

    sched: Remove pidhash_s and move ticks to tcb_s

    simplify the code logic and reduce memory a little bit

    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>

commit 13741c9017bc2884f31c41db18405be271f20d70
Author: chao.an <anc...@xiaomi.com>
Date:   Tue Sep 7 22:54:47 2021 +0800

    sched/pidhash: init g_pidhash to NULL to avoid wild pointer

    Signed-off-by: chao.an <anc...@xiaomi.com>


(venv38zephyr) git remote -v
origin  g...@github.com:cederom/incubator-nuttx.git (fetch)
origin  g...@github.com:cederom/incubator-nuttx.git (push)
upstream        https://github.com/apache/incubator-nuttx.git (fetch)
upstream        https://github.com/apache/incubator-nuttx.git (push)


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to