What's new

Compiling errors.

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

johnnyboy

Occasional Visitor
Compiling errors. [SOLVED]

Hi, when I compile the asuswrt-Merlin master source code rt-ac68u, I got following error messages:

Code:
   nvram_arm
make[4]: Entering directory `/root/asuswrt-merlin/release/src/router/nvram_arm'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/asuswrt-merlin/release/src/router/nvram_arm'
make iptables-1.4.x-configure
make[4]: Entering directory `/root/asuswrt-merlin/release/src/router'
( cd iptables-1.4.x ; \
                ./configure --host=arm-linux --build=i486-linux-gnu \
                --prefix=/usr \
                --bindir=/usr/sbin \
                --libdir=/usr/lib \
                --enable-ipv6 \
                --with-kernel=/root/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6.36 \
        )
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-brcm-linux-uclibcgnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-gcc... arm-brcm-linux-uclibcgnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-brcm-linux-uclibcgnueabi-gcc accepts -g... yes
checking for arm-brcm-linux-uclibcgnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-brcm-linux-uclibcgnueabi-gcc... gcc3
checking whether arm-brcm-linux-uclibcgnueabi-gcc and cc understand -c and -o together... yes
./configure: line 3892: AC_DISABLE_STATIC: command not found
./configure: line 3893: AM_PROG_LIBTOOL: command not found
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether arm-brcm-linux-uclibcgnueabi-ld knows -Wl,--no-undefined... yes
checking how to run the C preprocessor... arm-brcm-linux-uclibcgnueabi-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/dccp.h usability... yes
checking linux/dccp.h presence... yes
checking for linux/dccp.h... yes
checking linux/ip_vs.h usability... yes
checking linux/ip_vs.h presence... yes
checking for linux/ip_vs.h... yes
checking linux/magic.h usability... yes
checking linux/magic.h presence... yes
checking for linux/magic.h... yes
checking linux/proc_fs.h usability... no
checking linux/proc_fs.h presence... no
checking for linux/proc_fs.h... no
checking size of struct ip6_hdr... 40
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for libnfnetlink... no
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make[4]: *** [iptables-1.4.x-configure] Error 1
make[4]: Leaving directory `/root/asuswrt-merlin/release/src/router'
make[3]: *** [iptables-1.4.x/Makefile] 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: *** [rt-ac68u] Error 2
root@ubuntu:~/asuswrt-merlin/release/src-rt-6.x.4708#

Could anyone tell me where is wrong ? thanks!
 
Last edited:
Hi, when I compile the asuswrt-Merlin master source code rt-ac68u, I got following error messages:

Code:
   nvram_arm
make[4]: Entering directory `/root/asuswrt-merlin/release/src/router/nvram_arm'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/asuswrt-merlin/release/src/router/nvram_arm'
make iptables-1.4.x-configure
make[4]: Entering directory `/root/asuswrt-merlin/release/src/router'
( cd iptables-1.4.x ; \
                ./configure --host=arm-linux --build=i486-linux-gnu \
                --prefix=/usr \
                --bindir=/usr/sbin \
                --libdir=/usr/lib \
                --enable-ipv6 \
                --with-kernel=/root/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6.36 \
        )
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-brcm-linux-uclibcgnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-gcc... arm-brcm-linux-uclibcgnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-brcm-linux-uclibcgnueabi-gcc accepts -g... yes
checking for arm-brcm-linux-uclibcgnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-brcm-linux-uclibcgnueabi-gcc... gcc3
checking whether arm-brcm-linux-uclibcgnueabi-gcc and cc understand -c and -o together... yes
./configure: line 3892: AC_DISABLE_STATIC: command not found
./configure: line 3893: AM_PROG_LIBTOOL: command not found
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether arm-brcm-linux-uclibcgnueabi-ld knows -Wl,--no-undefined... yes
checking how to run the C preprocessor... arm-brcm-linux-uclibcgnueabi-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking linux/dccp.h usability... yes
checking linux/dccp.h presence... yes
checking for linux/dccp.h... yes
checking linux/ip_vs.h usability... yes
checking linux/ip_vs.h presence... yes
checking for linux/ip_vs.h... yes
checking linux/magic.h usability... yes
checking linux/magic.h presence... yes
checking for linux/magic.h... yes
checking linux/proc_fs.h usability... no
checking linux/proc_fs.h presence... no
checking for linux/proc_fs.h... no
checking size of struct ip6_hdr... 40
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for libnfnetlink... no
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make[4]: *** [iptables-1.4.x-configure] Error 1
make[4]: Leaving directory `/root/asuswrt-merlin/release/src/router'
make[3]: *** [iptables-1.4.x/Makefile] 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: *** [rt-ac68u] Error 2
root@ubuntu:~/asuswrt-merlin/release/src-rt-6.x.4708#

Could anyone tell me where is wrong ? thanks!


What Ubuntu version are you running? Have you tried doing a clean checkout/build?

Here's what I use to build the firmware without fail on Ubuntu 12.04 x64 LTS

