2010-11-19 23:10:18 problems about cross compile bfin-uclinux-gcc
min wang (CHINA)
I am trying to compile uclinux-dist on the platform of linux 2..6.x,but there is a problem like this:
termcap.c : 36:20: error: stdlib.h: No such file or directory
termcap.c : 37:20: error: string.h: No such file or directory
termcap.c :45:20: error: unistd.h: No such file or directory
termcap.c: 52:19: error: stdio.h: No such file or directory
termcap.c: 53:23: error: sys/ioctl.h: No such file or directory
termcap.c: 57:21: error: termios.h: No such file or directory
I tired to solve to this problem by copying the files "stdlib.h sting.h unistd.h stdio.h sys/ioctl.h termios.h" from /usr/include to /usr/uClinux-dist/linux-2.6.x/include,but the error still appeared.
I also make a directory "hello" under "/usr/uClinux-dist/", and there is a "hello.c" file in directory hello:
when I compiled the hello.c file using gcc:
gcc hello.c -o hello
there is not any problems ,but when I complied it using bfin-uclinux-gcc:
bfin-uclinx-gcc hello.c -o hello
there is an error:
hello.c :1:18: error: No directory included to search stdio.h
Who can tell me what is the problem.Thanks very much!
2010-11-19 23:45:49 Re: problems about cross compile bfin-uclinux-gcc
Mike Frysinger (UNITED STATES)
stop copying random files around to fix your broken install. you need to undo everything you've done.
to actually fix your problem, you need to install all the correct toolchain packages. please read the documentation:
2010-11-22 03:27:02 Re: problems about cross compile bfin-uclinux-gcc
min wang (CHINA)
I've read the documentation, and I found out the point is that I have not installed the blackfin-toolchain-uclibc.
so I downloaded the package blackfin-toolchain-uclibc-default-09r1.1-2.i386.tar.bz2, and installed the package, when I make again, the errors that I mentioned before disappeared, but a new error occurred.This time it said:
' zlib.h: No such file or directory'
what's the wrong? should I use the "full" package?
2010-11-22 03:38:58 Re: problems about cross compile bfin-uclinux-gcc
Aaron Wu (CHINA)
Please make sure proper packages are installed on your host machine, check more on docs.blackfin.uclinux.org/doku.php?id=installing_linux