Re: Build error on 'make tests' for synthetic target

Sergei Gavrikov <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <alpine.DEB.2.00.1102022327240.29409@sg-laptop>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.