[Pkg-scicomp-devel] Re: [xmds-devel] Debian xmds package ready to
go
Rafael Laboissiere
rafael at debian.org
Thu Nov 30 16:07:36 CET 2006
* Christian T. Steigies <cts at debian.org> [2006-11-30 15:53]:
> Cool, I'll give that a try. But we are having a different(?) problem
> here with our first steps building our own xmds files. It is probably an
> error in the xmds files, but while testing the lorenz example, I noted this
> odd behaviour. When xmds is run from Rafael's Makefile, it compiles fine,
> however when I call xmds manually on the same machine with the same input
> file, it fails. It calls the C++ compiler with a different name, which I
> don't understand, sometimes it omits the fftw library, the library paths are
> different, can somebody explain that or do I have to run xmds from a
> Makefile?
>
> steigies at batdaf:~/debian/xmds/build/examples>make lorenz.run
> xmds lorenz.xmds
> This is xmds, version 1.5-3
> Copyright 2000-2004 Greg Collecutt, Joseph Hope, Paul Cochrane and others
> xmds is available from http://www.xmds.org
>
> field name defaulting to 'main'
> Output file name defaulting to 'lorenz.xsil'
> compiling ...
> g++ -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -o lorenz lorenz.cc -I.
> -I/usr/lib/mpich/include/ -lm -lxmds -L. -lfftw
>
> lorenz ready to execute
> mv lorenz lorenz.run
> steigies at batdaf:~/debian/xmds/build/examples>xmds lorenz.xmds
> This is xmds, version 1.5-3
> Copyright 2000-2004 Greg Collecutt, Joseph Hope, Paul Cochrane and others
> xmds is available from http://www.xmds.org
>
> field name defaulting to 'main'
> Output file name defaulting to 'lorenz.xsil'
> compiling ...
> x86_64-linux-gnu-g++ -O3 -ffast-math -funroll-all-loops -fomit-frame-pointer -o lorenz lorenz.cc -I/usr
> -lm -lxmds -L/usr -lfftw
> lorenz.cc: In function 'float XMDSSwapFloat(float)':
> lorenz.cc:221: error: '_main_main_index_pointer' was not declared in this scope
> lorenz.cc: In function 'double XMDSSwapDouble(double)':
> lorenz.cc:227: error: '_main_main_index_pointer' was not declared in this scope
> compilation failed.
This may be a path problem. Could you please copy the patch attached below
to your examples directory and tell us what you obtain for this:
patch -p0 < Makefile.patch
which xmds
make
--
Rafael
More information about the Pkg-scicomp-devel
mailing list