http://198.23.248.102/build.sh
 
Thank you for your reply.

I use command "make clean; make rt-ac68u" in the rt-src-6.x.4708 directory to begin compiling process and didn't use build.sh. Should I use it ?

My system is Ubuntu 10.04.4 LTS. I don't know if this system is suitable for building the ac68u firmware. But I can build RT-N16 firmware successfully.
 
Thank you for your reply.

I use command "make clean; make rt-ac68u" in the rt-src-6.x.4708 directory to begin compiling process and didn't use build.sh. Should I use it ?

My system is Ubuntu 10.04.4 LTS. I don't know if this system is suitable for building the ac68u firmware. But I can build RT-N16 firmware successfully.

The build script is just something I wrote for my build server that compiles the latest github changes daily to reference.

I know from personal experience that the Asus codebase is very touchy, I know RMerlin compiles it using Linux mint and as of yesterday its also 12.04 compatible. If possible your best bet would be to upgrade to 12.04, otherwise you will have to wait for Merlin or Saintdev and even then it may not be worth fixing.

Here's a snippet of the code I use to compile on 12.04 for the AC68U

Code:
cd /root/asuswrt-merlin
	sudo git pull
	echo " ---- Building Toolchain ---- "
	git ls-remote origin -h refs/heads/master > /root/www/AC68U/gitver
	sudo ln -sf /root/asuswrt-merlin/tools/brcm /opt/brcm
	sudo ln -sf /root/asuswrt-merlin/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3 /opt/brcm-arm
	export PATH=$PATH:/opt/brcm/hndtools-mipsel-linux/bin:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm-arm/bin
	cd /root/asuswrt-merlin/release/src-rt-6.x.4708
	make cleankernel
	make clean
	echo " ---- Patching Netatalk ---- "
	cd /root/asuswrt-merlin/release/src/router/netatalk-3.0.5
	rm -rf configure
	sudo git checkout configure
	echo " ---- Patching Netatalk ---- "
	cd /root/asuswrt-merlin/release/src-rt-6.x.4708
	make rt-ac68u
 
Finished compiling at last.

By deleting the "configure" file in iptables-1.4.x, I finished compiling rt-ac68u firmware at last! The reason that caused the previous problem may be that the configure file is not correct because of lack pre-requisite compiling tools when I start first building process. When install any needed programs during the compling process. This method caused the two libtool macro names "AC_DISABLE_STATIC" and "AM_PRO_LIBTOOL" to be written in the configure file, such leads to "Command not found" error messages.

Code:
ctools/trx_asus -i image/linux-lzma.trx -r RT-AC68U,3.0.0.4,image/RT-AC68U_3.0.0.4_374.41_alpha1.trx

Creating ASUS RT-AC68U firmware to image/RT-AC68U_3.0.0.4_374.41_alpha1.trx

TRX Image:
 Total Size .... : 30056448 (29352.0 KB) (28.7 MB)
 CRC-32 ........ : 74D2B75F


I'll upgrade my system to 12 LTS, and try more compling process.

BTW. The compling process will cause an hour and more to build the firmware!
 
Last edited:
By deleting the "configure" file in iptables-1.4.x, I finished compiling rt-ac68u firmware at last! The reason that caused the previous problem may be that the configure file is not correct because of lack pre-requisite compiling tools when I start first building process. When install any needed programs during the compling process. This method caused the two libtool macro names "AC_DISABLE_STATIC" and "AM_PRO_LIBTOOL" to be written in the configure file, such leads to "Command not found" error messages.

Code:
ctools/trx_asus -i image/linux-lzma.trx -r RT-AC68U,3.0.0.4,image/RT-AC68U_3.0.0.4_374.41_alpha1.trx

Creating ASUS RT-AC68U firmware to image/RT-AC68U_3.0.0.4_374.41_alpha1.trx

TRX Image:
 Total Size .... : 30056448 (29352.0 KB) (28.7 MB)
 CRC-32 ........ : 74D2B75F


I'll upgrade my system to 12 LTS, and try more compling process.

BTW. The compling process will cause an hour and more to build the firmware!

If you have a multicore system, you can speed things up by enabling parallel building. Check src-rt-6.x.4708/profile.mak. You will see two lines referring to PARALLEL - comment one, and uncomment the other one.

A FW build is about 20 mins on my system (hard to say for sure, I tend to build multiple firmwares at once when doing full builds).
 
Recompiled the FW

Using the method you said, this time the compiling time reduced to about 40Min. Since the computer I used is an old one and contains a dual core cpu, the compiling time is still much longer than yours. The other reason is may be I begin compiling process from another pc by using a ssh window.

Thank you for your usefull advices.

Code:
Creating ASUS RT-AC68U firmware to image/RT-AC68U_3.0.0.4_374.41_alpha1.trx

TRX Image:
 Total Size .... : 30056448 (29352.0 KB) (28.7 MB)
 CRC-32 ........ : E52DD60B
 
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