I have a Fortran application that has built forever on FreeBSD-current;
that is, until recently.  It now dies with the following error:

gfortran48 -O2 -pipe -march=native -mtune=native -static -funroll-loops \
  --param max-unroll-times=4 -ftree-vectorize -Wall\
  -rpath /usr/local/lib/gcc48 -I/home/kargl/modules -o acolor acolor.f90 \
   globalm.o saxm.o  -L/home/kargl/lib -L. -L/usr/local/lib -L. -ltgt -loa \
   -L/home/kargl/lib -L. -L/usr/local/lib -lm90 -llapack -lblas
./liboa.a(pointm.o): In function `__pointm_MOD_l2norm2':
pointm.f90:(.text+0x490): multiple definition of `__pointm_MOD_l2norm2'
/home/kargl/lib/libtgt.a(pointm.o):pointm.f90:(.text+0x0): first defined here

Yes, pointm.o is in both libtgt.a and liboa.a.  In the past, during
linking, the symbols are resolved from the first of -ltgt or -loa
depending on the order on the command line.

The system is amd64 FreeBSD 11.0-CURRENT r300782M.  I tried scanning
the svn-src-head mailing list archive for a possible candidate commit
that is causing the problem.  Unfortunately, there is large volume of
commits silencing errors from static analysis tools.o

Note, the above error does not occur on an i386 FreeBSD 11.0-CURRENT
r300379 system.  

-- 
Steve
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to