What's new

RT-AC68U master branch compile error

  • 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!

eldi0s

New Around Here
Hi,

I was using Merlin builds for years, now trying to compile my own one, but stuck with the below error message.

Build system is a fresh install of x64 Ubuntu 20.04 LTS on a VM, followed the Wiki and installed all x86 libs. Also tried different
distros and the docker image. The result is always the same.

I get an error from busybox/coreutils stating that "rm.c" cannot find "rtconfig.h" which I got resolved replacing the include
reference with a hard link to the file.

rm.c
Code:
#include <rtconfig.h>
was replaced by
Code:
#include "/root/asuswrt-merlin.ng/release/src/router/shared/rtconfig.h"

Now I'm stuck with this and really have no clue how to get over it:

Code:
 [shared] CC stun.o
 [shared] CC scripts.o
#nothing to do...
 [shared] CC timer_utils.o
 [shared] CC bcmwifi_channels.o
 [shared] CC wl.o
 [shared] CC wl_linux.o
 [shared] CC broadcom.o
make[5]: *** No rule to make target 'api-broadcom.c', needed by 'api-broadcom.o'.  Stop.
make[5]: Leaving directory '/root/asuswrt-merlin.ng/release/src/router/shared'
make[4]: *** [Makefile:3874: shared] Error 2
make[4]: Leaving directory '/root/asuswrt-merlin.ng/release/src/router'
make[3]: *** [Makefile:1874: obj_prelibs] Error 2
make[3]: Leaving directory '/root/asuswrt-merlin.ng/release/src/router'
make[2]: *** [Makefile:714: all] Error 2
make[2]: Leaving directory '/root/asuswrt-merlin.ng/release/src-rt-6.x.4708'
make[1]: *** [Makefile:5932: bin] Error 2
make[1]: Leaving directory '/root/asuswrt-merlin.ng/release/src-rt-6.x.4708'
make: *** [Makefile:6144: rt-ac68u] Error 2

Anyones advice would really be appreciated?

THX
 
Last edited:
You have to checkout the 386_x branch to compile the older routers.
 
That did it. THX

Maybe this should be added to the WIKI.

For older routers like RT-AC68U
Code:
cd $HOME
git clone https://github.com/RMerl/am-toolchains
git clone -b 386_x https://github.com/RMerl/asuswrt-merlin.ng
 
Maybe this should be added to the WIKI.
No, because branches can change at any time throughout development. For example the 388.1 required one particular model to be built from 388_20566. 388.2_1 requires another model to be built from 22668.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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