I get a lot of errors when I try to build a lot,if not every , u-boot-* ports.

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Tue, 26 Aug 2025 21:31:57 UTC
Hello.

I'm trying to build u-boot for the khadas-edge-v on FreeBSD 14.2-RELEASE
and 14.3-RELEASE (packages = quarterly)) ; version =


[marietto@marietto]==> freebsd-version -kru

14.2-RELEASE-p1

14.2-RELEASE-p1

14.2-RELEASE-p5

First off I went to another board's build and I checked if a defconfig file
exists for this board.

Checked ./u-boot/configs/ directory :


/usr/ports/sysutils/u-boot-radxa-zero3/work/u-boot-2025.07-rc2/configs/khadas-edge-v-rk3399_defconfig


Then I found the defconfig file for the board and I tried to build a slave
u-boot port for the khadas :

# mkdir /usr/ports/sysutils/u-boot-khadas-edge-v

# cd /usr/ports/sysutils/u-boot-khadas-edge-v

# ee Makefile

MASTERDIR=      ${.CURDIR}/../u-boot-master

MODEL=          khadas-edge-v
BOARD_CONFIG=   khadas-edge-v-rk3399_defconfig
FAMILY=         rk3399

.include "${MASTERDIR}/Makefile"

Then I created the package description file :


# ee pkg-descr

U-Boot loader and related files for the khadas-edge-v :

To install this bootloader on an sdcard just do:

dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/idbloader.img
of=/path/to/sdcarddevice seek=64 conv=sync

dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/u-boot.itb
of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync


At this point I tried to build the port :

Installed dependencies:


# make build-depends-list | cut -c 12- | xargs pkg install -A -y

Tried to build it :

# make install

But,unfortunately,I get a lot of errors at this point :

https://pastebin.ubuntu.com/p/jg9YrSxPrP/

These are my env variables :


# env

SSH_AUTH_SOCK=/var/run/user/1001/ssh-agent.socket
MM_CHARSET=UTF-8
LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
USER=marietto
DESKTOP_SESSION=LXDE
XDG_MENU_PREFIX=lxde-
OLDPWD=/home/marietto
XDG_CONFIG_HOME=/home/marietto/.config
HOME=/home/marietto
MPD_HOST=/home/marietto/.config/mpd/socket
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-F7umH6rba7,guid=03e69b17d18bdb369701682768ac0840
_=/usr/bin/env
XDG_CONFIG_DIRS=/usr/local/etc/xdg
WINDOWPATH=9
XDG_DATA_DIRS=/usr/local/share
_LXSESSION_PID=3942
XDG_CACHE_HOME=/home/marietto/.cache
XDG_DATA_HOME=/home/marietto/.local/share
BLOCKSIZE=K
MAIL=/var/mail/marietto
LOGNAME=marietto
VISUAL=nano
SAL_USE_VCLPLUGIN=gtk
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XDG_RUNTIME_DIR=/var/run/user/1001
SHELL=/usr/local/bin/zsh
LESSKEY=/home/marietto/.config/less/keys
KEYTIMEOUT=1
LESSHISTFILE=/home/marietto/.config/less/history
EDITOR=nano
XDG_SESSION_COOKIE=marietto-1756104768.218998-1025553342
PWD=/home/marietto
XAUTHORITY=/home/marietto/.Xauthority
SHLVL=2
DISPLAY=:0
TERM=xterm


[marietto@marietto /usr/ports/sysutils/u-boot-khadas-edge-v]==> sudo env

LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XAUTHORITY=/home/marietto/.Xauthority
DISPLAY=:0
TERM=xterm
MAIL=/var/mail/root
LOGNAME=root
USER=root
HOME=/root
SHELL=/usr/local/bin/zsh
SUDO_COMMAND=/usr/bin/env
SUDO_USER=marietto
SUDO_UID=1001
SUDO_GID=1001
SUDO_HOME=/home/marietto
SUDO_TTY=/dev/pts/1

What could be the problem ? How to fix it ? It happens also when I try to
build a lot,if not every, u-boot-* port....

The package can be installed,the port gives that error. But this does not
change anything. I get the same error when I try to install every kind of
u-boot-* port.
MAKE_JOBS_UNSAFE does not work

I also tried to remove the ports tree and I've rebuilt it. But the error is
still there.
-- 
Mario.