Opened 4 years ago
Last modified 13 months ago
#61390 new defect
compiler.openmp_version doesn't set configure.ldflags -L${prefix}/lib/libomp -lomp with port groups cmake+python
Reported by: | essandess (Steve Smith) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.6.3 |
Keywords: | openmp, omp | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), cooljeanius (Eric Gallager) |
Port: | py-faiss, libomp |
Description
compiler.openmp_version 2.5
doesn't set configure.ldflags -L${prefix}/lib/libomp -lomp
in a Portfile that also uses port groups cmake
and python
.
It is necessary to add these flags explicitly to avoid a linking error.
Reference: https://github.com/macports/macports-ports/pull/7514#issuecomment-719904216
Change History (4)
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | MarcusCalhoun-Lopez added; ryandesign removed |
---|
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 4 years ago by mascguy (Christopher Nielsen)
Should this be assigned to Marcus for comment?
comment:4 Changed 13 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
Note: See
TracTickets for help on using
tickets.
As far as I can tell from reading browser:macports-base/src/port1.0/portconfigure.tcl, the only thing MacPorts does when you set
compiler.openmp_version
is pick a compatible compiler and add aport:libomp
dependency. Marcus added this support to MacPorts so I'll leave him in charge; I don't know anything about openmp myself.