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. -- SteveReceived on Sun May 29 2016 - 00:40:19 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC