Solved /bin/sh: cc: not found when trying to make u-boot

Hello.

because is comfortable,I have switched board where to compile the new port "u-boot-khadas-edge-v-2020.07" and I'm trying to do it on the RockPro64,but it complaints that it cannot find gcc,even if I've installed llvm21-21.1.0.r2 ; gcc14-14.2.0_4 ; gcc15-15.1.0_1 ; gcc

Code:
marietto@Rock:/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07 $ sudo make
Password:
===>   u-boot-khadas-edge-v-2020.07 depends on executable: gsed - found
===>   u-boot-khadas-edge-v-2020.07 depends on executable: swig - found
===>   u-boot-khadas-edge-v-2020.07 depends on package: dtc>=1.4.1 - found
===>   u-boot-khadas-edge-v-2020.07 depends on executable: mkimage - found
===>   u-boot-khadas-edge-v-2020.07 depends on executable: aarch64-none-elf-gcc - found
===>   u-boot-khadas-edge-v-2020.07 depends on file: /usr/local/share/atf-rk3399/bl31.elf - found
===>   u-boot-khadas-edge-v-2020.07 depends on package: py311-pyelftools>0 - found
===>   u-boot-khadas-edge-v-2020.07 depends on executable: bison - found
===>   u-boot-khadas-edge-v-2020.07 depends on package: gmake>=4.4.1 - found
===>   u-boot-khadas-edge-v-2020.07 depends on file: /usr/local/bin/python3.11 - found
===>  Configuring for u-boot-khadas-edge-v-2020.07
(cd /usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/u-boot-2020.07; /usr/bin/env MAKE=/usr/local/bin/gmake PYTHON="/usr/local/bin/python3.11" XDG_DATA_HOME=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work  XDG_CONFIG_HOME=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work  XDG_CACHE_HOME=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/.cache  HOME=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work PATH=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PKG_CONFIG_LIBDIR=/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh /usr/local/bin/gmake khadas-edge-v-rk3399_defconfig)
gmake[1]: Entering directory '/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/u-boot-2020.07'
  HOSTCC  scripts/basic/fixdep
/bin/sh: cc: not found
gmake[2]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
gmake[1]: *** [Makefile:483: scripts_basic] Error 2
gmake[1]: Leaving directory '/usr/ports/sysutils/u-boot-khadas-edge-v-2020.07/work/u-boot-2020.07'
*** Error code 2

Stop.
make: stopped in /usr/ports/sysutils/u-boot-khadas-edge-v-2020.07
 
A FreeBSD system without /usr/bin/cc only exists if you nuked cc yourself.

I would untar a release build (without /etc).
 
I didn't nuke everything. Only a corruption of the sd card can do this. Even if I didn't see any big crash.
 
Back
Top