On Mon, May 31, 2010 at 12:15 AM, lei yang <[email protected]> wrote: > Hi experts, > > I want to build the uclibc testing dir, but it failed can some one give me > some points to avoid this issue? > > lya...@lyang0:~/downloads/uClibc-0.9.30.3/test$ make compile > TEST_LINK args/ arg_testarg_test.c > arg_test.c:9:19: error: stdio.h: No such file or directory > arg_test.c:10:20: error: stdlib.h: No such file or directory > arg_test.c:11:20: error: unistd.h: No such file or directory > arg_test.c: In function 'main': > arg_test.c:16: error: '__environ' undeclared (first use in this function) > arg_test.c:16: error: (Each undeclared identifier is reported only once > arg_test.c:16: error: for each function it appears in.) > arg_test.c:28: warning: incompatible implicit declaration of built-in > function 'printf' > arg_test.c:39: warning: incompatible implicit declaration of built-in > function 'exit' > make[1]: *** [arg_test] Error 1 > make: *** [_dircompile_args] Error 2 > > > I believe I have stdio.h,stdlib.h on my host. because if I compile > arg_test.c with "gcc -o test arc_test.c" it works well
You need to have a sysroot and cross-gcc to compile the tests assuming that you are trying to build them on a cross hosted environment. > > Thanks > Lei > > > -- > "We learn from failure, not from success!" > _______________________________________________ > uClibc mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
