[Python-bugs-list] [Bug #122168] Does not compile on RH 7.0

noreply@sourceforge.net noreply@sourceforge.net
Sat, 11 Nov 2000 10:09:55 -0800

Bug #122168, was updated on 2000-Nov-10 17:40
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: Invalid
Bug Group: Platform-specific
Priority: 5
Summary: Does not compile on RH 7.0

Details: Just another program which seems not to compile under RH7.0. The following output occurs:

cd Parser ; make OPT="-g -O2 -Wall -Wstrict-prototypes" VERSION="2.0" \
		prefix="/usr/local" exec_prefix="/usr/local" all
make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/redhat/BUILD/Python-2.0/Parser«
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H   -c -o pgenmain.o pgenmain.c
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H   -c -o acceler.o acceler.c
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H   -c -o grammar1.o grammar1.c
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H   -c -o listnode.o listnode.c
gcc -g -O2 -Wall -Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H   -c -o node.o node.c
In file included from ../Include/Python.h:54,
                 from node.c:3:
../Include/pyport.h:390:2: #error "LONG_BIT definition appears wrong for platform (bad gcc config?)."
make[1]: *** [node.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/redhat/BUILD/Python-2.0/Parser«
make: *** [Parser] Fehler 2


Date: 2000-Nov-11 10:09
By: gvanrossum

The GCC version that comes with Red Hat 7.0 is not fit for

In particular, it defines LONG_BIT as 64 on 32-bit machines under
certain circumstances, and letting this go unchecked would cause
it to generate bad code for various Python arithmetic operations.

The solution is to download a valid version of GCC.

--Guido van Rossum

For detailed info, follow this link: