Bug#647724: Removal of orpie

2011-11-08 Thread Olivier Andrieu
Hi,

On Sun, Nov 6, 2011 at 18:25, Stéphane Glondu glo...@debian.org wrote:
 will ocamlgsl on mips and mipsel be fixed sometime, so orpie will
 be available on those architectures again?

 Actually, ocamlgsl compiles with no error when the #error directive is
 commented out. There is a make test target, but it uses an unknown
 fort command... and even so, the test-suite doesn't look very
 thorough. I have no idea what is wrong on architectures with alignment
 requirements, nor how to make it crash. ocamlgsl is ~9,000 lines of C
 code... I don't know exactly what to fix in there.

 I've put the upstream author in CC; maybe he can enlighten us...

Ocamlgsl doesn't work on architectures with double-word alignment
for float64 values (the ARCH_ALIGN_DOUBLE of the OCaml headers)
because OCaml values of type float array are converted by a simply
cast to (double *) in C before the call to GSL.
This works since float arrays are unboxed in OCaml. But OCaml values
are single-word aligned ... so archs with ARCH_ALIGN_DOUBLE would need
to copy the whole
array to re-align it before calling the C function and Ocamlgsl doesn't do that.

So if you disable the #error directive, ocamlgsl will segfault as soon
as you use a function with a 'float array' argument somewhere.

(fort is an old framework for unit tests in OCaml, I must still be
somewhere on SourceForge ... anyway yes, the test suite is pretty
light :)
-- 
  Olivier



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647724: Removal of orpie

2011-11-06 Thread Uwe Steinmann
Hi,

will ocamlgsl on mips and mipsel be fixed sometime, so orpie will
be available on those architectures again?

  Uwe

PS: I'm the maintainer of orpie
-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  uwe.steinm...@mmk-hagen.de
  Tel: 02331 840446Fax: 02331 843920


signature.asc
Description: Digital signature


Bug#647724: Removal of orpie

2011-11-06 Thread Stéphane Glondu
 will ocamlgsl on mips and mipsel be fixed sometime, so orpie will
 be available on those architectures again?

Actually, ocamlgsl compiles with no error when the #error directive is
commented out. There is a make test target, but it uses an unknown
fort command... and even so, the test-suite doesn't look very
thorough. I have no idea what is wrong on architectures with alignment
requirements, nor how to make it crash. ocamlgsl is ~9,000 lines of C
code... I don't know exactly what to fix in there.

I've put the upstream author in CC; maybe he can enlighten us...


Cheers,

-- 
Stéphane




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org