Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Sep 2014 20:23:30 -0500
From:      Pedro Giffuni <pfg@freebsd.org>
To:        fortran@FreeBSD.org
Subject:   Re: Help with gfortran
Message-ID:  <540FA812.1050606@freebsd.org>
In-Reply-To: <540E18DB.3020006@freebsd.org>
References:  <540E18DB.3020006@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
JFYI ... I found it.


On 09/08/14 16:00, Pedro Giffuni wrote:
> Hi;
>
> I had a try at resurrecting the long-ago-extinct elmer-fem port.
> WIP:
>
> https://people.freebsd.org/~pfg/ports/elmerfem.tar.gz
>
> Unfortunately I seem stuck in an error:
> ____
> ...
> gfortran47 -Wl,-rpath=/usr/local/lib/gcc47 -fPIC   -I. -Ibinio 
> -I../binio -c ViewFactors.f90
> gfortran47    -L. 
> -L/usr/ports/cad/elmerfem/work/stage/usr/local/elmer/lib \
>       -o ViewFactors ViewFactors.o mpi_stubs.o \
>       -L. -lelmersolver viewaxis/libviewaxis.a view3d/libview3d.a 
> -L/usr/local/lib -lblas -L/usr/lib -lc++ -lm -lgcc_s -lgcc_s

The main problem was that it was trying to link the C++ libraries here 
at the end and it was finding libstdc++. In this port I am using 
gfortran with clang. I did as in the windows case, I just removed the 
C++ stuff and now I got it to build.

I still have to do some testing before I finish the port.

While here, I think it should be possible to drop libstdc++ into an 
independent port and have all the  g++ ports use libc++ by default.

Pedro.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540FA812.1050606>