Posted: Thu Mar 06, 2008 2:21 Post subject: Re: Error !!
serkan wrote:
Hello rkozola,
Thanks for your explanations.
I have did everything you mentioned here and I stuck here
Code:
cd ../src
cd router
cp .config_mini.v24 .config
rm -rf mipsel-uclibc/install
make rc-clean
make services-clean
make shared-clean
make httpd-clean
rm busybox/busybox
rm busybox/applets/busybox.o
cd ..
make
cd ../opt
mkdir ../src/router/mipsel-uclibc/target/etc/config
./sstrip/sstrip ../src/router/mipsel-uclibc/target/bin/*
I got an error in the last line of the code that I copied above. There was no folders created. All folders under the src/router/mipsel-uclibc ( I have created target and bin directories) are created by me. Should the folder be created automatically? I am getting error when I type
Error saying "There is no such file or directory". Because bin folder is empty!
What did I do wrong?? Can you please help me?
Thanks
the mipsel-uclibc/target directory should be created by the make statement. Since it is trying to run the ./sstrip without a target dir, the make command must be failing.
Ok. Tell me what I am doing wrong. I can compile both mini and the new mini usb build but I can't do any of the other ones. Any idea as to where I am failing?
P.S. - I'd post a build log but forgot the log output was to a non-existent folder.
i am guessing it is an rflow issue. I have to do something like the following for any configs that have rflow enabled. I do this for std, std-nokaid, and openvpn.
Ok. I'll try that then. I'm actually going to create some prep scripts to do them so I can more automate this process. I broke your original script down into two seperate one. One to create the environment and the other to get the subversion repository. I've created a crap load of install scripts based on yours.
Ok. I did your command set and it appeared to work for mega until I hit this.
Code:
make -C flex libfl.a
make[3]: Entering directory `/home/dd-wrt/DD-WRT/src/router/radvd/flex'
cd . && \
/bin/sh /home/dd-wrt/DD-WRT/src/router/radvd/flex/missing --run automake-1.7 --gnits Makefile
configure.in:29: version mismatch. This is Automake 1.7.9,
configure.in:29: but the definition used by this AM_INIT_AUTOMAKE
configure.in:29: comes from Automake 1.7.5. You should recreate
configure.in:29: aclocal.m4 with aclocal and run automake again.
make[3]: *** [Makefile.in] Error 1
make[3]: Leaving directory `/home/dd-wrt/DD-WRT/src/router/radvd/flex'
make[2]: *** [libfl.a] Error 2
make[2]: Leaving directory `/home/dd-wrt/DD-WRT/src/router/radvd'
make[1]: *** [radvd] Error 2
make[1]: Leaving directory `/home/dd-wrt/DD-WRT/src/router'
make: *** [all] Error 2
mkdir: cannot create directory `../src/router/mipsel-uclibc/target/etc/config': No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/bin/*: No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/sbin/rc: No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/usr/sbin/*: No such file or directory
cp: cannot create regular file `../src/router/mipsel-uclibc/target/bin': No such file or directory
cp: cannot create regular file `../src/router/mipsel-uclibc/target/lib': No such file or directory
./install_mega.v24_2.sh: line 25: cd: ../src/router/mipsel-uclibc/target/lib: No such file or directory
ln: creating symbolic link `libgcc_s.so' to `libgcc_s.so.1': File exists
cp: cannot stat `./etc/preinit': No such file or directory
cp: cannot stat `./etc/postinit': No such file or directory
cp: cannot stat `./etc/ipkg.conf': No such file or directory
cp: cannot stat `./etc/config/*': No such file or directory
cp: cannot stat `./usr/lib/smb.conf': No such file or directory
./install_mega.v24_2.sh: line 33: cd: ../src/router/mipsel-uclibc/target/www: No such file or directory
ln: creating symbolic link `smb' to `../tmp/smbshare': Permission denied
./install_mega.v24_2.sh: line 40: ./strip_libs.sh: No such file or directory
./install_mega.v24_2.sh: line 43: ../src/linux/brcm/linux.v24_2/scripts/squashfs/mksquashfs-lzma: No such file or directory
./install_mega.v24_2.sh: line 44: ./make_kernel.v24_2.sh: No such file or directory
./install_mega.v24_2.sh: line 45: ../tools/trx: No such file or directory
cp: cannot stat `dd-wrt.v24_2.trx': No such file or directory
I havent been able to get the mega to build either, but I get another issue. I think you get farther than me. I get some error in the toolchain with an if_fddi.h file throwing an error.
Heh. Once I am done I guess I will have to bug Eko about this and see if he has any insight into it. I know he is building the mega editions against the new drivers.
EDIT: I am only following your instructions btw. I am building against SVN 9241.
No I have not. I will try it when I get a chance. I want to make sure my other ones build right. One thing I found for sure is it looks like the straight std version won't be able to have usb support. On the other hand the nokaid one can take it fine just like Eko said. Now my main thing is I wonder how Eko got https support in the mini builds. I highly doubt the regular .config files were used.
'You should recreate aclocal.m4 with aclocal and run automake again.'
you should be able to run aclocal-1.7 and it will correct that error and allow you to try to build again.
Of course now I am getting your error instead. I'll try it again and update the repository. Maybe I'll be able to make it compile.
P.S. - Micro version isn't compiling either although really my focus is getting the usb enabled ones going. mini w/ https and usb like eko's is a plus here.
Joined: 19 Jan 2008 Posts: 46 Location: Florida, US
Posted: Thu Mar 06, 2008 23:58 Post subject:
Hello rkozola,
Everything was fine till I get the error written below. I copied the snapshot of the screen. As you see error happens during the execution of script "make_kernel_v24_2.sh"
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./write3
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc write3.c
-o ./write3
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./write4
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc write4.c
-o ./write4
write4.c: In function ‘filter’:
write4.c:65: warning: incompatible implicit
declaration of built-in function ‘strlen’
write4.c:80: warning: incompatible implicit
declaration of built-in function ‘memcpy’
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./webcomp
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc -o
webcomp -DUEMF -DWEBS -DLINUX webcomp.c
webcomp.c: In function ‘compile’:
webcomp.c:142: warning: comparison of distinct pointer
types lacks a cast
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/opt# more
make_kernel_v24_2.sh
#!/bin/sh
./loader-0.02/lzma e
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy
vmlinuz
./loader-0.02/lzma e
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy
vmlinuzmicro
Joined: 19 Jan 2008 Posts: 46 Location: Florida, US
Posted: Fri Mar 07, 2008 4:06 Post subject:
Hi Again rkozola,
I have started again from the begining (by creating new Debian etc..) Please see below! I got error again in the "make". See below. I need help ! !! !!!
dd-wrt:/home/dd-wrt/DD-WRT/src/router# make httpd-clean
rules/bridge.mk:4: warning: overriding commands for
target `bridge'
rules/bridge.mk:2: warning: ignoring old commands for
target `bridge'
rules/iptables.mk:38: warning: overriding commands for
target `iptables-clean'
rules/iptables.mk:2: warning: ignoring old commands
for target `iptables-clean'
rules/madwifi_mimo.mk:3: warning: overriding commands
for target `madwifi'
rules/madwifi.mk:3: warning: ignoring old commands for
target `madwifi'
rules/madwifi_mimo.mk:7: warning: overriding commands
for target `madwifi-clean'rules/madwifi.mk:7: warning:
ignoring old commands for target `madwifi-clean'
rules/madwifi_mimo.mk:11: warning: overriding commands
for target `madwifi-install'
rules/madwifi.mk:11: warning: ignoring old commands
for target `madwifi-install'rules/all.mk:172:
rules/ipsec-tools.mk: No such file or directory
rules/all.mk:173: rules/strace.mk: No such file or
directory
[ ! -d rules/strace.mk ] || make -C rules/strace.mk
[ ! -d rules/ipsec-tools.mk ] || make -C
rules/ipsec-tools.mk
make -C httpd clean
make[1]: Entering directory
`/home/dd-wrt/DD-WRT/src/router/httpd'
rm -f *.o *~ httpd
rm -f modules/*.o
rm -f modules/*.*~
rm -f *.a
#Added by Daniel(2004-07-29)
#cp ../shared/ezc.o ./
#rm -rf
/home/dd-wrt/DD-WRT/src/../tools/src/code_header.o
make[1]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router/httpd'
dd-wrt:/home/dd-wrt/DD-WRT/src/router# rm
busybox/busybox
rm: cannot remove `busybox/busybox': No such file or
directory
dd-wrt:/home/dd-wrt/DD-WRT/src/router# rm
busybox/applets/busybox.o
rm: cannot remove `busybox/applets/busybox.o': No such
file or directory
dd-wrt:/home/dd-wrt/DD-WRT/src/router# cd ..
dd-wrt:/home/dd-wrt/DD-WRT/src# make
make -C router all
make[1]: Entering directory
`/home/dd-wrt/DD-WRT/src/router'
rules/bridge.mk:4: warning: overriding commands for
target `bridge'
rules/bridge.mk:2: warning: ignoring old commands for
target `bridge'
rules/iptables.mk:38: warning: overriding commands for
target `iptables-clean'
rules/iptables.mk:2: warning: ignoring old commands
for target `iptables-clean'
rules/madwifi_mimo.mk:3: warning: overriding commands
for target `madwifi'
rules/madwifi.mk:3: warning: ignoring old commands for
target `madwifi'
rules/madwifi_mimo.mk:7: warning: overriding commands
for target `madwifi-clean'rules/madwifi.mk:7: warning:
ignoring old commands for target `madwifi-clean'
rules/madwifi_mimo.mk:11: warning: overriding commands
for target `madwifi-install'
rules/madwifi.mk:11: warning: ignoring old commands
for target `madwifi-install'rules/all.mk:172:
rules/ipsec-tools.mk: No such file or directory
rules/all.mk:173: rules/strace.mk: No such file or
directory
[ ! -d rules/strace.mk ] || make -C rules/strace.mk
[ ! -d rules/ipsec-tools.mk ] || make -C
rules/ipsec-tools.mk
rm -rf
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/target
rm -rf
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/install
rm -f
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/linux.trx
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/vmlinuz
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/target.squashfs
make -C nvram
make[2]: Entering directory
`/home/dd-wrt/DD-WRT/src/router/nvram'
mipsel-linux-uclibc-gcc -Os -pipe -mips32
-mtune=mips32 -funit-at-a-time -I.
-I/home/dd-wrt/DD-WRT/src/include.v24 -Wall -s -Os
-pipe -mips32 -mtune=mips32 -funit-at-a-time -fpic
-c -o nvram_linux.o nvram_linux.c
make[2]: mipsel-linux-uclibc-gcc: Command not found
make[2]: *** [nvram_linux.o] Error 127
make[2]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router/nvram'
make[1]: *** [nvram] Error 2
make[1]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router'
make: *** [all] Error 2
I dont know this error is happening! Do you have an idea? What do I do wrong??
Joined: 19 Jan 2008 Posts: 46 Location: Florida, US
Posted: Sat Mar 08, 2008 0:31 Post subject:
Hello rkozola,
But the error that I am getting is before the codes you have written.
Below I have copied your example (just the commands)
My Error that I sent you in my previous message is happening in the "make" command (i highlighted as red).
cd ../src
cd router
cp .config_mini.v24 .config
rm -rf mipsel-uclibc/install
make rc-clean
make services-clean
make shared-clean
make httpd-clean
rm busybox/busybox
rm busybox/applets/busybox.o
cd ..
make
cd ../opt
mkdir ../src/router/mipsel-uclibc/target/etc/config
./sstrip/sstrip ../src/router/mipsel-uclibc/target/bin/*
./sstrip/sstrip ../src/router/mipsel-uclibc/target/sbin/rc
./sstrip/sstrip ../src/router/mipsel-uclibc/target/usr/sbin/*
cd DD-WRT/src/router
cp .config_mini.v24 .config
cp ../linux/linux/.config_std ../linux/linux/.config
export MYPATH=$PATH
export PATH=/opt/4.1.0/bin:$MYPATH
make configure
cd ../../opt
./install_mini.v24_2.sh
Everything is your command above and my error is happening in the make command which is highlighted as red. If I follow your instructions above, I can not come to the point where you set your path (before coming there I am getting error in "make")
Sorry for confusion. I hope I am able to explain my problem.