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.

Author Trevor.Bowen
Recipients Trevor.Bowen, pitrou, r.david.murray
Date 2013-10-08.17:06:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381251984.44.0.0404308704024.issue19142@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, David!  I have no interest in running pgen on the target/host.  My only interest is building python and its various modules to run on my embedded host.  I do not want to develop Python on the embedded host.  Unfortunately, the build process requires Parser/pgen to build the grammar files, which are needed for several object files.  Here's the relevant snippet from the Makefile.pre.in:

$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
        @$(MKDIR_P) Include
        $(MAKE) $(PGEN)
        $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
        $(MAKE) $(GRAMMAR_H)
        touch $(GRAMMAR_C)

$(PGEN):    $(PGENOBJS)
        $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)

Parser/grammar.o:   $(srcdir)/Parser/grammar.c \
                $(srcdir)/Include/token.h \
                $(srcdir)/Include/grammar.h
...
Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)

If there is a way to eliminate the need for Parser/pgen to run on the build system to cross-compile the default "all" target, that would be great. ... I'll experiment with "make touch". ... Thanks!
History
Date User Action Args
2013-10-08 17:06:24Trevor.Bowensetrecipients: + Trevor.Bowen, pitrou, r.david.murray
2013-10-08 17:06:24Trevor.Bowensetmessageid: <1381251984.44.0.0404308704024.issue19142@psf.upfronthosting.co.za>
2013-10-08 17:06:24Trevor.Bowenlinkissue19142 messages
2013-10-08 17:06:24Trevor.Bowencreate