tessel/openwrt-tessel

Build system fails

nodebotanist opened this issue · 3 comments

The build system is attempting to reach files that no longer exist and as mentioned in #78 uses the -rc2 packages, which we shouldn't.

I am working on changing what needs to be changed to build on Linux (Ubuntu 18.04) successfully.

@rwaldron @johnnyman727 Any tips on what's needed to build openwrt-tessel?

Issues found so far when removing -rc2 from the version of openwrt:

  • [SOLVED] The ccache version we were using (3.1.9) didn't have a file on OpenWRT source anymore. I updated the version to 3.1.11 and the md5 hash accordingly
  • something about the following checkfor git-core in include/prereq-build lines 146-147 fails:
    $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.6.5, \
        git clone 2>&1 | grep -- --recursive))
    
    even though when I run git --version I get 2.7.2. Commenting it out lets the build continue.
  • Line 27 of openwrt/tools/automake/Makefile throws a regex error that I'm having trouble debugging: mostly because commenting it out seems to allowed the build to continue and then even when I un-commented it the build ran past that point.
  • Currently dealing with the following error, I think I'm getting close to the end:
    Can't locate /home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15/bin/aclocal at /home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15/t/wrap/aclocal-1.15 line 31. Makefile:2470: recipe for target 'aclocal.m4' failed

I'd like to figure out what the issue is and fix it rather than leave these commented out. Looking into it.

Found the regex error message:

touch /home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15/.prepareda3ee926ed7d50d1bbea4d5ea6960f09e
(cd /home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15; AUTOM4TE=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/autom4te AUTOCONF=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/autoconf AUTOMAKE=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/automake ACLOCAL=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/libtoolize LIBTOOL=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/libtool M4=/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/host/bin/m4 AUTOPOINT=true STAGING_DIR="" ./bootstrap.sh)
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at ./bin/automake.tmp line 3938.
Makefile:50: recipe for target '/home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15/.configured' failed
make[4]: *** [/home/nodebotanist/openwrt-tessel/openwrt/build_dir/host/automake-1.15/.configured] Error 255
make[4]: Leaving directory '/home/nodebotanist/openwrt-tessel/openwrt/tools/automake'
tools/Makefile:122: recipe for target 'tools/automake/compile' failed
make[3]: *** [tools/automake/compile] Error 2
make[3]: Leaving directory '/home/nodebotanist/openwrt-tessel/openwrt'
tools/Makefile:121: recipe for target '/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy' failed
make[2]: *** [/home/nodebotanist/openwrt-tessel/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2
make[2]: Leaving directory '/home/nodebotanist/openwrt-tessel/openwrt'
/home/nodebotanist/openwrt-tessel/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/nodebotanist/openwrt-tessel/openwrt'
Makefile:44: recipe for target 'world' failed
make: *** [world] Error 2