Opened 3 years ago

Last modified 6 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 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: MarcusCalhoun-Lopez added; ryandesign removed

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

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 a port:libomp dependency. Marcus added this support to MacPorts so I'll leave him in charge; I don't know anything about openmp myself.

comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)

Should this be assigned to Marcus for comment?

comment:4 Changed 6 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.