Test build failed due to UCLIBC_INTERNAL header rework

Carmelo AMOROSO carmelo.amoroso at st.com
Wed Jul 2 16:19:21 UTC 2008


Bernhard Fischer wrote:
> On Wed, Jun 11, 2008 at 04:10:23PM +0200, Bernd Schmidt wrote:
>   
>> Daniel Jacobowitz wrote:
>>
>>     
>>> I have no comment on the patch itself, but I like the approach - I've
>>> concluded before that this is the only sane way to test toolchain
>>> pieces, especially compiler or C library.  We do all of our testing
>>> after installation here.
>>>       
>> My patch doesn't really create a full installation tree that looks 
>> identical to the one created by 'make install'; that might require 
>> somewhat more effort (unless we want to just $(MAKE) install 
>> DESTDIR=somewhere/in/tree for every make test).
>>     
>
> A better approach would be to just
>
> test-includes: test/include/bits/uClibc_config.h
> 	$(make) -C $(top_builddir) PREFIX=test/ RUNTIME_PREFIX=test/ \
> 	DEVEL_PREFIX=/ \
> 	HOSTCC="$(HOSTCC)" \
> 	eventual_flags_passing_here \
> 	install_dev
>
> i.e. do a real, full install an no fakery.
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
>   
Hi All,
as I told few week ago, here there is a complete patch based on your inputs.
Just to summarize, the idea is to install the headers and kernel headers 
(required by some tests)
into a local directory. I prefer not under test dir, but in the top 
directory to be used
by utils too (not yet fixed).
Tests will be built using only as include dir the local install dir 
(with -nostdinc ).
This allows by-passing teh issue caused the hidden_proto.

I fixed a bit the clean target too.

Also added a new target in top Rules.mak "test_compile" to build the 
tests instead
of directly calling make -C test compile.

There some issues to build nptl and tls tests that need some internal 
header files, but this is
another story we are working on.

Comments are welcome.

Carmelo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_test_build.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20080702/dc82e22e/attachment.diff 


More information about the uClibc mailing list