Bug 238666

Summary: science/dftbplus: fails to build with GCC 9
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Tobias Kortkamp <tobik>
Status: Closed FIXED    
Severity: Affects Only Me CC: gerald, yuri
Priority: --- Keywords: patch
Version: LatestFlags: tobik: maintainer-feedback-
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 238330    
Attachments:
Description Flags
v1 (has commit message) jbeich: maintainer-approval? (yuri)

Description Jan Beich freebsd_committer freebsd_triage 2019-06-17 13:19:55 UTC
Created attachment 205182 [details]
v1 (has commit message)

USES=fortran consumers cannot use LLVM openmp yet. Trying to mix GNU fortran and LLVM C compiler is also fragile. Why not embrace GCC for everything?

$ echo "DEFAULT_VERSIONS += gcc=9" >>/etc/make.conf
$ make
[...]
/usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.0':
coulomb.f90:(.text+0x42): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
/usr/local/bin/ld: coulomb.f90:(.text+0x176): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
/usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.1':
coulomb.f90:(.text+0xfbc): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
/usr/local/bin/ld: coulomb.f90:(.text+0x1172): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
[...]

http://package22.nyi.freebsd.org/data/112amd64-default-PR238330/2019-06-09_20h29m30s/logs/errors/dftbplus-18.2_6.log
http://package23.nyi.freebsd.org/data/112i386-default-PR238330/2019-06-09_20h28m31s/logs/errors/dftbplus-18.2_6.log
http://package18.nyi.freebsd.org/data/120amd64-default-PR238330/2019-06-09_20h26m27s/logs/errors/dftbplus-18.2_6.log
http://pb2.nyi.freebsd.org/data/120i386-default-PR238330/2019-06-09_20h27m22s/logs/errors/dftbplus-18.2_6.log
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-07-03 10:06:11 UTC
A commit references this bug:

Author: tobik
Date: Wed Jul  3 10:05:47 UTC 2019
New revision: 505742
URL: https://svnweb.freebsd.org/changeset/ports/505742

Log:
  science/dftbplus: Unbreak build with GCC 9

  /usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.0':
  coulomb.f90:(.text+0x42): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
  /usr/local/bin/ld: coulomb.f90:(.text+0x176): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
  /usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.1':
  coulomb.f90:(.text+0xfbc): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
  /usr/local/bin/ld: coulomb.f90:(.text+0x1172): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
  [...]

  PR:		238666
  Submitted by:	jbeich
  Reported by:	antoine (via exp-run in PR 238330)
  Approved by:	yuri (maintainer timeout, 2 weeks)

Changes:
  head/science/dftbplus/Makefile