build errors

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

User avatar
djt_nz
Posts: 26
Joined: Mon May 07, 2012 1:00 am
Location: New Zealand

Getting a Build error

Postby djt_nz » Tue Jan 12, 2016 9:51 pm

On a fresh Ubuntu 12.04.5 LTS install I'm getting the following error when building Gargoyle. (revision b38dec1)

Is any one else getting the same error or is it just me?
Am I missing some dependency?

I was building using "make FULL_BUILD=true ar71xx.usb"

Code: Select all

. /home/ubuntu/gargoyle/ar71xx-src/include/shell.sh; export modules=; probe_module() { mods="$1"; boot="$2"; shift 2; for mod in $mods; do mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d; echo "$mod" >> /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d/ipt-layer7; done; if [ -e /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d/ipt-layer7 ]; then if [ "$boot" = "1" ]; then mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules-boot.d; ln -s ../modules.d/ipt-layer7 /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules-boot.d/; fi; modules="${modules:+$modules }$mods"; fi; }; add_module() { priority="$1"; mods="$2"; boot="$3"; shift 3; for mod in $mods; do mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d; echo "$mod" >> /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d/$priority-ipt-layer7; done; if [ -e /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d/$priority-ipt-layer7 ]; then if [ "$boot" = "1" ]; then mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules-boot.d; ln -s ../modules.d/$priority-ipt-layer7 /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-ipt-layer7"; fi; }; add_module "45" "ipt_layer7" ""; if [ -n "$modules" ]; then mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/etc/modules.d; mkdir -p /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL; echo "#!/bin/sh" > /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL/postinst-pkg; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL/postinst-pkg; echo ". /lib/functions.sh" >> /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL/postinst-pkg; echo "insert_modules $modules" >> /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL/postinst-pkg; chmod 0755 /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7/CONTROL/postinst-pkg; fi
find /home/ubuntu/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/packages/ipkg-ar71xx/kmod-ipt-layer7 -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package kmod-ipt-layer7 is missing dependencies for the following libraries:
nf_conntrack.ko
make[4]: *** [/home/ubuntu/gargoyle/ar71xx-src/bin/ar71xx/packages/base/kmod-ipt-layer7_3.18.23-1-223e3fdd27db9122f3c52a76cf3816a1_ar71xx.ipk] Error 1
make[4]: Leaving directory `/home/ubuntu/gargoyle/ar71xx-src/package/kernel/linux'
make[3]: *** [package/kernel/linux/compile] Error 2
make[3]: Leaving directory `/home/ubuntu/gargoyle/ar71xx-src'
make[2]: *** [/home/ubuntu/gargoyle/ar71xx-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/ubuntu/gargoyle/ar71xx-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/ubuntu/gargoyle/ar71xx-src'


djt
TL-WR1043ND V1.8 (Gargoyle 1.7.X git@701d7f5) djt build

ispyisail
Moderator
Posts: 4592
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

build errors

Postby ispyisail » Tue Jan 12, 2016 10:09 pm

hi all

anybody else getting build errors?

Code: Select all

 ) { mods="$1"; boot="$2"; shift 2; for mod in $mods; do mkdir -p /home/user/garg                                            oyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-m                                            vebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d; echo "$mod" >> /home/use                                            r/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/l                                            inux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d/ipt-layer7; done; i                                            f [ -e /home/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc                                            -0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d/ipt                                            -layer7 ]; then if [ "$boot" = "1" ]; then mkdir -p /home/user/gargoyle/mvebu-sr                                            c/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mvebu/packages                                            /ipkg-mvebu/kmod-ipt-layer7/etc/modules-boot.d; ln -s ../modules.d/ipt-layer7 /h                                            ome/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2                                            _eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules-boot.d/; fi; m                                            odules="${modules:+$modules }$mods"; fi; }; add_module() { priority="$1"; mods="                                            $2"; boot="$3"; shift 3; for mod in $mods; do mkdir -p /home/user/gargoyle/mvebu                                            -src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mvebu/packa                                            ges/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d; echo "$mod" >> /home/user/gargoyle                                            /mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mvebu                                            /packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d/$priority-ipt-layer7; done; i                                            f [ -e /home/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc                                            -0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d/$pr                                            iority-ipt-layer7 ]; then if [ "$boot" = "1" ]; then mkdir -p /home/user/gargoyl                                            e/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mveb                                            u/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules-boot.d; ln -s ../modules.d/$pr                                            iority-ipt-layer7 /home/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+v                                            fpv3_uClibc-0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/mo                                            dules-boot.d/; fi; modules="${modules:+$modules }$priority-ipt-layer7"; fi; }; a                                            dd_module "45" "ipt_layer7" ""; if [ -n "$modules" ]; then mkdir -p /home/user/g                                            argoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linu                                            x-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/etc/modules.d; mkdir -p /home/user/g                                            argoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linu                                            x-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/CONTROL; echo "#!/bin/sh" > /home/us                                            er/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/                                            linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/CONTROL/postinst-pkg; echo "[ -z                                             \"\$IPKG_INSTROOT\" ] || exit 0" >> /home/user/gargoyle/mvebu-src/build_dir/tar                                            get-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmo                                            d-ipt-layer7/CONTROL/postinst-pkg; echo ". /lib/functions.sh" >> /home/user/garg                                            oyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-m                                            vebu/packages/ipkg-mvebu/kmod-ipt-layer7/CONTROL/postinst-pkg; echo "insert_modu                                            les $modules" >> /home/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vf                                            pv3_uClibc-0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7/CONTROL                                            /postinst-pkg; chmod 0755 /home/user/gargoyle/mvebu-src/build_dir/target-arm_cor                                            tex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer                                            7/CONTROL/postinst-pkg; fi
find /home/user/gargoyle/mvebu-src/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0                                            .9.33.2_eabi/linux-mvebu/packages/ipkg-mvebu/kmod-ipt-layer7 -name 'CVS' -o -nam                                            e '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package kmod-ipt-layer7 is missing dependencies for the following libraries:
nf_conntrack.ko
make[4]: *** [/home/user/gargoyle/mvebu-src/bin/mvebu/packages/base/kmod-ipt-lay                                            er7_3.18.23-1-25f4511566a70c6f61fca35d1e950480_mvebu.ipk] Error 1
make[4]: Leaving directory `/home/user/gargoyle/mvebu-src/package/kernel/linux'
make[3]: *** [package/kernel/linux/compile] Error 2
make[3]: Leaving directory `/home/user/gargoyle/mvebu-src'
make[2]: *** [/home/user/gargoyle/mvebu-src/staging_dir/target-arm_cortex-a9+vfp                                            v3_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/user/gargoyle/mvebu-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/user/gargoyle/mvebu-src'

Lantis
Moderator
Posts: 4955
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: build errors

Postby Lantis » Tue Jan 12, 2016 11:40 pm

Yea.

Its kind of complicated to write a patch for!

My current (really terrible) work around is to start the build process, watch the output until the netfilter scripts have all run, and then go into
/*-src/package/kernel/linux/modules/netfilter.mk
and change the depends for the layer7 module from

Code: Select all

DEPENDS:= kmod-ipt-core

to

Code: Select all

DEPENDS:= +kmod-ipt-core +kmod-ipt-conntrack


Now for your situation where you are going to be building multiple platforms, this is going to be a really bad solution for you.
In this case, i believe the solution is to modify the gargoyle source files.

/netfilter-match-modules/integrate_netfilter_modules.sh
Line 297

Code: Select all

      echo "   DEPENDS:= kmod-ipt-core" >>../"$kernel_netfilter_mk"

should now become

Code: Select all

      echo "   DEPENDS:= +kmod-ipt-core +kmod-ipt-conntrack" >>../"$kernel_netfilter_mk"

The problem with this solution though, is that this adds kmod-ipt-conntrack as a dependency for not only the layer7 module (the issue), but also the 4 other custom modules that eric has added in. I don't know the consequences of this.


Anyway i hope this points you in the right direction, but it may be something to discuss with Eric.
We were discussing it https://github.com/ericpaulbishop/gargo ... c4d74dab37
in the comments section
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

Lantis
Moderator
Posts: 4955
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: build errors

Postby Lantis » Tue Jan 12, 2016 11:42 pm

I guess we could make a conditional IF statement that checks if "new_d" is the "layer7" module and then changes it only.
I'm currently unavailable but i might test if this idea works this evening and submit a patch if it does.

Also i merged the two topics into one as they are about the exact same issue.
Lantis
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

Lantis
Moderator
Posts: 4955
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: build errors

Postby Lantis » Wed Jan 13, 2016 4:17 am

https://github.com/ericpaulbishop/gargoyle/pull/438

i have fixed the issue if you wish to apply the change manually.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

User avatar
djt_nz
Posts: 26
Joined: Mon May 07, 2012 1:00 am
Location: New Zealand

Re: build errors

Postby djt_nz » Wed Jan 13, 2016 6:04 pm

@Lantis I see your changes have been pulled into the main trunk. :)

I started a new build, but had an error downloading the ca-certificates for package ca-certificates-combined.
It appears ca-certificates version 20151214 is no longer available from http://ftp.debian.org/debian/pool/main/ ... rtificates

I've change the Makefile to use version 20160104. We will see what happens.
Building is continuing....

Update
Both a custom build and ar71xx.usb build have complete.
Haven't test any images yet.
TL-WR1043ND V1.8 (Gargoyle 1.7.X git@701d7f5) djt build


Return to “Show / Tell / Contribute”

Who is online

Users browsing this forum: No registered users and 2 guests