What's new

Error building from sources

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

atomizasser

New Around Here
Hello all

I'm trying to compile master branch for RT-AC68U following @Fitz Mutch instrucctions, but at somepoint i get an error:

Code:
make[6]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21/sample'
Making all in test
make[6]: Entering directory '/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21/test'
Makefile:467: .deps/test-weof.Po: No such file or directory
make[6]: *** No rule to make target '.deps/test-weof.Po'.  Stop.
make[6]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21/test'
make[5]: *** [Makefile:986: all-recursive] Error 1
make[5]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21'
make[4]: *** [Makefile:706: all] Error 2
make[4]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21'
make[3]: *** [Makefile:3949: libevent-2.0.21] Error 2
make[3]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src/router'
make[2]: *** [Makefile:431: all] Error 2
make[2]: Leaving directory '/home/imac/asuswrt-merlin.ng-build/release/src-rt-6.x.4708'

Anyone can help me to solve it? Thanks.
 
This seems to only happen with newer linux distros, for example, ok with ubuntu 14.04 but fails on fedora 30. To fix it I edited
/home/imac/asuswrt-merlin.ng-build/release/src/router/libevent-2.0.21/test/Makefile.am and changed all occurrences of "top_srcdir" to "top_builddir". I think there were around 4 places where this was needed. On next clean build the dependency files in .../test/.deps/ are produced and the build continues.

Here's the diff:
Code:
diff --git a/release/src/router/libevent-2.0.21/test/Makefile.am b/release/src/router/libevent-2.0.21/test/Makefile.am
index b10c41a889..937fc7e72b 100644
--- a/release/src/router/libevent-2.0.21/test/Makefile.am
+++ b/release/src/router/libevent-2.0.21/test/Makefile.am
@@ -6,7 +6,7 @@

 AUTOMAKE_OPTIONS = foreign

-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL
+AM_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/compat -I$(top_builddir)/include -I../include -DTINYTEST_LOCAL

 EXTRA_DIST = regress.rpc regress.gen.h regress.gen.c rpcgen_wrapper.sh test.sh

@@ -19,7 +19,7 @@ endif
 EXTRA_PROGRAMS = regress
 noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h

-TESTS = $(top_srcdir)/test/test.sh
+TESTS = $(top_builddir)/test/test.sh

 BUILT_SOURCES =
 if BUILD_REGRESS
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top