python / cpython

The Python programming language
https://www.python.org/
Other
59.76k stars 28.96k forks source link

2.1a Mac OSX build fails on "-lm" switch #33787

Closed 1f758259-2d8b-450e-8266-8bfd902bdc65 closed 23 years ago

1f758259-2d8b-450e-8266-8bfd902bdc65 commented 23 years ago
BPO 229833
Nosy @akuchling

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: ```python assignee = 'https://github.com/akuchling' closed_at = created_at = labels = ['build'] title = '2.1a Mac OSX build fails on "-lm" switch' updated_at = user = 'https://bugs.python.org/sdm7g' ``` bugs.python.org fields: ```python activity = actor = 'akuchling' assignee = 'akuchling' closed = True closed_date = None closer = None components = ['Build'] creation = creator = 'sdm7g' dependencies = [] files = [] hgrepos = [] issue_num = 229833 keywords = [] message_count = 3.0 messages = ['3056', '3057', '3058'] nosy_count = 2.0 nosy_names = ['akuchling', 'sdm7g'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue229833' versions = [] ```

1f758259-2d8b-450e-8266-8bfd902bdc65 commented 23 years ago

The new setup.py system hardwires the -lm switch with "libraries=['m']" in several places (rather than getting switches from a config file)

This breaks the Mac OSX/Darwin build as that system has no libm -- those functions are folded into the system framework. ( There's been some discussion on the Darwin dev. list of putting fake stub libraries into /usr/lib to solve this, but if it happens, it won't happen for a while. )

1f758259-2d8b-450e-8266-8bfd902bdc65 commented 23 years ago

I only submitted this bug once, but for some reason, reading it in the browser and returning to the buglist seems to cause it to be duplicated! --Steve.

akuchling commented 23 years ago

Apparently fixed in revision 1.13 of setup.py; thanks!