freifunk-gluon / gluon

a modular framework for creating OpenWrt-based firmwares for wireless mesh nodes
https://gluon.readthedocs.io
Other
547 stars 324 forks source link

tools/make-ext4fs failed to build. #2926

Closed Byggvir closed 11 months ago

Byggvir commented 1 year ago

Bug report

What is the problem?

Can't make gluon.

Log file:

v2022.1.4-mkffimage-ar71xx-generic-b.log.gz

...
make[3]: Entering directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/tools/make-ext4fs'
CFLAGS="-O2 -I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include " CPPFLAGS="-I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include " CXXFLAGS="" LDFLAGS="-L/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/lib " make -j1 -C /home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7
make[4]: Entering directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7'
cc -O2 -I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include  -Iinclude -Ilibsparse/include -c -o canned_fs_config.o canned_fs_config.c
make[4]: cc: Permission denied
make[4]: *** [Makefile:27: canned_fs_config.o] Error 127
make[4]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7'
make[3]: *** [Makefile:29: /home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7/.built] Error 2
make[3]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/tools/make-ext4fs'
time: tools/make-ext4fs/compile#0.02#0.00#0.03
ERROR: tools/make-ext4fs failed to build.
make[2]: *** [tools/Makefile:168: tools/make-ext4fs/compile] Error 1
make[2]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt'
make[1]: *** [/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/include/toplevel.mk:230: tools/install] Error 2
make[1]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt'
make: *** [Makefile:166: openwrt/staging_dir/hostpkg/bin/lua] Fehler 2

tools/make-ext4fs failed to build.

v2022.1.4 and earlier.

Being puzzled.

All

All targets

Gluon Version:

v2022.1.4 and before

Custom patches:

None

Script used to build gluon

#!/bin/bash
# Thomas Arend
# 13.07.2023

# Um den Prozess stoppen zu können

echo PID=$$

# Erstellen eines Freifunk Image unter Debian

TMPDIR=`mktemp -d "/tmp/gluon-$(date +%F-%H-%M)-XXX"`

NUM_CORES_PLUS_ONE=$(expr $(nproc) + 1)
NUM_CORES_PLUS_ONE=1
VERBOSE="V=sc"

GLUONGIT="https://github.com/freifunk-gluon/gluon.git"
GLUONDIR="$HOME/gluon/multi-domain"
GLUONVER="v2022.1.4"
GLUON_RELEASE="${GLUONVER}-$(date '+%Y%m%d')-${BRANCH}"
mkdir -p ${GLUONDIR}
SITEGIT="git@github.com:Byggvir/multi-domain.git"
SITEVER="master"
BRANCH="stable"

TARGETS="ar71xx-generic ar71xx-tiny ar71xx-nand ath79-generic brcm2708-bcm2708 brcm2708-bcm2709 ipq40xx-generic ipq806x-generic lantiq-xrx200 lantiq-xway mpc85xx-generic mpc85xx-p1020 ramips-mt7620 ramips-mt7621 ramips-mt76x8 ramips-rt305x sunxi-cortexa7 x86-generic x86-geode x86-64 ar71xx-mikrotik brcm2708-bcm2710 mvebu-cortexa9" 

TARGETS="ar71xx-generic"

echo -e "VERSION (gluon): $GLUONVER"
echo -e "VERSION (site): $SITEVER"
echo -e "BRANCH: $BRANCH"
echo -e "TARGETS: $TARGETS"

#----- Functions -----

function cleantarget () {

    make clean -j$NUM_CORES_PLUS_ONE $VERBOSE -d \
     GLUON_TARGET="$1" \
     GLUON_AUTOUPDATER_BRANCH="$BRANCH" \
     GLUON_AUTOUPDATER_ENABLED="1" \
     BROKEN=1 \
     GLUON_RELEASE="$GLUON_RELEASE" \
     >$TMPDIR/${GLUONVER}-mkffimage-$1-a.log 2>&1

}

