What's new

Problem with compile RT-AC88U-please help

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

Piter

Regular Contributor
Hi
I done all as is describe in wiki and i have a problem with building image RT-AC88U

kernel

(echo '.NOTPARALLEL:' ; cat /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/Makefile) |\
make -C /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 -f - SRCBASE=/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src BASEDIR=/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x ARCH=arm zImage
make[4]: Wejście do katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
scripts/kconfig/conf --silentoldconfig arch/arm/Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
awk: symbol lookup error: awk: undefined symbol: mpfr_z_sub
/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/arch/arm/tools/Makefile:8: polecenia dla obiektu 'include/generated/mach-types.h' nie powiodły się
make[5]: *** [include/generated/mach-types.h] Błąd 1
/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/arch/arm/Makefile:285: polecenia dla obiektu 'archprepare' nie powiodły się
make[4]: *** [archprepare] Błąd 2
make[4]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
Makefile:805: polecenia dla obiektu 'kernel' nie powiodły się
make[3]: *** [kernel] Błąd 2
make[3]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src/router'
Makefile:193: polecenia dla obiektu 'all' nie powiodły się
make[2]: *** [all] Błąd 2
make[2]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src'
Makefile:2569: polecenia dla obiektu 'bin' nie powiodły się
make[1]: *** [bin] Błąd 2
make[1]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src'
Makefile:2639: polecenia dla obiektu 'rt-ac88u' nie powiodły się
make: *** [rt-ac88u] Błąd 2
root@VM-Ubuntu:/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src#

Please help me. I am begginer user linux.
 
Try a Google search on your error message - lots of people having similar problems with their Linux machine caused by having an incompatible version of libmpr installed. Make sure you didn't install either a third party awk or a third party libgmp on your development environment.
 
i installed by command apt-get install libgmp3-dev
Then again try compilation and compilation works longer time but still have error:

libupnp_arm_7114
make[5]: Wejście do katalogu '/home/piotrek/asuswrt-merlin/release/src/router/libupnp_arm_7114'
echo use prebuilt
use prebuilt
cp -f ./prebuilt/libupnp.so .
make[5]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src/router/libupnp_arm_7114'
libbcmcrypto
make[5]: Wejście do katalogu '/home/piotrek/asuswrt-merlin/release/src/router/libbcmcrypto'
find: `/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/arm-uclibc/target': Nie ma takiego pliku ani katalogu
arm-brcm-linux-uclibcgnueabi-ld -shared -o libbcmcrypto.so /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/aes.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/aeskeywrap.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/rijndael-alg-fst.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/dh.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/bn.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/sha1.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/passhash.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/prf.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/md5.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/hmac.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/rc4.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/random.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/sha256.o /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/router/libbcmcrypto/prebuilt.arm/hmac_sha256.o
make[5]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src/router/libbcmcrypto'
make[4]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src/router'
echo "\033[41;1m kernel \033[0m"
kernel
(echo '.NOTPARALLEL:' ; cat /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/Makefile) |\
make -C /home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 -f - SRCBASE=/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src BASEDIR=/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x ARCH=arm zImage
make[4]: Wejście do katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
scripts/kconfig/conf --silentoldconfig arch/arm/Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Generating include/generated/mach-types.h
awk: symbol lookup error: awk: undefined symbol: mpfr_z_sub
/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/arch/arm/tools/Makefile:8: polecenia dla obiektu 'include/generated/mach-types.h' nie powiodły się
make[5]: *** [include/generated/mach-types.h] Błąd 1
/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36/arch/arm/Makefile:285: polecenia dla obiektu 'archprepare' nie powiodły się
make[4]: *** [archprepare] Błąd 2
make[4]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
Makefile:805: polecenia dla obiektu 'kernel' nie powiodły się
make[3]: *** [kernel] Błąd 2
make[3]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src/router'
Makefile:193: polecenia dla obiektu 'all' nie powiodły się
make[2]: *** [all] Błąd 2
make[2]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src'
Makefile:2569: polecenia dla obiektu 'bin' nie powiodły się
make[1]: *** [bin] Błąd 2
make[1]: Opuszczenie katalogu '/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src'
Makefile:2639: polecenia dla obiektu 'rt-ac88u' nie powiodły się
make: *** [rt-ac88u] Błąd 2
root@VM-Ubuntu:/home/piotrek/asuswrt-merlin/release/src-rt-7.14.114.x/src#
 
If you start with the recommended build environment, it will save you much time.

For Asuswrt-Merlin, start with a Linux Mint 13 VM since that's what Merlin uses. I just compiled 380.61 for RT-AC88U and it built just fine.

If you build the Entware-NG repo, start with a Debian Linux VM since that's what's recommended. Don't try to use one development VM for everything.
 
Ubuntu 16.04 LTS is also compatible - I switched to it a few months ago.
 
On ubuntu i have still error as i describe...
 
I have installed libltdl-dev in version 2.4.6-0.1
 
Anybody can help me please ?
 
I've also encountered this problem when trying to recompile the kernel for some extra modules (sound, uvc etc.). You need to replace the existing "libmpfr.so.4" (from the asuswrt-merlin/src-rt-xxx/release/toolchains/.../lib) with the one inside /usr/lib/i386-linux-gnu, for Ubuntu 16.04 LTS (or a simlink pointing to it). See: https://github.com/pavel-demin/red-pitaya-notes/issues/426
Merry Christmas!
 

Similar threads

Latest threads

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