[uClibc]Error: ld_syscall.h:2:20: stdarg.h: No such file or directory

Song Wang wsonguci at yahoo.com
Wed Jul 10 21:59:27 UTC 2002


Hi,I tried to build uclibc for my bigendian mips platform.In redhat 7.3, I built the cross toolchain including gcc-3.1, glibc-2.2.5, binutils-2.12.1 with 2.4.17 kernel header myself. Then I tried to build uclibc-0.9.12 using the toolchain.The problem I run into is:mips-linux-gcc -Wall -Os -falign-functions=1 -fno-builtin -nostdinc  -I../../include -iwithprefix include -I. -D_LIBC  -DNDEBUG  -fPIC -D_LIBC_REENTRANT -DDL_TRACE -DUCLIBC_TARGET_PREFIX=\"/\" -DUCLIBC_DEVEL_PREFIX=\"/usr/mips-linux-uclibc\" -DUCLIBC_BUILD_DIR=\"/home/work/toolchains/uClibc-0.9.12\" -I. -I./mips -I../libdl -c ldso.c -o ldso.oIn file included from ldso.c:117:ld_syscall.h:2:20: stdarg.h: No such file or directoryHere is the output of my mips-linux-gcc:#mips-linux-gcc -vReading specs from /usr/crossdev/mips/lib/gcc-lib/mips-linux/3.1/specsConfigured with: /tmp/crossdev/src/gcc-3.1/configure --prefix=/usr/crossdev/mips --enable-shared=libgcc,libstdc++ --enable-language=c,c++ --disable-libgcj --enable-threads=posix --infodir=/usr/crossdev/mips/info --mandir=/usr/crossdev/mips/man --includedir=/usr/crossdev/mips/mips-linux/include --with-gxx-include=/usr/crossdev/mips/mips-linux/include --with-as=/usr/crossdev/mips/bin/mips-linux-as --with-ld=/usr/crossdev/mips/bin/mips-linux-ld --target=mips-linuxThread model: posixgcc version 3.1When uclibc is being built, "-nostdinc" is specified, which means the compiler will not search the default system paths for include files, one of which is "/usr/crossdev/mips/lib/gcc-lib/mips-linux/3.1/include/", wherestdarg.h lives in. On the other hand, I can NOT find stdarg.h in any of those directories explicitly specified by '-I'. Could anyone please explain how the gcc should magically find stdarg.h?(BTW, I did try remove -nostdinc and uclibc was built, but I can not build applications against it.)Thanks in advance.-Song


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20020710/bf9e50e5/attachment-0001.htm 


More information about the uClibc mailing list