public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Michael Bergandi <mbergandi@gmail.com>
Cc: eCos Developer List <ecos-devel@ecos.sourceware.org>
Subject: Re: Build error on 'make tests' for synthetic target
Date: Wed, 02 Feb 2011 21:42:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1102022327240.29409@sg-laptop> (raw)
In-Reply-To: <AANLkTimfYPuqVHHSuZ82F0vhjG8=Co3tdDdEM_8EyyFP@mail.gmail.com>

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

  parent reply	other threads:[~2011-02-02 21:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02 20:41 Michael Bergandi
2011-02-02 21:06 ` John Dallaway
2011-02-02 22:20   ` Michael Bergandi
2011-02-02 21:42 ` Sergei Gavrikov [this message]
2011-02-03 13:45   ` Michael Bergandi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.1102022327240.29409@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-devel@ecos.sourceware.org \
    --cc=mbergandi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).