Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2016 19:27:02 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-current@freebsd.org
Subject:   Recent seems to have broken toolchain
Message-ID:  <20160529022702.GA57282@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
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



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