[vsipl++] Compile problems with reference implementation and gnu 3.4.5

Stefan Seefeld stefan at codesourcery.com
Mon Sep 10 19:52:19 UTC 2007


Everett,

Schnetzer, Everett wrote:

> The build of the VSIPL++ library is done with "make -fGNUmakefile all",

(The -f option shouldn't be necessary. The reason we use GNUmakefile
 instead of Makefile is to make clear (to 'make') that we really require
 GNU make -- which detects GNUmakefiles automatically. Other versions of
 make won't be able to handle our build system anyway.)

> and it succeeds. Then I change directories to tests/ref-impl and try
> "make -fMakefile check". For the tests, the Makefile and Makefile.inc
> files were updated for our directory structure. The error appears when
> it gets to math-matvec.cpp file.

That may be the root of the problem. tests/ref-impl/ doesn't come with
a 'Makefile', only with a 'GNUmakefile'. That, however, is obsolete, and
not used by our testing harness.

(Our testing harness uses QMTest, and to invoke it you run 'make check'
 from the toplevel directory. We also support compiling individual tests
 in a way as not to require QMTest, though the ref-impl test suite doesn't
 seem to be supported that way. I would suggest to modify / add to the
 tests_cxx_sources variable in tests/GNUmakefile.inc to include tests/ref-impl/*.cpp.

 Once that is done, you can run 'make tests/ref-impl/math-matvec' from the toplevel
 directory.)

> I've played some with the flags used to compile the tests (removed -O2
> and -pedantic), but nothing has changed the result. I hope your attempt
> on Windows reproduces the problem, but since it works for Linux, I'll
> start looking for possible problems in our environment.

As I can't reproduce this with my (Linux-based) version of GCC 3.4.5, and
since this looks like a C++ frontend issue, rather than a platform-specific
problem, I'm tempted to believe that the cause is related to your writing
your own Makefile for tests/ref-impl/.

Regards,
		Stefan

-- 
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718



More information about the vsipl++ mailing list