Modify

Opened 6 years ago

Closed 6 years ago

#9985 closed defect (fixed)

libnl build error when building the rootfs

Reported by: Evengard Owned by:
Priority: blocker Milestone: milestone:next-release
Component: debian/rootfs Version: 12.09
Severity: severity 4 Keywords:
Cc:

Description

Hello!

When building DebWrt (either the rootfs only or the complete firmware with openwrt+debwrt+rootfs - the errors are the same) I get the libnl build error. It just doesn't build, but instead I have this errors:
The first time when building it from scratch:

sudo chroot /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy bash -c "cd /usr/src/qemu/qemu-0.15.0-rc0 && make install"
install -d -m0755 -p "/usr/local/etc/qemu"
install -m0644 -p /usr/src/qemu/qemu-0.15.0-rc0/sysconfigs/target/target-x86_64.conf "/usr/local/etc/qemu"
install -d -m0755 -p "/usr/local/bin"
install -d -m0755 -p "/usr/local/share/qemu"
set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb mpc8544ds.dtb multiboot.bin linuxboot.bin s390-zipl.rom spapr-rtas.bin slof.bin; do \
		install -m0644 -p /usr/src/qemu/qemu-0.15.0-rc0/pc-bios/$x "/usr/local/share/qemu"; \
	done
install -d -m0755 -p "/usr/local/share/qemu/keymaps"
set -e; for x in da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr; do \
		install -m0644 -p /usr/src/qemu/qemu-0.15.0-rc0/pc-bios/keymaps/$x "/usr/local/share/qemu/keymaps"; \
	done
for d in mipsel-linux-user; do \
	make -C $d install || exit 1 ; \
        done
make[1]: Entering directory `/usr/src/qemu/qemu-0.15.0-rc0/mipsel-linux-user'
install -m 755 qemu-mipsel "/usr/local/bin"
strip "/usr/local/bin/qemu-mipsel"
make[1]: Leaving directory `/usr/src/qemu/qemu-0.15.0-rc0/mipsel-linux-user'
touch debian/buildenv/qemu-build
touch debian/buildenv/create
rm -rf   /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl
mkdir -p /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl
cp -ar /home/evengard/debwrt-trunk1/debian/package/libnl/debian   /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl
cp -ar /home/evengard/debwrt-trunk1/debian/package/libnl/libnl.sh /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl
touch debian/package/libnl/prepare
rm -rf   /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/debwrt-kernel-headers
mkdir -p /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/debwrt-kernel-headers
cp -ar /home/evengard/debwrt-trunk1/debian/package/debwrt-kernel-headers/debian   /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/debwrt-kernel-headers
cp -ar /home/evengard/debwrt-trunk1/debian/package/debwrt-kernel-headers/debwrt-kernel-headers.sh  /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/debwrt-kernel-headers
if [ -f /home/evengard/debwrt-trunk1/bin/brcm47xx-Broadcom-wl-testing-2.1-1/debwrt-headers-brcm47xx-Broadcom-wl--testing-2.1-1.tar.gz ]; then \
		cp /home/evengard/debwrt-trunk1/bin/brcm47xx-Broadcom-wl-testing-2.1-1/debwrt-headers-brcm47xx-Broadcom-wl--testing-2.1-1.tar.gz /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/debwrt-kernel-headers; \
	else \
	        @echo "E: please build OpenWrt first - we will be needing the kernel headers" ;\
	        @exit 1 ;\
	fi
/bin/sh: 4: @echo: not found
/bin/sh: 5: @exit: not found
make: *** [debian/package/debwrt-kernel-headers/prepare] Error 127

Each next time I try to finish the process by restarting the build or rebuild the libnl package - even after rebuilding debwrt-kernel-headers package, I get this error:

dpkg-buildpackage: host architecture mipsel
dpkg-checkbuilddeps: Unmet build dependencies: debwrt-kernel-headers
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
+ cd /usr/src/libnl
+ find /usr/src/libnl -maxdepth 1 -name '*.deb'
+ grep -v _all.deb
+ xargs -r -t sudo dpkg-cross -a mipsel -b
+ find /usr/src/libnl -maxdepth 1 -name '*.deb'
+ grep _all.deb
+ xargs -r -t sudo dpkg -i
touch debian/package/libnl/build
mkdir -p /home/evengard/debwrt-trunk1/bin/brcm47xx-Broadcom-wl-testing-2.1-1/debian
cp -rav /home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl/*.deb /home/evengard/debwrt-trunk1/bin/brcm47xx-Broadcom-wl-testing-2.1-1/debian
cp: cannot stat `/home/evengard/debwrt-trunk1/build/debian-brcm47xx-Broadcom-wl-wheezy/usr/src/libnl/*.deb': No such file or directory
make: *** [debian/package/libnl/deliver] Error 1

Attaching complete logs to this ticket.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by Evengard

Files too big, uploading to external resources:
First log: https://app.box.com/s/649mlnmazr121fqnkj9c (21,4 MiB)
Second log: https://app.box.com/s/2u48asmxzrml4j1niisp (17,3 KiB)

comment:2 Changed 6 years ago by Evengard

Same problem with "shellinabox" package (but different dependencies claimed)
Resolved by editing their build.sh and adding the "-d" parameter to the dpkg-buildpackage command - after that it seems to be building fine.

comment:3 Changed 6 years ago by amain

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r563.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.