You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OSX C++ linking workaround in distutils breaks other packages #76579
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-05-23.00:32:10.044>created_at=<Date2017-12-21.17:22:59.107>labels= ['OS-mac', 'type-bug', 'library']
title='OSX C++ linking workaround in distutils breaks other packages'updated_at=<Date2020-05-23.00:32:10.043>user='https://github.com/esuarezsantana'
Please describe the problem and your proposed solution in more detail and in terms of CPython, so that it can be discussed by the relevant experts. GDAL is a third party product and only relevant as an example, so it would also be good to come up with a better title for the issues ;)
As I mentioned on the pull request it is not clear to me what the actual issue is.
What are the settings for building that cause problems? In particular, what are the compiler/linker related variables in Python's Makefile (and _sysconfigdata.py)?
With the currently available information I'm -1 w.r.t accepting the attached pull request.
I'm going to close this as the OP hasn't responded in over 2 years and Ronald was -1 on the solution. If the OP or someone else experiences this same problem, either this issue or a new one can be opened to address it. Thank you!
Activity
esuarezsantana commentedon Dec 21, 2017
When compiling GDAL with python support, under certain build chain environment variables, next error may appear when building and linking python extensions (https://www.mail-archive.com/freebsd-ports@freebsd.org/msg41030.html):
/bin/sh: -d: invalid option
See the Github PR for proposed solution.
bitdancer commentedon Dec 21, 2017
Please describe the problem and your proposed solution in more detail and in terms of CPython, so that it can be discussed by the relevant experts. GDAL is a third party product and only relevant as an example, so it would also be good to come up with a better title for the issues ;)
[-]GDAL compilation error[/-][+]OSX C++ linking workaround in distutils breaks other packages[/+]esuarezsantana commentedon Dec 21, 2017
When compiling GDAL with python support, before Lib/distutils/unixccompiler.py:180,
and after the workaround code:
which leads to next error:
/bin/sh: -d: invalid option
Some fixes to compilation (https://www.michael-joost.de/gdal_install.html) have been found, but anyway the existing workaround:
...is a hack about OSX but there is no platform checking,
...assumes linker and compiler commands have similar structure and
environment settings (no documentation reference found about that), and
...assumes
env, if used, does not come with any modifier.My proposal is to remove the workaround and delegate right environmental variables to packagers.
bitdancer commentedon Dec 21, 2017
I doubt we can make the change this way for backward compatibility reasons. That doesn't mean the situation can't be improved, though.
ronaldoussoren commentedon Dec 24, 2017
As I mentioned on the pull request it is not clear to me what the actual issue is.
What are the settings for building that cause problems? In particular, what are the compiler/linker related variables in Python's Makefile (and _sysconfigdata.py)?
With the currently available information I'm -1 w.r.t accepting the attached pull request.
csabella commentedon May 23, 2020
I'm going to close this as the OP hasn't responded in over 2 years and Ronald was -1 on the solution. If the OP or someone else experiences this same problem, either this issue or a new one can be opened to address it. Thank you!