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

Discussion in 'Python' started by ashish, Nov 24, 2010.

  1. ashish

    ashish Guest

    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.
    ashish, Nov 24, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page