[mercury-users] the "extras" package

Fergus Henderson fjh at cs.mu.OZ.AU
Sun May 30 20:06:52 AEST 1999


On 30-May-1999, Robert Ernst Johann JESCHOFNIK <rejj at students.cs.mu.oz.au> wrote:
> 
> On Sun, 30 May 1999, Fergus Henderson wrote:
> > 
> > Alternatively, you can install the files directly in the directories
> > that the Mercury system searches automatically.  For an example of
> > how to do this, see the Mmakefile in the extras/clpr directory.
> > Or just use the following commands:
> > 
> > 	cd extras/complex_numbers
> > 	mmake depend
> > 	mmake
> > 	cp *.int* *.opt /usr/local/lib/mercury-0.8/lib/mercury/ints
> > 	cp *.init /usr/local/lib/mercury-0.8/lib/mercury/ints
> > 	cp *.a *.so /usr/local/lib/mercury-0.8/lib/mercury/$ARCH/$GRADE
> 
> The closest I had to the last one was:
> /usr/local/mercury-0.8.1/lib/mercury/lib/asm_fast.gc/i486-pc-linux-gnu/

Sorry, yes, it should be .../$GRADE/$ARCH not .../$ARCH/$GRADE.
The directory that you identify above is the correct one.

> > The advantage of this approach is that you don't need anything special
> > in the Mmakefile of code that uses the library.
> 
> I commented out all the relevant lines from the Mmakefile, thus:
...
> and the following happens when I try to build the sample:
> 
> [root at blacksand samples]# mmake depend
> mmc --generate-dependencies    fft
> [root at blacksand samples]# mmake
> rm -f fft.c
> mmc --compile-to-c --grade asm_fast.gc       fft.m > fft.err 2>&1
> gmake: *** [fft.c] Error 1

To see the error message, do `cat fft.err'.

If the error message says something about not being able to open
the file `complex_numbers.int', then probably you omitted the step
of copying the *.int* files for the complex_numbers library into the
`ints' directory:

 	cd extras/complex_numbers
	...
 	cp *.int* *.opt /usr/local/lib/mercury-0.8.1/lib/mercury/ints

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list