Hi all Looks like I'm the one with all the complaints :) Thanks for investigating the Windows issues! I'm trying to compile pypy-c on a Linux/x86 machine, and running into all sorts of errors. Following the instructions in the getting- started document, I installed ctypes, pygame and graphviz. After that I run the translator tool and get the following errors. Any ideas what I might be missing? Thanks Raj bash-2.05b$ /local/python/bin/python translate.py --run --text targetpypystandalone.py [translation:info] Translating target as defined by targetpypystandalone [translation] PyPy config object: [translation] [objspace] [translation] compiler = ast [translation] nofaking = True [translation] [usemodules] [translation] errno = True [translation] posix = True [translation] time = True --- beginning of app_example.py --- 42 --- end of app_example.py --- [translation] translate.py configuration: [translation] [translate] [translation] [goal_options] [translation] run = True [translation] targetspec = targetpypystandalone [translation] text = True [translation] translation configuration: [translation] [translation] [translation:info] Annotating&simplifying... [translation:info] with policy: pypy.translator.goal.ann_override.PyPyAnnotatorPolicy ++++++++++++++***********************%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%% ######################################################################## #####%%%%%%%%%*********** ++++++++++++********************%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%##%%% ######################################################################## ####%%%%%%%%%%%%%%******** ++++++++++*******************%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% ######################################################################## ###########%%%%%%%%%%%%%%%%%****** ++++++++******************%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%% ######################################################################## ###########%%%%%%%#%%%%%%%%%%*** ++++++*****************%%%%%####%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%#% ################################################################### [translation:ERROR] Error: [translation:ERROR] Traceback (most recent call last): [translation:ERROR] File "translate.py", line 287, in main [translation:ERROR] drv.proceed(goals) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/translator/ driver.py", line 709, in proceed [translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/translator/ tool/taskengine.py", line 112, in _execute [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/translator/ driver.py", line 260, in _do [translation:ERROR] res = func() [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/translator/ driver.py", line 279, in task_annotate [translation:ERROR] s = annotator.build_types(self.entry_point, self.inputtypes) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 101, in build_types [translation:ERROR] return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 192, in build_graph_types [translation:ERROR] self.complete() [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 248, in complete [translation:ERROR] self.processblock(graph, block) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 477, in processblock [translation:ERROR] self.flowin(graph, block) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 537, in flowin [translation:ERROR] self.consider_op(block.operations[i]) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 739, in consider_op [translation:ERROR] raise_nicer_exception(op, str(graph)) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ annrpython.py", line 736, in consider_op [translation:ERROR] resultcell = consider_meth(*argcells) [translation:ERROR] File "<string>", line 3, in consider_op_simple_call [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ unaryop.py", line 166, in simple_call [translation:ERROR] return obj.call(getbookkeeper().build_args ("simple_call", args_s)) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ unaryop.py", line 597, in call [translation:ERROR] return bookkeeper.pbc_call(pbc, args) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ bookkeeper.py", line 641, in pbc_call [translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result)) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ description.py", line 266, in pycall [translation:ERROR] result = self.specialize(inputcells) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ description.py", line 262, in specialize [translation:ERROR] return self.specializer(self, inputcells) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ specialize.py", line 64, in default_specialize [translation:ERROR] return funcdesc.cachedgraph(key, alt_name=alt_name) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ description.py", line 227, in cachedgraph [translation:ERROR] graph = self.buildgraph(alt_name, builder) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/annotation/ description.py", line 194, in buildgraph [translation:ERROR] graph = translator.buildflowgraph(self.pyobj) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/translator/ translator.py", line 77, in buildflowgraph [translation:ERROR] graph = space.build_flow(func) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/objspace/ flow/objspace.py", line 261, in build_flow [translation:ERROR] ec.build_flow() [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/objspace/ flow/flowcontext.py", line 302, in build_flow [translation:ERROR] self.mergeblock(e.block, e.currentstate) [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/objspace/ flow/flowcontext.py", line 348, in mergeblock [translation:ERROR] finished = newstate == block.framestate [translation:ERROR] File "/local/rajb/pypy-1.0.0/pypy/objspace/ flow/framestate.py", line 76, in __eq__ [translation:ERROR] assert len(self.mergeable) == len (other.mergeable) [translation:ERROR] AssertionError': [translation:ERROR] .. v4 = simple_call(v0, space_0, v1, v2, v3) [translation:ERROR] .. '(?:2) BuiltinActivation_UwS_ObjSpace_W_Root_W_Root_W_Root._run_UWS_ObjSpace_W_ Root_W_Root_W_Root' [translation:ERROR] Processing block: [translation:ERROR] block@3 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'> [translation:ERROR] in (?:2) BuiltinActivation_UwS_ObjSpace_W_Root_W_Root_W_Root._run_UWS_ObjSpace_W_ Root_W_Root_W_Root [translation:ERROR] containing the following operations: [translation:ERROR] v0 = getattr(self_0, ('behavior')) [translation:ERROR] v1 = getitem(scope_w_0, (0)) [translation:ERROR] v2 = getitem(scope_w_0, (1)) [translation:ERROR] v3 = getitem(scope_w_0, (2)) [translation:ERROR] v4 = simple_call(v0, space_0, v1, v2, v3) [translation:ERROR] --end-- [translation] start debugger...
/local/rajb/pypy-1.0.0/pypy/objspace/flow/framestate.py(76)__eq__() -> assert len(self.mergeable) == len(other.mergeable) (Pdb+)
Raj Bandyopadhyay wrote:
Hi all
Looks like I'm the one with all the complaints :) Thanks for investigating the Windows issues!
I'm trying to compile pypy-c on a Linux/x86 machine, and running into all sorts of errors. Following the instructions in the getting- started document, I installed ctypes, pygame and graphviz. After that I run the translator tool and get the following errors. Any ideas what I might be missing?
Thanks Raj
Casual question - what version of pypy are you trying? Try svn checkout (I don't think it's very recent checkout what you have, although I'm not sure) Cheers, fijal :.
I'll try it and let you know. I downloaded to pypy-1.0.0 distribution tarball. Thanks Raj On Oct 22, 2007, at 11:38 AM, Maciek Fijalkowski wrote:
Raj Bandyopadhyay wrote:
Hi all
Looks like I'm the one with all the complaints :) Thanks for investigating the Windows issues!
I'm trying to compile pypy-c on a Linux/x86 machine, and running into all sorts of errors. Following the instructions in the getting- started document, I installed ctypes, pygame and graphviz. After that I run the translator tool and get the following errors. Any ideas what I might be missing?
Thanks Raj
Raj Bandyopadhyay wrote:
I'll try it and let you know. I downloaded to pypy-1.0.0 distribution tarball.
We also would like to know which version of CPython you have. cheers - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
I have Python 2.5.1. I have currently downloaded the latest pypy from subversion, and it seems to be compiling happily for the last 10 mins or so. Raj On Oct 22, 2007, at 1:21 PM, Christian Tismer wrote:
Raj Bandyopadhyay wrote:
I'll try it and let you know. I downloaded to pypy-1.0.0 distribution tarball.
We also would like to know which version of CPython you have.
cheers - chris
Ok, the compilation failed after quite a while. I have attached the output file of the compilation process. It seems to have failed on some simple C undeclared-variable error. Thanks Raj On Oct 22, 2007, at 1:21 PM, Christian Tismer wrote:
Raj Bandyopadhyay wrote:
I'll try it and let you know. I downloaded to pypy-1.0.0 distribution tarball.
We also would like to know which version of CPython you have.
cheers - chris
Raj Bandyopadhyay wrote:
Ok, the compilation failed after quite a while. I have attached the output file of the compilation process. It seems to have failed on some simple C undeclared-variable error.
Thanks Raj
You don't have boehm (devel version) installed. Install it, go to /tmp/usession-<user>/testing_1/ and type make. You'll have your pypy-c under name testing_1 :.
Raj Bandyopadhyay wrote:
Ok, the compilation failed after quite a while. I have attached the output file of the compilation process. It seems to have failed on some simple C undeclared-variable error.
Great result, so far. Compiling pypy should alas not be done without reading the getting started document. Either set the gc to something different, or install the boehm gc source package. cheers - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
Hmm, I have installed the gc already, but maybe the library path is not set correctly. lemme try changing that & I'll let you guys know what happens. Thanks Raj On Oct 22, 2007, at 7:51 PM, Christian Tismer wrote:
Raj Bandyopadhyay wrote:
Ok, the compilation failed after quite a while. I have attached the output file of the compilation process. It seems to have failed on some simple C undeclared-variable error.
Great result, so far.
Compiling pypy should alas not be done without reading the getting started document. Either set the gc to something different, or install the boehm gc source package.
cheers - chris
Yes, that's the problem, in fact. Stupid question, but how (or where) do I set the include path for the C compiler to find the header? I can't find anything resembling a Makefile. Thanks again! Raj On Oct 23, 2007, at 4:15 AM, Maciek Fijalkowski wrote:
Raj Bandyopadhyay wrote:
Hmm, I have installed the gc already, but maybe the library path is not set correctly. lemme try changing that & I'll let you guys know what happens.
Thanks Raj Libgc might be there, but header aren't (developement version of lib)
:.
Raj Bandyopadhyay wrote:
Yes, that's the problem, in fact. Stupid question, but how (or where) do I set the include path for the C compiler to find the header? I can't find anything resembling a Makefile.
If you are on debian, just install the source package apt-get install libgc-dev This installs the header files into common directories like /usr/lib cheers - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
I don't have admin perms on the machine I'm using :( Raj On Oct 23, 2007, at 9:56 AM, Christian Tismer wrote:
Raj Bandyopadhyay wrote:
Yes, that's the problem, in fact. Stupid question, but how (or where) do I set the include path for the C compiler to find the header? I can't find anything resembling a Makefile.
If you are on debian, just install the source package
apt-get install libgc-dev
This installs the header files into common directories like /usr/lib
cheers - chris
Raj Bandyopadhyay wrote:
I don't have admin perms on the machine I'm using :(
Then either ask your sysop to install it, or get the source distro, build it locally, and then you are slightly on your own. One proposal from #pypy was to just run the translation and let compilation crash (this is where you are now), then edit the Makefile which is there and add what's needed to the INCLUDEDIRS variable. Then do a make, and you should be fine. cheers - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
Christian Tismer wrote:
Raj Bandyopadhyay wrote:
I don't have admin perms on the machine I'm using :(
Then either ask your sysop to install it, or get the source distro, build it locally, and then you are slightly on your own.
One proposal from #pypy was to just run the translation and let compilation crash (this is where you are now), then edit the Makefile which is there and add what's needed to the INCLUDEDIRS variable.
Then do a make, and you should be fine.
I was just told that translate.py has a --cflags option, so you should be able to pass your extra -I options in there. cheers - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
On Tue, 23 Oct 2007 09:45:29 -0500 Raj Bandyopadhyay <rajb@rice.edu> wrote:
Yes, that's the problem, in fact. Stupid question, but how (or where) do I set the include path for the C compiler to find the header? I can't find anything resembling a Makefile.
there is a Makefile somewhere here: /tmp/usession-* Simon.
participants (4)
-
Christian Tismer -
Maciek Fijalkowski -
Raj Bandyopadhyay -
Simon Burton