BPI-R3 Mini custom image building failed

Once I’ve acquired the R3 Mini, I tried to build it locally and got an error on Arch Linux, trying to avoid environment problems, I’ve created a Docker container based on Debian to isolate the issue.

Installed packages on container(using debian:stable-slim):

Packages
build-essential
clang
flex
bison
g++
gawk
gcc-multilib
g++-multilib
gettext
git
libncurses5-dev
libssl-dev
python3
python3-setuptools
rsync
swig
unzip
zlib1g-dev
file
wget
acl
ca-certificates

I’ve created a .config file using ‘make menuconfig’:

Menu Options

Base:

  • block-mount
  • sqm-scripts
  • zram-swap

Kernel Modules:

  • Block Devices: kmod-nvme
  • Filesystems:
    • kmod-fs-f2fs
    • kmod-fs-ext4
    • kmod-fs-vfat
    • kmod-fs-exfat

Network Support: kmod-batman-adv
Other Modules:

  • kmod-mmc
  • kmod-sdhci

USB Support:

  • kmod-usb2
  • kmod-usb-storage
  • kmod-usb-storage-uas
  • kmod-usb3

LuCI: luci-ssl

Network: iftop

  • WirelessAPD: wpad-mesh-mbedtls
    • Removed wpad-mbedtls

Utilities: irqbalance

Using that .config file this is the procedure I followed:

umask 022
git clone 'https://github.com/openwrt/openwrt.git’
setfacl -d --set u::rwx,g::rx,o::rx .
git checkout v24.10.4
./scripts/feeds update -a
./scripts/feeds install -a

Then build:

make defconfig
make -j5 download world

That procedure failed,
I purged my container, re-built it
then tried running the following:

make dirclean
# copied the .config file back in
./scripts/feeds update -a
./scripts/feeds install -a

Then build:

make defconfig
make -j1 V=sc download world

NOTE: Important to say that the container builds the image on a volume on the host system, just in case using 'make clean' commands didn't make any sense.

The error I got:

I'm now trying to run make distclean and retry, I will update when I'm done.

Update: Same error

OK, found the problem, this is a compiler problem with mklibs, config option CONFIG_USE_MKLIBS=y

If you build the image with the following compiling option (which is baically CONFIG_USE_MKLIBS) :
Global Build Options -> Under "Stripping Options" -> Strip unnecessary functions from libraries

You will probably fail the build,
I've opened an issue at Github: https://github.com/openwrt/openwrt/issues/20913

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.