[MacPorts] #71255: py-matplotlib 3.9.2_0: missing symbols on macOS 10.13 (High Sierra) (was: matplotlib 3.9.2_0 doesn't work on MacOS 10.13 (High Sierra))

MacPorts noreply at macports.org
Thu Nov 7 02:43:36 UTC 2024


#71255: py-matplotlib 3.9.2_0: missing symbols on macOS 10.13 (High Sierra)
----------------------------+------------------------
  Reporter:  simonradford   |      Owner:  reneeotten
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.10.4
Resolution:                 |   Keywords:
      Port:  py-matplotlib  |
----------------------------+------------------------
Changes (by reneeotten):

 * status:  new => assigned
 * cc: kencu (added)
 * keywords:  matplotlib, high sierra =>
 * owner:  (none) => reneeotten
 * port:  py312-matplotlib, py311-matplotlib, => py-matplotlib


Comment:

 hi Simon, sorry for the trouble....

 This seems to be the same issue as the upstream reported one
 [https://github.com/matplotlib/matplotlib/issues/28357 here]. The
 suggestion is to (1) disable LTO or (3) use a version of {{{ar}}} that is
 aware of it. Of note, in that upstream bug report GCC is used as the
 compiler, but I suspect that Clang will have similar options.

 The first can likely be done by adding the following line to the Portfile
 (I have no way of testing this myself, but if you're up to it please give
 it a try and see if that resolves your issue on HS):
 {{{
 build.args-append -Csetup-args="-Db_lto=false"
 }}}

 Admittedly, both options are a bit of black-magic to me and I am not
 completely sure what would be the best option (or how to accomplish the
 second suggestion) and figure out on which OSes this would be needed. As
 you said it works on modern OSes, which is where I tested it.

 Ken: would you be able to educate us (or at least me) on what upstream
 suggests here - I added you to CC in hopes you'll see this ;)

-- 
Ticket URL: <https://trac.macports.org/ticket/71255#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list