Help with gfortran

Pedro Giffuni pfg at freebsd.org
Wed Sep 10 01:29:10 UTC 2014


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.


More information about the freebsd-fortran mailing list