math/R fails to build

bf bf2006a at yahoo.com
Tue Jan 13 20:17:28 PST 2009


--- On Tue, 1/13/09, Glen Barber <glen.j.barber at gmail.com> wrote:

> From: Glen Barber <glen.j.barber at gmail.com>
> Subject: Re: math/R fails to build
> To: "Philipp Ost" <pj at smo.de>
> Cc: bf2006a at yahoo.com, ports at freebsd.org
> Date: Tuesday, January 13, 2009, 8:03 PM
> On Tue, Jan 13, 2009 at 5:10 PM, Philipp Ost
> <pj at smo.de> wrote:
> > Hi,
> >
> > math/R fails to build:
> > # make
> > [...]
> > cc -std=gnu99      -I. -I../../src/include
> -I../../src/include
> > -I/usr/local/include -DHAVE_CONFIG_H  -fpic  -O2
> -fno-strict-aliasing -pipe
> > -march=athlon-xp -c Rmain.c -o Rmain.o
> > cc -std=gnu99 -export-dynamic -L/usr/local/lib -o
> R.bin Rmain.o -L../../lib
> > -lR
> > /usr/local/lib/libblas.so.2: undefined reference to
> > `_gfortran_runtime_error_at'
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R/work/R-2.8.1/src/main.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R/work/R-2.8.1/src/main.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R/work/R-2.8.1/src.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R/work/R-2.8.1.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R.
> > *** Error code 1
> >
> > Stop in /usr/ports/math/R.
> > #
> >
> > I run RELENG_7 as of 23 Dec. 2008 (on i386).
> >
> > Any hints? (Apart from rebuilding blas, which I did.
> It didn't solve the
> > problem)
> >
> 
> Is it a safe assumption that you have recently updated your
> ports tree?
> 
> -- 
> Glen Barber

There were recently some changes to
the organization of the Fortran-related
ports on FreeBSD.  The Fortran compiler
was added to the list of runtime
dependencies, as it should have been,
and the default Fortran compiler was
changed from gcc 4.2.x to 4.3.x.  As
Glen suggested, your problem may be
related.  Try updating your ports tree,
and then rebuilding blas, lapack,
and R, and see if it works.  If you
haven't done so after the changes,
you may also have to fetch and build
gcc 4.3.x, which may take some time
and disk space, so be prepared to keep
half an eye on your build.  Let me know
if that doesn't solve your problem.

Regards,
           b.


      


More information about the freebsd-ports mailing list