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

Re: OCaml cross-compilers (was: Bug#294445: ocaml-source: configure script is not executable)



Bringing the conversation to debian-ocaml-maint list as other may have some
input on this, hope this is ok.

On Thu, Feb 10, 2005 at 01:49:44PM -0500, Eric C. Cooper wrote:
> > > Yes, after I emailed you I came to the same conclusion.  I have it
> > > generating the host package now, but still need a place to put the
> > > runtime libraries and interpreter for the target machine when I'm
> > > done.  For now, I guess I'll just build a tarball and README and leave
> > > it in /usr/doc/ocaml-cross/.
> > 
> > Arg, no, don't do that.
> > 
> > /usr/doc doesn't exist anymore, and /usr/share/doc is as all share stuff for
> > arch-indep stuff.
> > 
> > You would need to create a new binary package, and have it generate
> > the cross compilers. If anything, the libraries should go into
> > /usr/lib/ocaml/cross-3.08 or something such. Also, the binaries
> > should go into /usr/bin, but have the cross part somehow appended to
> > their name.
> 
> Actually I meant /usr/share/doc, but I see your point.
> But for example, when I build the i386 version of the ocaml-powerpc
> cross-compiler, I need to package up ocamlrun, pervasives.cm[iax]
> etc. for installation on target machines, for use at runtime.
> (In the case of an embedded system target, it might not even run Debian.)
> So I guess I need to produce an
> ocaml-cross-runtime_3.08.2_1.powerpc.deb somehow?

Well, the .deb will have the cross compiler and libraries. It is not all that
easy to organize like that, but my idea is to create a bunch of ocaml-cross
packages (single packages, no real need to over split it, at least at start).

> As for the host package, I propose to put the binaries in
> /usr/bin/powerpc-linux-ocamlopt (by analogy with the gcc cross
> compilers produced by the toolchain-source package), and the libraries
> in /usr/lib/ocaml/powerpc-linux/3.08/.

yep. I would like a i386-windows-ocamlopt even. I would have turned it the
other way around. You don't need a ocamlrun and stuff if you produce static
items, and if you use ocamlopt. Also, i would put somewhere in the
/usr/lib/ocaml/cross/powerpc-linux/3.08 or whatever, and have some scripts
which generate the needed package, dir, tarball or whatever for the target
system.

> > Could you become an alioth member, and then once we give you access to the
> > ocaml svn repo, check in your stuff as a branch of the ocaml package there ?
> > So i can more easily have a quick look at it ? 
> 
> OK, I'm registered as ecc-guest on alioth, and I'll check in my stuff
> when you set me up on svn.  Thanks.

Ok, adding you now, make sure it is a branch of ocaml or something such. 

Added even.

Friendly,

Sven Luther



Reply to: