[MacPorts] #60780: py38-mkl @2019.0: changing install names or rpaths can't be redone ... because larger updated load commands do not fit (was: py38-mkl @2019.0 Command failed: install_name_tool -add_rpath)

MacPorts noreply at macports.org
Sat Jul 4 07:08:38 UTC 2020


#60780: py38-mkl @2019.0: changing install names or rpaths can't be redone ...
because larger updated load commands do not fit
---------------------+--------------------------
  Reporter:  nasyxx  |      Owner:  cjones051073
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.99
Resolution:          |   Keywords:
      Port:  py-mkl  |
---------------------+--------------------------
Changes (by ryandesign):

 * keywords:  catalina =>
 * status:  new => assigned
 * port:  py38-mkl => py-mkl
 * owner:  (none) => cjones051073


Comment:

 > {{{
 > changing install names or rpaths can't be redone ... because larger
 updated load commands do not fit (the program must be relinked, and you
 may need to use -headerpad or -headerpad_max_install_names
 > }}}

 MacPorts puts `-headerpad_max_install_names` into `configure.ldflags`
 automatically specifically so that `install_name_tool` can be used in this
 way, but this build isn't making use of MacPorts `configure.ldflags` (and
 it probably should be).

 I'm not entirely sure where the problem is. I see that the port is
 disabling the build phase and doing its building and installing together
 in the destroot phase, which is weird; ports should usually build in the
 build phase and install in the destroot phase. If fixing that doesn't fix
 the problem, then I would examine the python 1.0 portgroup. It's possible
 this problem affects all python modules. I don't see the string
 `configure.ldflags` anywhere in the python portgroup, which surprises me.
 For comparison, I do see `configure.cflags` and `configure.cxxflags` used
 there.

 This problem may be affecting you especially, and might not be apparent
 when we build it, because you're using a custom MacPorts prefix
 (/Users/Nasy/.macports) that is longer than the default prefix
 (/opt/local).

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


More information about the macports-tickets mailing list