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: Minor change - more direct hint re: multiple machine sizes and LONG_BIT conflicts
Type: enhancement Stage: patch review
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Michael.Felt
Priority: normal Keywords: patch

Created on 2016-09-29 10:12 by Michael.Felt, last changed 2022-04-11 14:58 by admin.

Pull Requests
URL Status Linked Edit
PR 18313 open Michael.Felt, 2020-02-02 12:59
Messages (1)
msg277695 - (view) Author: Michael Felt (Michael.Felt) * Date: 2016-09-29 10:12
I have been trying to build (pip install) mercurial - for ages. I kept running into this message:

    "/opt/include/python2.7/pyport.h", line 887.2: 1506-205 (S) #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

And - finally, I figured out what I -- WAS -- doing wrong.

I package python as 64-bit, but when I just install python and then try pip install mercurial the message shows up.

The problem goes away when I first export OBJECT_MODE

export OBJECT_MODE=64

The little enhancement would be to change the hint from

... (bad gcc/glibc config?) to something that hints at
machine size, e.g., (bad default bit-size for compiler?)
History
Date User Action Args
2022-04-11 14:58:37adminsetgithub: 72499
2020-02-02 12:59:02Michael.Feltsetkeywords: + patch
stage: patch review
pull_requests: + pull_request17689
2016-09-29 10:12:38Michael.Feltcreate