This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Build fails on Cygwin since issue28180
Type: compile error Stage: resolved
Components: Interpreter Core, Windows Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ncoghlan Nosy List: erik.bray, ncoghlan, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords: patch

Created on 2017-10-26 14:54 by erik.bray, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4134 merged erik.bray, 2017-10-26 14:58
Messages (3)
msg305061 - (view) Author: Erik Bray (erik.bray) * (Python triager) Date: 2017-10-26 14:54
I'm trying once again to get the test suite up to snuff on Cygwin so I can start running a buildbot (particularly now that PEP 539 is done).  However, as of issue28180 the build fails with:

gcc    -o python.exe Programs/python.o libpython3.7m.dll.a -lintl -ldl    -lm
Programs/python.o: In function `main':
./Programs/python.c:81: undefined reference to `_Py_LegacyLocaleDetected'
./Programs/python.c:81:(.text.startup+0x86): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_Py_LegacyLocaleDetected'
./Programs/python.c:82: undefined reference to `_Py_CoerceLegacyLocale'
./Programs/python.c:82:(.text.startup+0x19f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_Py_CoerceLegacyLocale'
collect2: error: ld returned 1 exit status

It seems _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale are missing the necessary PyAPI_FUNC declarations in pylifecycle.h.
msg305105 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2017-10-27 09:46
New changeset 031c4bfadb69feeda82ce886d6b0cadc638d2e1e by Nick Coghlan (Erik Bray) in branch 'master':
bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h (GH-4134)
https://github.com/python/cpython/commit/031c4bfadb69feeda82ce886d6b0cadc638d2e1e
msg305106 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2017-10-27 09:46
Thanks for the patch!
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 76058
2017-10-27 09:46:42ncoghlansetstatus: open -> closed
resolution: fixed
messages: + msg305106

stage: patch review -> resolved
2017-10-27 09:46:09ncoghlansetmessages: + msg305105
2017-10-27 06:51:55mark.dickinsonsettitle: Build fails on Cython since issue28180 -> Build fails on Cygwin since issue28180
2017-10-26 15:56:01serhiy.storchakasetassignee: ncoghlan

components: + Interpreter Core, Windows
nosy: + paul.moore, tim.golden, steve.dower
2017-10-26 15:28:18vstinnersetversions: + Python 3.7
2017-10-26 15:03:08zach.waresetnosy: + ncoghlan, vstinner, zach.ware
2017-10-26 14:58:25erik.braysetkeywords: + patch
stage: patch review
pull_requests: + pull_request4097
2017-10-26 14:54:59erik.braycreate