Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 00:09:57 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        freebsd-ports@coreland.ath.cx, freebsd-ports@FreeBSD.org
Subject:   GNAT and LAPACK
Message-ID:  <alpine.LSU.1.99.1001080001380.16540@acrux.dbai.tuwien.ac.at>

next in thread | raw e-mail | index | archive | help
> This creates a further problem as installing the math/lapack port 
> requires a Fortran compiler and that means one of the other GCC ports 
> will be compiled as a dependency...
>
> To clarify this confusing situation: The lang/gnat-gcc44 port needs to 
> be able to compile one of it's own (sometimes) runtime dependencies.
>
> I'm happy to enable the C++ and gfortran backends in the lang/gnat-gcc44
> port but I suspect it'll be necessary to update either math/lapack
> or bsd.gcc.mk in order to allow the lang/gnat-gcc44 port to compile
> math/lapack. I do regular builds on 7.2 i386/amd64 and 8.0 i386/amd64
> with "ada,c,c++,fortran" so I'm confident there won't be any serious
> problems with the port itself.
>
> Perhaps somebody with a clue could tell me what the right way to handle 
> this mess is.

I looked into the situation and think the following should work nicely 
given the constraints of the FreeBSD Ports Collection in handling 
dependencies and creating several packages from one build:

 1. Make gnat-gcc44 dependent on gcc44 itself by means of USE_GCC=4.4.
 2. Have math/lapack as another dependency to gnat-gcc44.
 3. Build the minimum necessary as part of gnat-gcc44.  Do not install
    using `make install`, but copy the relevant files to $PREFIX/bin,
    $PREFIX/lib,... manually.

That way the Ports Collection as such will use gcc44 and you will add
the GNAT support from gnat-gcc44 (and only that) on top.

Gerald @FreeBSD.org
-- 
Gerald (Jerry) Pfeifer   gerald@pfeifer.com   http://www.pfeifer.com/gerald/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.1.99.1001080001380.16540>