Help build test failed
Khem Raj
raj.khem at gmail.com
Tue Jun 1 07:21:21 UTC 2010
On Mon, May 31, 2010 at 12:15 AM, lei yang <yanglei.fage at gmail.com> 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?
>
> lyang0 at 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
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
>
More information about the uClibc
mailing list