From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26473 invoked by alias); 2 Feb 2011 21:42:18 -0000 Received: (qmail 26465 invoked by uid 22791); 2 Feb 2011 21:42:18 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f49.google.com (HELO mail-ww0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Feb 2011 21:42:13 +0000 Received: by wwb17 with SMTP id 17so469757wwb.30 for ; Wed, 02 Feb 2011 13:42:11 -0800 (PST) Received: by 10.216.18.194 with SMTP id l44mr2646756wel.87.1296682930901; Wed, 02 Feb 2011 13:42:10 -0800 (PST) Received: from sg-laptop ([178.123.173.49]) by mx.google.com with ESMTPS id r57sm46516wes.25.2011.02.02.13.42.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 02 Feb 2011 13:42:09 -0800 (PST) Date: Wed, 02 Feb 2011 21:42:00 -0000 From: Sergei Gavrikov To: Michael Bergandi cc: eCos Developer List Subject: Re: Build error on 'make tests' for synthetic target In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-02/txt/msg00002.txt.bz2 Michael Bergandi wrote: > I am trying to use the synthetic target to do some testing of a > package I am working on. My package has some tests that I would like > to build, but I haven't figured out how to build only the tests for it > and not everything else. If someone could provide some guidance on > that, that would be great. > > In the mean time, I tried to just build all of the tests and the build > errored out with the following: > > make -r -C infra/current tests > make[1]: Entering directory `/home/mike/ecos-cvs/synthbuild/infra/current' > gcc -L/home/mike/ecos-cvs/synthbuild/install/lib -Ttarget.ld -o > /home/mike/ecos-cvs/synthbuild/install/tests/infra/current/tests/cxxsupp > tests/cxxsupp.o -g -nostdlib -Wl,-static -Wl,--fatal-warnings > /usr/lib/gcc/i486-linux-gnu/4.4.3/libsupc++.a(cp-demangle.o): In > function `.L644': > (.text+0x3317): undefined reference to `__sprintf_chk' <...> > I am running on Ubuntu 10.04.1 LTS. Here is some config info: <...> > gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) > > Has anyone else attempted building the tests on the synthetic target > or figure out what to do with the error above? Yes, I can confirm it, this bug exists (not only for Ubuntu). Today, I use two temp. "solutions", either i. I do not make 'cxxsup' test at all % make -s tests IGNORE_LINK_ERRORS=y ;# only 1 test cannot be built! or ii. I have installed GCC-4.3 *in parallel* % sudo aptitude install gcc-4.3 g++-4.3 ;# this won't ruin your box and with that GCC I can build all tests % make -s CC=gcc-4.3 && make -s CC=gcc-4.3 tests ;# all should pass HTH Sergei