Carmelo Amoroso wrote:
Mikael Lund Jepsen, ICCC wrote:
Hi all,
I've made a number of changes since my original post, taking both Joakim
and Bernards changes into consideration.
I hope they address their concerns properly. Most importantly, I now
malloc a buffer of an appropriate size instead of statically allocating
one as in the original newlib implementation.
The test code compiles fine within the test suite (make check), but I
seem unable to test the exact compile made by the suite, as I am cross
compiling for arm.
in cross compialation, you must go in two steps:
first build:
make UCLIBC_ONLY=y TEST_INSTALLED_UCLIBC=y test_compile
then install tests on the target (look at nptl branch Makefile.in
where there is a istall_test target not available on trunk... likely I'll add it too)
and on target run
make UCLIBC_ONLY=y run
I do not compile on my target (and have no need for doing so) so for me
it is good enough to compile the test app "outside" the suite and run
manually on the target. Everyone else can use it within the suite to
test their own environment.
If there are no other objections to the patch, I propose to commit it.
Any volunteers?
TIA,
Mikael
Uploading the test app to my target does not work as the lib paths are
then of course wrong.
you should compile tests with TEST_INSTALLED_UCLIBC=y so that the INTERP
entry in the ELF will looks like /lib/ld-uClibc.so.0 instead on pointing
to the full path on the build machine
Compiling "manually" with my toolchain (i.e. not
using the test suite make system) works fine - and also passes the test
when run on my target. Am I missing something in the way I compile/setup
the test suite?
For convenience, as requested by Bernard:
text data bss dec hex filename
264 0 0 264 108 librt/shm_open.os
172 0 0 172 ac librt/shm_unlink.os
Please take a look and let me know if I should change anything.
Thanks,
Mikael
Cheers,
Carmelo
------------------------------------------------------------------------
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc
--
Mikael Lund Jepsen,
Software Engineer
ICCC A/S, Telegrafvej 5 B, 2750 Ballerup, DENMARK
|
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc