Bill Allombert on Mon, 17 Nov 2003 00:18:21 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Building gp2c


On Sun, Nov 16, 2003 at 01:26:49PM -0800, Justin Walker wrote:
> Hi, again,
> 
> I have just (11/16) checked out new copies of pari and gp2c.  I built 
> and installed pari, and ran cvsinit in gp2c, after copying in the 
> config file from /usr/local/lib/pari.  I get this:
> 
> mkdir: config: File exists
> config already exists.

This warning is normal.

> doc/Makefile.am:13: `#' comment at start of rule is unportable
> You must have automake to proceed. Sorry.

What version of automake do you have ? All the version I tested
did not break here. It seems yours try to improove its reputation of
being nefarious.

> I do have 'automake', and this error is due to the 'automake' error on 
> the preceding line ('automake' returns 1 as a result).  No big deal, 
> just FYI (the problem appears to be the commenting out of the latex 
> line; if the comment character is at the beginning of the line, 
> 'automake' is happy).

Thanks, I will do that then.

> Somehow, the creation of 'dotest' from 'dotest.in' produced this line:
>       command=`echo "/usr/bin/gcc -c -o %s.o -O3 -DGCC_INLINE -Wall 
> -fomit-fram\
> e-pointer -no-cpp-precomp -fno-common -I/usr/local/include %s.c && -o 
> %s.dylib \
> -shared -mimpure-text -O3 -DGCC_INLINE -Wall -fomit-frame-pointer 
> -no-cpp-preco\
> mp -fno-common %s.o " | sed -e s/%s/$i.gp/g`
> 
> A similar line is present in scripts/Makefile.

Obviously something cut long line with '\<newline>' for no reason.
Could you check the pari.cfg file you used for modules_build ?
grep modules_build pari.cfg
should do. If the \ are also here it is a bug in PARI not in gp2c.

Anyway you can try to fix it manually by removing the \<newline>
and get something like

command=`echo "/usr/bin/gcc -c -o %s.o -O3 -DGCC_INLINE -Wall -fomit-frame-pointer -no-cpp-precomp -fno-common -I/usr/local/include %s.c && -o %s.dylib -shared -mimpure-text -O3 -DGCC_INLINE -Wall -fomit-frame-pointer -no-cpp-precomp -fno-common %s.o " | sed -e s/%s/$i.gp/g`

What version of autoconf do you use, and what is /bin/sh here?

Note that I don't see any reason why dotest/gp2c-run should work on Mac OS X 
alas.

Cheers,
Bill.