public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Build error on 'make tests' for synthetic target
@ 2011-02-02 20:41 Michael Bergandi
  2011-02-02 21:06 ` John Dallaway
  2011-02-02 21:42 ` Sergei Gavrikov
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Bergandi @ 2011-02-02 20:41 UTC (permalink / raw)
  To: eCos Developer List

Gentleman,

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'
collect2: ld returned 1 exit status
make[1]: *** [/home/mike/ecos-cvs/synthbuild/install/tests/infra/current/tests/cxxsupp]
Error 1
make[1]: Leaving directory `/home/mike/ecos-cvs/synthbuild/infra/current'
make: *** [tests] Error 2

I am running on Ubuntu 10.04.1 LTS. Here is some config info:

root@mb-dev1:/home/mike# uname -a
Linux mb-dev1 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52
UTC 2010 i686 GNU/Linux

root@mb-dev1:/home/mike# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
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?

-- 
Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build error on 'make tests' for synthetic target
  2011-02-02 20:41 Build error on 'make tests' for synthetic target Michael Bergandi
@ 2011-02-02 21:06 ` John Dallaway
  2011-02-02 22:20   ` Michael Bergandi
  2011-02-02 21:42 ` Sergei Gavrikov
  1 sibling, 1 reply; 5+ messages in thread
From: John Dallaway @ 2011-02-02 21:06 UTC (permalink / raw)
  To: Michael Bergandi; +Cc: eCos Developer List

Michael

Michael Bergandi wrote:

> 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'
> collect2: ld returned 1 exit status
> make[1]: *** [/home/mike/ecos-cvs/synthbuild/install/tests/infra/current/tests/cxxsupp]
> Error 1
> make[1]: Leaving directory `/home/mike/ecos-cvs/synthbuild/infra/current'
> make: *** [tests] Error 2
> 
> I am running on Ubuntu 10.04.1 LTS. Here is some config info:

This looks like a build issue related to your Linux distro. Please raise
a bug report at http://bugs.ecos.sourceware.org and include the above
error message plus the output of "gcc -v" and "uname -a".

Thank you

John Dallaway
eCos maintainer

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build error on 'make tests' for synthetic target
  2011-02-02 20:41 Build error on 'make tests' for synthetic target Michael Bergandi
  2011-02-02 21:06 ` John Dallaway
@ 2011-02-02 21:42 ` Sergei Gavrikov
  2011-02-03 13:45   ` Michael Bergandi
  1 sibling, 1 reply; 5+ messages in thread
From: Sergei Gavrikov @ 2011-02-02 21:42 UTC (permalink / raw)
  To: Michael Bergandi; +Cc: eCos Developer List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build error on 'make tests' for synthetic target
  2011-02-02 21:06 ` John Dallaway
@ 2011-02-02 22:20   ` Michael Bergandi
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bergandi @ 2011-02-02 22:20 UTC (permalink / raw)
  To: John Dallaway; +Cc: eCos Developer List

John,

> This looks like a build issue related to your Linux distro. Please raise
> a bug report at http://bugs.ecos.sourceware.org and include the above
> error message plus the output of "gcc -v" and "uname -a".

The bug has been filed.

Bug 1001139 - 'make tests' fails for linux synthetic target

Thank you,

-- 
Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build error on 'make tests' for synthetic target
  2011-02-02 21:42 ` Sergei Gavrikov
@ 2011-02-03 13:45   ` Michael Bergandi
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bergandi @ 2011-02-03 13:45 UTC (permalink / raw)
  To: Sergei Gavrikov; +Cc: eCos Developer List

Sergei,

> 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!

Thanks, that gets me past it.


-- 
Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-03 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 20:41 Build error on 'make tests' for synthetic target Michael Bergandi
2011-02-02 21:06 ` John Dallaway
2011-02-02 22:20   ` Michael Bergandi
2011-02-02 21:42 ` Sergei Gavrikov
2011-02-03 13:45   ` Michael Bergandi

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).