What's new
  • 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!

Building current release for RT-AC56U fails

qus

New Around Here
Hello,

Due to firmware bug of my fresh IcyDock, I need to patch some code and compile my own Merlin. I'm using this guide:

https://github.com/RMerl/asuswrt-merlin/wiki/Compile-Firmware-from-source-using-Ubuntu

Unfortunately the "manual" way (with just make) fails with:

make[7]: Entering directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/src'
/bin/bash ../libtool --tag=CC --mode=link arm-brcm-linux-uclibcgnueabi-gcc -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../sqlite -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../pcre-8.31 -I./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/include -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../sqlite -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../curl-7.21.7/include -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../../include -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../nvram_arm -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../shared -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libdisk -DHAVE_OPENSSL_SSL_H=1 -DHAVE_LIBSSL=1 -DEMBEDDED_EANBLE=1 -Wall -W -Wshadow -pedantic -std=gnu99 -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../samba-3.5.8/source3/include -I/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libxml2/include -module -export-dynamic -avoid-version -no-undefined -L./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib -ldl -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../pcre-8.31/.libs -lpcre -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libxml2/.libs -lxml2 -lm -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../openssl -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../curl-7.21.7/lib/.libs -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../openssl/lib -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../openssl/ -o liblightsql.la -rpath /root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/_inst/lib liblightsql_la-sql.lo -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../sqlite/.libs -lsqlite3 -L./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../shared -lshared -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../nvram_arm -lnvram -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libdisk -ldisk -lpthread -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../openssl -lcrypto -lssl -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../curl-7.21.7/lib/.libs -lcurl -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libxml2/.libs -lxml2 -lpthread -dl -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../samba-3.5.8/source3/bin -lsmbclient -L/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/../libxml2/.libs -lxml2 -lm
../libtool: line 5986: cd: ./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib'
make[7]: *** [liblightsql.la] Error 1
make[7]: Leaving directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/src'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29'
make[3]: *** [lighttpd-1.4.29] Error 2
make[3]: Leaving directory `/root/asuswrt-merlin/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/asuswrt-merlin/release/src-rt-6.x.4708'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/root/asuswrt-merlin/release/src-rt-6.x.4708'
make: *** [default] Error 2

And the automated (with debian-build-image) fails with... erm... just finished... exactly the same error.

Build environments were always my nightmate, I'm make-illiterate. Any help would be appreciated!
 
It's all in there:

line 5986: cd: ./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib'
 
It's all in there:

line 5986: cd: ./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `./release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib'

Indeed, it is. But it doesn't say how to fix it, or am I partially blind? If it is complaining about missing uclibc for arm architecture how do I install it?

But the real problem is this very directory exists:

oot@Ubuntu:~/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/lib# ls -al
total 4080
drwxr-xr-x 4 root root 4096 sie 8 08:35 .
drwxr-xr-x 8 root root 4096 sie 8 08:35 ..
drwxr-xr-x 3 root root 4096 sie 8 08:35 gcc
drwxr-xr-x 2 root root 4096 sie 8 08:35 ldscripts
-rwxr-xr-x 1 root root 21388 sie 8 08:35 ld-uClibc-0.9.32.1.so
-rwxr-xr-x 1 root root 21388 sie 8 08:35 ld-uClibc.so.0
-rw-r--r-- 1 root root 1391212 sie 8 08:35 libc.a
-rwxr-xr-x 1 root root 13195 sie 8 08:35 libcrypt-0.9.32.1.so
-rwxr-xr-x 1 root root 13195 sie 8 08:35 libcrypt.so.0
-rwxr-xr-x 1 root root 440575 sie 8 08:35 libc.so
lrwxrwxrwx 1 root root 21 sie 8 08:35 libc.so.0 -> libuClibc-0.9.32.1.so
-rwxr-xr-x 1 root root 9203 sie 8 08:35 libdl-0.9.32.1.so
-rwxr-xr-x 1 root root 9203 sie 8 08:35 libdl.so.0
-rw-r--r-- 1 root root 135 sie 8 08:35 libgcc_s.so
-rw-r--r-- 1 root root 181180 sie 8 08:35 libgcc_s.so.1
-rwxr-xr-x 1 root root 1102 sie 8 08:35 libgmp.la
lrwxrwxrwx 1 root root 16 sie 8 08:35 libgmp.so -> libgmp.so.10.0.2
lrwxrwxrwx 1 root root 16 sie 8 08:35 libgmp.so.10 -> libgmp.so.10.0.2
-rwxr-xr-x 1 root root 434829 sie 8 08:35 libgmp.so.10.0.2
-rw-r--r-- 1 root root 228346 sie 8 08:35 libiberty.a
-rwxr-xr-x 1 root root 1107 sie 8 08:35 libltdl.la
lrwxrwxrwx 1 root root 16 sie 8 08:35 libltdl.so -> libltdl.so.7.2.2
lrwxrwxrwx 1 root root 16 sie 8 08:35 libltdl.so.7 -> libltdl.so.7.2.2
-rwxr-xr-x 1 root root 37335 sie 8 08:35 libltdl.so.7.2.2
-rwxr-xr-x 1 root root 68623 sie 8 08:35 libm-0.9.32.1.so
-rwxr-xr-x 1 root root 1259 sie 8 08:35 libmpc.la
lrwxrwxrwx 1 root root 15 sie 8 08:35 libmpc.so -> libmpc.so.2.0.0
lrwxrwxrwx 1 root root 15 sie 8 08:35 libmpc.so.2 -> libmpc.so.2.0.0
-rwxr-xr-x 1 root root 89375 sie 8 08:35 libmpc.so.2.0.0
-rwxr-xr-x 1 root root 1199 sie 8 08:35 libmpfr.la
lrwxrwxrwx 1 root root 16 sie 8 08:35 libmpfr.so -> libmpfr.so.4.0.1
lrwxrwxrwx 1 root root 16 sie 8 08:35 libmpfr.so.4 -> libmpfr.so.4.0.1
-rwxr-xr-x 1 root root 362124 sie 8 08:35 libmpfr.so.4.0.1
-rwxr-xr-x 1 root root 68623 sie 8 08:35 libm.so.0
-rwxr-xr-x 1 root root 4772 sie 8 08:35 libnsl-0.9.32.1.so
-rwxr-xr-x 1 root root 4772 sie 8 08:35 libnsl.so.0
-rwxr-xr-x 1 root root 83619 sie 8 08:35 libpthread-0.9.32.1.so
-rwxr-xr-x 1 root root 83619 sie 8 08:35 libpthread.so.0
-rwxr-xr-x 1 root root 4776 sie 8 08:35 libresolv-0.9.32.1.so
-rwxr-xr-x 1 root root 4776 sie 8 08:35 libresolv.so.0
-rwxr-xr-x 1 root root 5051 sie 8 08:35 librt-0.9.32.1.so
-rwxr-xr-x 1 root root 5051 sie 8 08:35 librt.so.0
-rwxr-xr-x 1 root root 13907 sie 8 08:35 libthread_db-0.9.32.1.so
-rwxr-xr-x 1 root root 13907 sie 8 08:35 libthread_db.so.1
-rwxr-xr-x 1 root root 440575 sie 8 08:35 libuClibc-0.9.32.1.so
-rwxr-xr-x 1 root root 4955 sie 8 08:35 libutil-0.9.32.1.so
-rwxr-xr-x 1 root root 4955 sie 8 08:35 libutil.so.0
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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