I have copied asm and linux from raw kernel to my target/include. But again having problem with some header files and csu/subdir_lib. What should be the next step???
/home/emblogic/arm/TOOLCHAIN/tools/arm-unknown-linux-gnueabi/include/linux/stddef.h:4:28: fatal error: linux/compiler.h: No such file or directory compilation terminated.
make[2]: *** No rule to make target `/home/emblogic/arm/TOOLCHAIN/build-tools/build-glibc/bits/stdio_lim.st', needed by `/home/emblogic/arm/TOOLCHAIN/build-tools/build-glibc/bits/stdio_lim.h'. Stop. make[2]: Leaving directory `/home/emblogic/arm/TOOLCHAIN/build-tools/glibc-2.13/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/home/emblogic/arm/TOOLCHAIN/build-tools/glibc-2.13' make: *** [all] Error 2
Prepared toolchain but unable to compile a hello.c program. Getting error like:
arm-unknown-linux-gnueabi-gcc test.c /home/amit/toolchain/tools/libexec/gcc/arm-unknown-linux-gnueabi/4.5.1/cc1: error while loading shared libraries: libelf.so.0: cannot open shared object file: No such file or directory