No rule to make target `Parser/printgrammar.o'

ashish agarwal1975 at gmail.com
Wed Nov 24 16:41:56 EST 2010


I'm trying to compile Python from source and get the same error on
RedHat and Mac OS X. I did not pass any options to configure. The
error occurs immediately.

Redhat:~/Downloads/Python-2.7$ make
gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -
Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -
o Modules/python.o ./Modules/python.c
make: *** No rule to make target `Parser/printgrammar.o', needed by
`Parser/pgen'.  Stop.

MacOSX:Python-2.7$ make
gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
make: *** No rule to make target `Parser/printgrammar.o', needed by
`Parser/pgen'.  Stop.



More information about the Python-list mailing list