Wooohhhoooooooooooo!!
thank you so much bsat. It worked.
but I have encountered another error. Here is the portion of the process of making kernel which was halt due to the error:
make[3]: Entering directory `/usr/local/Cavium_Networks/OCTEON-SDK/linux/embedded_rootfs/build'
tar -zxf /usr/local/Cavium_Networks/OCTEON-SDK/linux/embedded_rootfs/storage/libpcap-0.9.4.tar.gz
cd libpcap-0.9.4 && ac_cv_linux_vers=2 ./configure --quiet --prefix=/tmp/_usr_local_Cavium_Networks_OCTEON-SDK_linux_embedded_rootfs-rootfs/usr --host=mips64-octeon-linux-gnu CFLAGS="-mabi=64 -march=octeon -Os -fomit-frame-pointer" LDFLAGS="" --with-pcap=linux --enable-ipv6
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .
make[3]: *** [libpcap-0.9.4/Makefile] Error 1
make[3]: Leaving directory `/usr/local/Cavium_Networks/OCTEON-SDK/linux/embedded_rootfs/build'
make[2]: *** [libpcap] Error 2
make[2]: Leaving directory `/usr/local/Cavium_Networks/OCTEON-SDK/linux/embedded_rootfs'
make[1]: *** [.root_complete] Error 2
make[1]: Leaving directory `/usr/local/Cavium_Networks/OCTEON-SDK/linux/embedded_rootfs'
make: *** [kernel] Error 2
[root@ash linux]#
I have this host system on which i have to compile linux and generate code for my target system which is an embedded system environment (OCTEON MIPS64 processor). That means i have to cross-compile.
The help files that come with the embedded system aren't of much help for a naive like me. My advisor has told me to compile the linux whereas the help files have only used the word BUILD everywhere. Does compile and build mean the same thing?
Regards,
Ash Angel