This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: uSTL 1.4 update


On Mon, 28 Jun 2010, Simon Kallweit wrote:

On 06/28/2010 02:59 PM, John Dallaway wrote:
Hi Simon

Simon Kallweit wrote:

Here is the updated patch.

Added a generic implementation for the NextPow2, which is currently
suboptimal but mimics what the x86 implementation is doing. Also removed
the introduced change in include/ustl/uctrstrm.h so it should build
again with -fno-rtti.

Thank you. Tests are now building fine for M5272C3 but there's an error building for the synthetic target on my CentOS 5 (32-bit) box:

gcc -L/var/tmp/ustl-test/install/lib -Ttarget.ld -o /var/tmp/ustl-test/install/tests/language/cxx/ustl/current/tests/bvt23 tests/bvt23.o -g -nostdlib -Wl,--gc-sections -Wl,-static
tests/bvt23.o: In function `ustl::simd::fround<double, int>::operator()(double const&) const':
/var/tmp/ustl-test/install/include/ustl/simd.h:109: undefined reference to `lrint'
/var/tmp/ustl-test/install/include/ustl/simd.h:109: undefined reference to `lrint'
/var/tmp/ustl-test/install/include/ustl/simd.h:109: undefined reference to `lrint'
tests/bvt23.o: In function `ustl::simd::fround<float, int>::operator()(float const&) const':
/var/tmp/ustl-test/install/include/ustl/simd.h:107: undefined reference to `lrintf'
/var/tmp/ustl-test/install/include/ustl/simd.h:107: undefined reference to `lrintf'
/var/tmp/ustl-test/install/include/ustl/simd.h:107: undefined reference to `lrintf'
collect2: ld returned 1 exit status
make[1]: *** [/var/tmp/ustl-test/install/tests/language/cxx/ustl/current/tests/bvt23] Error 1
make[1]: Leaving directory `/var/tmp/ustl-test/language/cxx/ustl/current'
make: *** [tests] Error 2

Are you seeing this error?

It builds fine on my Ubuntu 10.04 LTS 32-bit :/

Hi Simon and John,

I built successfully uSTL tests using the Simon's latest patch for
arm7tdmi, i386 pc (i386-elf-gcc from eCosCentric) targets.

But, when I tried to build it for i386linux target I got the same error
likes John got.

Simon, I often run update-manager :-( and my stuff is

$ uname -r
2.6.32-22-generic

$ /lib/libc.so.6 | head -1
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.1) stable release version 2.11.1, by Roland McGrath et al.

$ gcc -v 2>&1 | grep ^gcc
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

$ lsb_release -c -r -d
Description:	Ubuntu 10.04 LTS
Release:	10.04
Codename:	lucid

$ make -s -C language/cxx/ustl/* tests 2>&1
tests/bvt23.o: In function `ustl::simd::fround<float, int>::operator()(float const&) const':
/tmp/ustl_synth/install/include/ustl/simd.h:107: undefined reference to `lrintf'
/tmp/ustl_synth/install/include/ustl/simd.h:107: undefined reference to `lrintf'
/tmp/ustl_synth/install/include/ustl/simd.h:107: undefined reference to `lrintf'
tests/bvt23.o: In function `ustl::simd::fround<double, int>::operator()(double const&) const':
/tmp/ustl_synth/install/include/ustl/simd.h:109: undefined reference to `lrint'
/tmp/ustl_synth/install/include/ustl/simd.h:109: undefined reference to `lrint'
/tmp/ustl_synth/install/include/ustl/simd.h:109: undefined reference to `lrint'
collect2: ld returned 1 exit status
make: *** [/tmp/ustl_synth/install/tests/language/cxx/ustl/current/tests/bvt23] Error 1

It seems for me we have to try something is suggested here (for example)
http://lists.busybox.net/pipermail/uclibc-cvs/2005-December/007852.html

Though I did not grep much the NET for the issue...

I will try to investigate in the issue tonight.

Sergei


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]