[Python-bugs-list] [Bug #117109] Compilation Fails if LONG_BIT != 8*SIZEOF_LONG

noreply@sourceforge.net noreply@sourceforge.net
Tue, 17 Oct 2000 14:12:41 -0700


Bug #117109, was updated on 2000-Oct-17 14:08
Here is a current snapshot of the bug.

Project: Python
Category: Parser/Compiler
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: Compilation Fails if LONG_BIT != 8*SIZEOF_LONG

Details: I encountered this problem building Python 2.0 (final release) on a Linux 2.2.17 system (Intel), using libc6 2.95.-1 (Debian distribution).

I don't know what other information to provide, so please let me know I can be of any further assistance.

Follow-Ups:

Date: 2000-Oct-17 14:12
By: dhruvar

Comment:
The error occurs in pyport.h, around here

#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some recent
 * 32-bit platforms using gcc.  We try to catch that here at compile-time
 * rather than waiting for integer multiplication to trigger bogus
 * overflows.
 */
#error "LONG_BIT definition appears wrong for platform (bad gcc config?)."
#endif

The condition evaluates to true on my system, and therefore the build fails.  I was able to work around this by undefining LONG_BIT just before it is tested on line 380.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=117109&group_id=5470