Cannot build from src-rt-5.02axhnd RT-AX88U (master branch)

adv3

Occasional Visitor
after merging 386.8 cannot build from the source:

make RT-AX88U
....
....
make -C /home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd/kernel/linux-4.1 oldnoconfig && \
true && \
touch prek;
make[4]: Entering directory '/home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd/kernel/linux-4.1'
make[5]: '../../.config' is up to date.
scripts/kconfig/conf --olddefconfig Kconfig
../../bcmdrivers/Kconfig.autogen:2: syntax error
Kconfig.bcm:1596: missing end statement for this entry
Kconfig.bcm:3: missing end statement for this entry
Kconfig:15: missing end statement for this entry
../../bcmdrivers/Kconfig.autogen:1: invalid statement
Kconfig.bcm:1598: unexpected end statement
Kconfig.bcm:1600: unexpected end statement
Kconfig:20: unexpected end statement
make[5]: *** [scripts/kconfig/Makefile:84: olddefconfig] Error 1
make[4]: *** [Makefile:573: oldnoconfig] Error 2
make[4]: Leaving directory '/home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd/kernel/linux-4.1'
make[3]: *** [make.hndrt:455: prek] Error 2
make[3]: Leaving directory '/home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd'
make[2]: *** [Makefile:5876: setprofile] Error 2
make[2]: Leaving directory '/home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd'
make[1]: *** [Makefile:5616: bin] Error 2
make[1]: Leaving directory '/home/env/asuswrt-merlin.ng/release/src-rt-5.02axhnd'
make: *** [Makefile:5825: RT-AX88U] Error 2


any clues, suggestions?
 

pAP3R

