Unable to build firmware on Ubuntu 16

I am new to wrtnode project and I have wrtnode1 old board.
I would like to build a firmware.
I have downloaded the static sdk and followed the instructions.
When I run make V=s -j1 I got the following error

make[5]: Entering directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8'
cd .; CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
config.status: creating ./lib/blkid/blkid_types.h
config.status: creating lib/config.h
config.status: lib/config.h is unchanged
config.status: executing default-1 commands
make[5]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8'
make[5]: Entering directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8'
cd .; CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
config.status: creating ./lib/uuid/uuid_types.h
config.status: creating lib/config.h
config.status: lib/config.h is unchanged
config.status: executing default-1 commands
make[5]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8'
make[5]: Entering directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/lib/et'
SUBST compile_et
make[5]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/lib/et'
make[5]: Entering directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/lib/ext2fs'
SUBST ext2_err.et
COMPILE_ET ext2_err.et
chmod: ext2_err.h: new permissions are r-xrwxrwx, not r-xr-xr-x
chmod: ext2_err.c: new permissions are r-xrwxrwx, not r-xr-xr-x
Makefile:502: recipe for target 'ext2_err.h' failed
make[5]: *** [ext2_err.h] Error 1
make[5]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/lib/ext2fs'
Makefile:298: recipe for target 'subs' failed
make[4]: *** [subs] Error 2
make[4]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8'
Makefile:52: recipe for target '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/.built' failed
make[3]: *** [/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/build_dir/host/e2fsprogs-1.42.8/.built] Error 2
make[3]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/tools/e2fsprogs'
tools/Makefile:157: recipe for target 'tools/e2fsprogs/compile' failed
make[2]: *** [tools/e2fsprogs/compile] Error 2
make[2]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode'
tools/Makefile:156: recipe for target '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyynyyyyyyyynyyyynnyyynnyynnnyyyy' failed
make[1]: *** [/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyynyyyyyyyynyyyynnyyynnyynnnyyyy] Error 2
make[1]: Leaving directory '/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode'
/media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
已邀请:

xzmu - 10w

赞同来自:

maybe you should try this source http://github.com/wrtnode/openwrt

Zsolo

赞同来自:

I have also tried the git variant and I have new installed Ubunt 17.10 and I got the following error:
 
media/media/WD_MEDIA/LINUX/dev/wrtnode/staticsdk/wrtnode/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

xzmu - 10w

赞同来自:

please provide more error log, otherwise i can't help you with these few log

Zsolo

赞同来自:

It looks like it has a reqex error

make[5]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/po'
Making install in tests
make[5]: Entering directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/tests'
make[6]: Entering directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/tests'
make[6]: Nothing to be done for 'install-exec-am'.
make[6]: Nothing to be done for 'install-data-am'.
make[6]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/tests'
make[5]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/tests'
make[5]: Entering directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1'
make[6]: Entering directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1'
make[6]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz'
 /usr/bin/install -c -m 644 AUTHORS COPYING COPYING.GPLv2 NEWS README THANKS TODO doc/faq.txt doc/history.txt doc/xz-file-format.txt doc/lzma-file-format.txt '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz'
 /bin/mkdir -p '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz/examples'
 /usr/bin/install -c -m 644 doc/examples/00_README.txt doc/examples/01_compress_easy.c doc/examples/02_decompress.c doc/examples/03_compress_custom.c doc/examples/04_compress_easy_mt.c doc/examples/Makefile '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz/examples'
 /bin/mkdir -p '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz/examples_old'
 /usr/bin/install -c -m 644 doc/examples_old/xz_pipe_comp.c doc/examples_old/xz_pipe_decomp.c '/home/embedded/dev/wrtnode/openwrt/staging_dir/host/share/doc/xz/examples_old'
make[6]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1'
make[5]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1'
make[4]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1'
mkdir -p /home/embedded/dev/wrtnode/openwrt/staging_dir/host/stamp
touch /home/embedded/dev/wrtnode/openwrt/build_dir/host/xz-5.2.1/.built
touch /home/embedded/dev/wrtnode/openwrt/staging_dir/host/stamp/.xz_installed
make[3]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/tools/xz'
make[3]: Entering directory '/home/embedded/dev/wrtnode/openwrt/tools/automake'
. /home/embedded/dev/wrtnode/openwrt/include/shell.sh; xzcat /home/embedded/dev/wrtnode/openwrt/dl/automake-1.15.tar.xz | tar -C /home/embedded/dev/wrtnode/openwrt/build_dir/host/automake-1.15/.. -xf -

Applying ./patches/000-relocatable.patch using plaintext:
patching file lib/Automake/Config.in
patching file bin/aclocal.in
patching file bin/automake.in
patching file t/wrap/aclocal.in
patching file t/wrap/automake.in

Applying ./patches/100-aclocal-skip-not-existing-directories.patch using plaintext:
patching file bin/aclocal.in

Applying ./patches/200-do-not-override-silent-rules.patch using plaintext:
patching file m4/silent.m4
touch /home/embedded/dev/wrtnode/openwrt/build_dir/host/automake-1.15/.prepared36be169bea4c3d27ea4f597781040860
(cd /home/embedded/dev/wrtnode/openwrt/build_dir/host/automake-1.15; AUTOM4TE=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/autom4te AUTOCONF=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/autoconf AUTOMAKE=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/automake ACLOCAL=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/libtoolize LIBTOOL=/home/embedded/dev/wrtnode/openwrt/staging_dir/host/bin/libtool M4=/home/embedded/dev/wrtnode/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/embedded/dev/wrtnode/openwrt/build_dir/host/automake-1.15/.configured' failed
make[3]: *** [/home/embedded/dev/wrtnode/openwrt/build_dir/host/automake-1.15/.configured] Error 255
make[3]: Leaving directory '/home/embedded/dev/wrtnode/openwrt/tools/automake'
tools/Makefile:122: recipe for target 'tools/automake/compile' failed
make[2]: *** [tools/automake/compile] Error 2
make[2]: Leaving directory '/home/embedded/dev/wrtnode/openwrt'
tools/Makefile:121: recipe for target '/home/embedded/dev/wrtnode/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy' failed
make[1]: *** [/home/embedded/dev/wrtnode/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2
make[1]: Leaving directory '/home/embedded/dev/wrtnode/openwrt'
/home/embedded/dev/wrtnode/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2



btw
which are the correct build steps?
I did  following:
git clone ..
make distclean
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
select wrtnode1
make V=s
 
Before the make do I need 
make defconfig or not?
 
EDIT:
it is that reqex, where is it comming from?
# Replace any occurrence of ${FOO} in $TEXT by @FOO@ if FOO is an AC_SUBST
# variable.
sub substitute_ac_subst_variables
{
  my ($text) = @_;
  $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
  return $text;
}

xzmu - 10w

赞同来自:

maybe you should try compile git source under ubuntu 16.04 not 17.10.
 
i use debian 8 as my compile system,maybe you can try it too

Zsolo

赞同来自:

Ubuntu 16-04 has same error
 
I will try to install Debian 8 Virtualbox

要回复问题请先登录注册