Modify

Opened 8 years ago

Closed 5 years ago

#7373 closed defect (worksforme)

net/ipv4/tunnel4.ko': No such file or directory

Reported by: mohnkhan Owned by: nico
Priority: normal Milestone: Backfire 10.03.1
Component: kernel Version: Backfire 10.03
Keywords: Cc:

Description (last modified by nico)

When we select SIT module and try to compile its dependency tunnel4.ko is automatically selected in the make menuconfig screen.

till here everything looks fine, but compiling an image for x86,ar71xx, brcm all fail to complete with a error that looks like this.

export modules=; add_module() { mkdir -p /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/etc/modules.d; ( [ "$3" = "1" ] && { echo '# May be required for rootfs' ; } ; for mod in $2; do getvar mod; done ) > /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/etc/modules.d/$1-ipip; modules="${modules:+$modules }$1-ipip"; }; add_module 32 "ipip" ; if [ -n "$modules" ]; then mkdir -p /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/etc/modules.d; mkdir -p /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL; echo "#!/bin/sh" > /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/postinst; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/postinst; echo ". /etc/functions.sh" >> /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/postinst; echo "load_modules $modules" >> /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/postinst; chmod 0755 /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/postinst; fi
mkdir -p /sbin/osx/backfire/bin/x86/packages
find /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip -name 'CVS' -o -name '.svn' -o -name '.#*' | xargs -r rm -rf
NM="i486-openwrt-linux-uclibc-nm" STRIP="/sbin/osx/backfire/staging_dir/host/bin/sstrip" STRIP_KMOD="i486-openwrt-linux-uclibc-strip --strip-unneeded --remove-section=.comment --remove-section=.pdr --remove-section=.mdebug.abi32" /sbin/osx/backfire/scripts/rstrip.sh /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip
rstrip.sh: /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/lib/modules/2.6.32.10/ipip.ko:relocatable
SIZE=`cd /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip; du -bs --exclude=./CONTROL . 2>/dev/null | cut -f1`; /sbin/osx/backfire/staging_dir/host/bin/sed -i -e "s|^\(Installed-Size:\).*|\1 $SIZE|g" /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip/CONTROL/control
ipkg-build -c -o 0 -g 0 /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip /sbin/osx/backfire/bin/x86/packages
Packaged contents of /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-ipip into /sbin/osx/backfire/bin/x86/packages/kmod-ipip_2.6.32.10-1_x86.ipk
rm -rf /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip
mkdir -p /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/stamp /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip
mkdir -p /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/lib/modules/2.6.32.10
cp -fpR -L /sbin/osx/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/net/ipv4/ipip.ko /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/lib/modules/2.6.32.10/
export modules=; add_module() { mkdir -p /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/etc/modules.d; ( [ "$3" = "1" ] && { echo '# May be required for rootfs' ; } ; for mod in $2; do getvar mod; done ) > /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/etc/modules.d/$1-ipip; modules="${modules:+$modules }$1-ipip"; }; add_module 32 "ipip" ; if [ -n "$modules" ]; then mkdir -p /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/etc/modules.d; mkdir -p /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL; echo "#!/bin/sh" > /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL/postinst; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL/postinst; echo ". /etc/functions.sh" >> /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL/postinst; echo "load_modules $modules" >> /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL/postinst; chmod 0755 /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/CONTROL/postinst; fi
cp -fpR /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip/. /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/
rm -rf /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/tmp-kmod-ipip
touch /sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/root-x86/stamp/.kmod-ipip_installed
rm -rf /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4
mkdir -p /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL
echo "Package: kmod-iptunnel4" > /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL/control
echo "Version: 2.6.32.10-1" >> /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL/control
( DEPENDS='kernel (=2.6.32.10-1)'; for depend in ; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: package/kernel"; echo "Section: kernel"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: x86"; echo "Installed-Size: 1"; echo -n "Description: "; getvar V_Package_kmod_iptunnel4_description | sed -e 's,^[[:space:]]*, ,g'; ) >> /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL/control
chmod 644 /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL/control
(cd /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/CONTROL; var2file "V_Package_kmod_iptunnel4_conffiles" conffiles; var2file "V_Package_kmod_iptunnel4_preinst" preinst; var2file "V_Package_kmod_iptunnel4_postinst" postinst; var2file "V_Package_kmod_iptunnel4_prerm" prerm; var2file "V_Package_kmod_iptunnel4_postrm" postrm; )
mkdir -p /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/lib/modules/2.6.32.10
cp -fpR -L /sbin/osx/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/net/ipv4/tunnel4.ko /sbin/osx/backfire/build_dir/linux-x86_generic/packages/ipkg-x86/kmod-iptunnel4/lib/modules/2.6.32.10/
cp: cannot stat `/sbin/osx/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/net/ipv4/tunnel4.ko': No such file or directory
make[3]: *** [/sbin/osx/backfire/bin/x86/packages/kmod-iptunnel4_2.6.32.10-1_x86.ipk] Error 1
make[3]: Leaving directory `/sbin/osx/backfire/package/kernel'
make[2]: *** [package/kernel/compile] Error 2
make[2]: Leaving directory `/sbin/osx/backfire'
make[1]: *** [/sbin/osx/backfire/staging_dir/target-i386_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/sbin/osx/backfire'
make: *** [world] Error 2

Attachments (3)

config.gz (18.2 KB) - added by anonymous 6 years ago.
config.patch.gz (11.2 KB) - added by anonymous 6 years ago.
suc_config.gz (17.7 KB) - added by anonymous 6 years ago.
successful compilation

Download all attachments as: .zip

Change History (11)

comment:1 Changed 8 years ago by jow

try this:

make target/linux/clean package/kernel/clean world V=99

comment:2 Changed 8 years ago by mohnkhan

Hi Jow,

Thanks for the command I have tried it yet again just to reconfirm, but it does not seem to happen.

how to replicate this..
select any architecture you like..... lets say vmware or ar71xx or brcmxxx
go to make menuconfig.
then try selecting the kernel modules > network support > sit... mark it as *
<*> kmod-sit......................................... IPv6-in-IPv4 tunnelling

now the tunnel4 gets auto selected for dependency..

--- kmod-iptunnel4............................................ IPv4 tunneling

I am using VMWARE, to modify certain parts of the kernel source, so I have boxes with various configurations at my disposal and this problem gets repeated, I think it didn't exist in the kamikaze, 8.x...

I have tried compiling in x86 (non 64 bit, OS) .... on fedora 10, 11, 12, Ubuntu.
but to no avail...

This issue seems to appear in the trunk and backfire.
and I tried uploading/attaching my .config file. it does not accept it says its some kinda spam
pattern..

Well if we play around with make menuconfig and make kernel_menuconfig.. I can ultimately build the image, but I cant recall the pattern..

comment:3 Changed 8 years ago by nico

  • Description modified (diff)

It works for me on UML with default config and only kmod-sit selection changed to <*> :

nico@desktop-de-nico$ find build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/etc
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/etc/modules.d
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/etc/modules.d/31-iptunnel4
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/lib
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/lib/modules
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/lib/modules/2.6.30.10
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/lib/modules/2.6.30.10/tunnel4.ko
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/CONTROL
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/CONTROL/control
build_dir/linux-uml/packages/ipkg-uml/kmod-iptunnel4/CONTROL/postinst

comment:4 Changed 8 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to accepted

Can't confirm either on x86/generic...

Can you attach your .config and a diff of your changes (both compressed) ?

comment:5 Changed 8 years ago by nico

  • Resolution set to no_response
  • Status changed from accepted to closed

Changed 6 years ago by anonymous

Changed 6 years ago by anonymous

comment:6 Changed 6 years ago by anonymous

  • Resolution no_response deleted
  • Status changed from closed to reopened

please, check this ticket

Changed 6 years ago by anonymous

successful compilation

comment:7 Changed 6 years ago by anonymous

clean svn checkout. unchecked Advanced configuration options

comment:8 Changed 5 years ago by nbd

  • Resolution set to worksforme
  • Status changed from reopened to closed

works for me in current trunk

Add Comment

Modify Ticket

Action
as closed .
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.