[mercury-users] the "extras" package

Robert Ernst Johann JESCHOFNIK rejj at students.cs.mu.oz.au
Sun May 30 18:07:54 AEST 1999



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/
there was also ... /asm_fast/ and ... /i486-pc-linux-gnu/  - neither of
these had any subdirs.


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

[root at blacksand samples]# cat Mmakefile 
# COMPLEX_NUMBERS_DIR specifies the location of the complex number library,
# e.g. `/foo/bar/mercury-<version>/extra/complex_numbers'.
#COMPLEX_NUMBERS_DIR = ..

# The following stuff tells Mmake to use the complex number library
#VPATH = $(COMPLEX_NUMBERS_DIR):$(MMAKE_VPATH)
#MCFLAGS = -I$(COMPLEX_NUMBERS_DIR)
#MLFLAGS = -R$(COMPLEX_NUMBERS_DIR) -L$(COMPLEX_NUMBERS_DIR)
MLLIBS = -lcomplex_numbers
#C2INITFLAGS = $(COMPLEX_NUMBERS_DIR)/complex_numbers.init

MAIN_TARGET = fft
depend : fft.depend


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


feeling rather feeble,
	rob

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