function maketarget () {

#  sudo chown -R thomas:thomas *

  make -j$NUM_CORES_PLUS_ONE $VERBOSE \
      BROKEN=1 \
      GLUON_AUTOUPDATER_BRANCH="$BRANCH" \
      GLUON_AUTOUPDATER_ENABLED="1" \
      GLUON_TARGET="$1" \
      GLUON_RELEASE="$GLUON_RELEASE" \
      > $TMPDIR/${GLUONVER}-mkffimage-$1-b.log \
      2>&1

}

if [ ! -d "${GLUONDIR}/${GLUONVER}" ]
then
### Verzeichnis existiert noch nicht ###
  pushd "${GLUONDIR}"
  git clone -b ${GLUONVER} ${GLUONGIT} ${GLUONVER}
  popd
else 

### Verzeichnis vorhanden, auffrischen ###
  pushd "${GLUONDIR}/${GLUONVER}"
  git pull
  popd
fi

pushd "${GLUONDIR}/${GLUONVER}"

### Wir brauchen noch die Site Infos ###

if [ ! -d site ]
then 
  git clone -b "${SITEVER}" "${SITEGIT}" site 
else
  pushd site
  git pull ### "${SITEGIT}" ${SITEVER}
  popd
fi

### Alles bereit um die Firmware zu erstellen ###

make update >$TMPDIR/${GLUONVER}-mkffimage.log 2>&1

for TARGET in ${TARGETS}
do
  echo maketarget ${TARGET}
  # [ $QUICK = 0 ] || cleantarget  ${TARGET}
  maketarget ${TARGET}

done

popd
Byggvir commented 1 year ago

The error occurs in OpenWRT make prepare.

thomas@tux-lt:~/gluon/multi-domain/v2022.1.4/openwrt$ make prepare -j1 V=Vs
WARNING: Makefile 'package/feeds/routing/bird1-openwrt/Makefile' has a dependency on 'luci-base', which does not exist

[shnipp - schnapp]

make[3]: Entering directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/tools/make-ext4fs'
CFLAGS="-O2 -I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include " CPPFLAGS="-I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include " CXXFLAGS="" LDFLAGS="-L/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/lib " make -j1 -C /home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7
make[4]: Entering directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7'
cc -O2 -I/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/include  -Iinclude -Ilibsparse/include -c -o canned_fs_config.o canned_fs_config.c
make[4]: cc: Permission denied
make[4]: *** [Makefile:27: canned_fs_config.o] Error 127
make[4]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7'
make[3]: *** [Makefile:29: /home/thomas/gluon/multi-domain/v2022.1.4/openwrt/build_dir/host/make-ext4fs-2020-01-05-5c201be7/.built] Error 2
make[3]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/tools/make-ext4fs'
time: tools/make-ext4fs/compile#0.10#0.10#0.17
ERROR: tools/make-ext4fs failed to build.
make[2]: *** [tools/Makefile:168: tools/make-ext4fs/compile] Error 1
make[2]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt'
make[1]: *** [tools/Makefile:164: /home/thomas/gluon/multi-domain/v2022.1.4/openwrt/staging_dir/host/stamp/.tools_compile_yyynyynnyyyynyyyyyynyynnyynyyyyyyyyyyyyyyyyyyynynyyyyyyyy] Error 2
make[1]: Leaving directory '/home/thomas/gluon/multi-domain/v2022.1.4/openwrt'
make: *** [/home/thomas/gluon/multi-domain/v2022.1.4/openwrt/include/toplevel.mk:230: prepare] Fehler 2
rotanid commented 1 year ago
make[4]: cc: Permission denied
make[4]: *** [Makefile:27: canned_fs_config.o] Error 127

does look a bit like a local problem...

which OS and OS release version are you using? have you tried building with the docker environment supplied by gluon?

neocturne commented 11 months ago

No response, closing. Please reopen if the issue persists.