Karim BELABAS on Wed, 16 Apr 2003 12:27:13 +0200 (MEST)


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

Re: GP2C


On Tue, 15 Apr 2003, Justin Walker wrote:
> ./scripts/dotest: -o: command not found
> FAIL: scripts/dotest
> ===================
> 1 of 1 tests failed
> ===================
>
> and I think this is why the problem arises - from the ./configure step:
>
> checking for PARI module build... /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.so %s.o
>
> Not sure why the spurious '&&' is in there, at the end.
>
> I am building gp2c in the same directory that holds the pari
> development tree:
> $ ls ..
> ....        gp2c-0.0.2pl5       pari                readline-4.1
> $
>
> Thoughts on this?

DLLD is undefined.

The real problem is that, although install() now works on OS X [ I think
and hope... ] as far as loading symbols from gp's global context goes, we
still have not tried it with external "bundles", nor built into Configure the
necessary magic to build a dynamically loadable object.

Probably something like 'ld -bundle' (?). Hopefully something generic like
'gcc -shared' would work equally well. Can you just try to Configure pari
with

  env DLLD=/usr/bin/gcc Configure

before reconfiguring gp2c ? [ actually, does 'make bench' succeed in building
gp-dyn after this change ? ]

If it does work, then a trivial fix to config/get_dlld might do [ just have
to add darwin to the list of supported systems, lines 12-24 ]

    Karim.

P.S: all this rather belongs to pari-dev [ none of the above apply to the
stable version ]. Let's move the discussion there.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425   Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]