[Bug 214965] Mk/Uses/fortran.mk lang/gcc: bump PORTREVISION of ports using gfortran
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 30 21:41:45 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214965
Bug ID: 214965
Summary: Mk/Uses/fortran.mk lang/gcc: bump PORTREVISION of
ports using gfortran
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: thierry at FreeBSD.org
CC: freebsd-ports-bugs at FreeBSD.org
Created attachment 177558
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177558&action=edit
Example from french/aster configure
After the upgrade of lang/gcc to gcc-4.9.4, and thus the upgrade of gfortran,
all PORTREVISION of ports installing libraries built with gfortran should have
been bumped.
Without that, packages built with the previous version and mixed with the
current version abort with the following message:
/lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc49/libgfortran.so.3 not found
How to reproduce the error, e.g. with blas lapack:
- compile the attached test.c with
cc -c -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC test.c -c -o
test.c.1.o
- link it with
cc -Wl,--allow-multiple-definition -Wl,-rpath=/usr/local/lib/gcc49
-Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 -B/usr/local/bin
-L/usr/local/lib test.c.1.o -o testprog -Wl,-Bstatic -Wl,-Bdynamic
-L/usr/local/lib -lblas -llapack -lgfortran -lm -lkvm -Xlinker -export-dynamic
-lutil -lpthread -lz
- run
./testprog
/lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc49/libgfortran.so.3 not found
- Bump PORTREVISION of math/lapack
- rebuild math/lapack and math/blas
- redo the previous test
=> no more error!
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list