New Around Here
Make sure you've selected "No" when you
Code:
sudo dpkg-reconfigure dash
-- I also saw this link which suggested symlinking bash to sh (Google Translate: https://www-cnblogs-com.translate.g...sl=zh-CN&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=sc )

Reconfiguring dpkg dash and selecting "No" was my fix though

EDIT / UPDATE:

Uh, well that fixed the first error, now I have another:

Code:
...
configure.ac:938: warning: macro 'AM_PATH_GPGME' not found in library
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/tester/amng-build/release/src/router/wget/build-aux/missing autoconf
cd . && /bin/sh /home/tester/amng-build/release/src/router/wget/build-aux/missing automake-1.16 --gnu
configure.ac:33: error: possibly undefined macro: AX_CODE_COVERAGE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make[7]: *** [Makefile:1725: configure] Error 1
make[7]: *** Waiting for unfinished jobs....
make[7]: Leaving directory '/home/tester/amng-build/release/src/router/wget'
make[6]: *** [Makefile:7268: wget] Error 2
make[6]: Leaving directory '/home/tester/amng-build/release/src/router'
make[5]: *** [Makefile:30: router_all] Error 2
make[5]: Leaving directory '/home/tester/amng-build/release/src-rt-5.02axhnd/userspace'
make[4]: *** [make.hndrt:329: userspace] Error 2
make[4]: Leaving directory '/home/tester/amng-build/release/src-rt-5.02axhnd'
make[3]: *** [make.hndrt:115: parallel_targets] Error 2
make[3]: Leaving directory '/home/tester/amng-build/release/src-rt-5.02axhnd'
make[2]: *** [Makefile:695: all] Error 2
make[2]: Leaving directory '/home/tester/amng-build/release/src-rt-5.02axhnd'
make[1]: *** [Makefile:5617: bin] Error 2
make[1]: Leaving directory '/home/tester/amng-build/release/src-rt-5.02axhnd'
make: *** [Makefile:5825: rt-ax88u] Error 2

Double Edit:

Resolved that by installing autoconf-archive
 
Last edited:

adv3

Occasional Visitor
thanks!
wiki is pretty outdated. after a lot of additional installations I got next error:

Code:
Untarring xz-5.0.3 source...

XZ Utils 5.0.3

System type:
checking build system type... build-aux/config.guess: unable to guess system type

This script, last modified 2009-11-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (build-aux/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-11-20

uname -m = aarch64
uname -r = 5.15.0-46-generic
uname -s = Linux
uname -v = #49-Ubuntu SMP Thu Aug 4 18:08:11 UTC 2022

/usr/bin/uname -p = aarch64
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = aarch64
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = aarch64
UNAME_RELEASE = 5.15.0-46-generic
UNAME_SYSTEM  = Linux
UNAME_VERSION = #49-Ubuntu SMP Thu Aug 4 18:08:11 UTC 2022
configure: error: cannot guess build type; you must specify one
make[3]: *** [Makefile:148: config_xz-5.0.3] Error 1
make[3]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd/hostTools'
make[2]: *** [make.hndrt:725: hosttools] Error 2
make[2]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd'
make[1]: *** [Makefile:5617: bin] Error 2
make[1]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd'
make: *** [Makefile:5825: rt-ax88u] Error 2

upd. added --build=aarch64-unknown-linux-gnu to Makefile (in hostTools), compilation went further, got another error:

Code:
/usr/bin/ld: mksquashfs.o: in function `scan1_single_readdir':
mksquashfs.c:(.text+0x214): undefined reference to `add_dir_entry'
/usr/bin/ld: mksquashfs.o: in function `scan1_encomp_readdir':
mksquashfs.c:(.text+0x79d4): undefined reference to `add_dir_entry'
/usr/bin/ld: mksquashfs.o: in function `dir_scan2':
mksquashfs.c:(.text+0x840c): undefined reference to `add_dir_entry'
/usr/bin/ld: mksquashfs.c:(.text+0x8554): undefined reference to `add_dir_entry'
/usr/bin/ld: mksquashfs.o: in function `dir_scan1':
mksquashfs.c:(.text+0xa4a4): undefined reference to `add_dir_entry'
/usr/bin/ld: mksquashfs.o:mksquashfs.c:(.text+0xa5c8): more undefined references to `add_dir_entry' follow
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:209: mksquashfs] Error 1
make[4]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd/hostTools/squashfs_4.2'
make[3]: *** [Makefile:166: mksquashfs] Error 2
make[3]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd/hostTools'
make[2]: *** [make.hndrt:725: hosttools] Error 2
make[2]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd'
make[1]: *** [Makefile:5617: bin] Error 2
make[1]: Leaving directory '/home/parallels/amng.ax88/release/src-rt-5.02axhnd'
make: *** [Makefile:5825: rt-ax88u] Error 2

any suggestions?
 
Last edited:

adv3

Occasional Visitor
manual configuration is not working for me, unfortunately. trying to use amcfwm (thanks to @Adamm !), but getting the error above

Ubuntu 22.04 arm64 - VM is on Mac M1.
@RMerlin can it be the reason of these failures?
 
Last edited:

RMerlin

Asuswrt-Merlin dev
manual configuration is not working for me, unfortunately. trying to use amcfwm (thanks to @Adamm !), but getting the error above

Ubuntu 22.04 arm64 - VM is on Mac M1.
@RMerlin can it be the reason of these failures?
I don't know, I haven't tested Ubuntu 22.04, I use 20.04 here.
 

pAP3R

New Around Here
I'm not sure on the Mac instructions, but the instructions for building from source for Linux are accurate-- I too am using Ubuntu 20.04.3 LTS and as above, needed to validate my Dash was set to 'No' and that I apt installed autoconf-archive; 20.04 seems reliable.
 

adv3

Occasional Visitor
the thing is that I'm using the ARM64 version of Ubuntu. tested both 20.04 and 22.04. it seems I need AMD64, and run my VM on Windows laptop
 

pAP3R

New Around Here
You sure you set up your toolchain correctly? Might be worth restarting from the beginning if you're not sure, only takes a few!
 

adv3

Occasional Visitor
yes, I'm. without toolchain it wouldn't go further. several times I've started from the beginning. will try AMD64 version
 

RMerlin

Asuswrt-Merlin dev
I know that the toolchain requires 32-bit versions of some of the libraries to be installed even if the OS itself is 64-bit, so that might also extend to these having to be x86 and not working with ARM versions.
 

adv3

Occasional Visitor
I've added them by
Code:
sudo dpkg --add-architecture i386
at the beginning, but it only seems to work halfway
 

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