From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14950 invoked by alias); 28 Jun 2010 13:51:31 -0000 Received: (qmail 14705 invoked by uid 22791); 28 Jun 2010 13:51:30 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Jun 2010 13:51:25 +0000 Received: by fg-out-1718.google.com with SMTP id 19so207388fgg.12 for ; Mon, 28 Jun 2010 06:51:23 -0700 (PDT) Received: by 10.87.72.2 with SMTP id z2mr6972897fgk.29.1277733080440; Mon, 28 Jun 2010 06:51:20 -0700 (PDT) Received: from sg-desktop.local ([86.57.137.251]) by mx.google.com with ESMTPS id 22sm4400106fkr.29.2010.06.28.06.51.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 06:51:19 -0700 (PDT) Date: Mon, 28 Jun 2010 13:51:00 -0000 From: Sergei Gavrikov To: Simon Kallweit cc: John Dallaway , ecos-patches@ecos.sourceware.org, Uwe Kindler Subject: Re: uSTL 1.4 update In-Reply-To: <4C28A060.8010902@intefo.ch> Message-ID: References: <4C24BE22.4040405@intefo.ch> <4C28692B.9090701@dallaway.org.uk> <4C286C98.4020501@intefo.ch> <4C2890CC.9070301@intefo.ch> <4C289CAE.3030509@dallaway.org.uk> <4C28A060.8010902@intefo.ch> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-06/txt/msg00026.txt.bz2 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>> 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>> 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::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::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