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
[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
[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
[annrpython:WARNING] <FunctionGraph of
(pypy.module._pickle_support.maker:73)generator_new at 0xb4a05b6c> [EMAIL
PROTECTED] op=0/ demoting method unpack to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.gateway:495)BuiltinCodePassThroughArguments0.funcrun at
0xb5eefcfc> [EMAIL PROTECTED] op=0/ demoting method firstarg to base class
<ClassDef 'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.argument:19)AbstractArguments.parse_into_scope at 0xb5fae964>
[EMAIL PROTECTED] op=0/ demoting method _match_signature to base class
<ClassDef 'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.objspace.std.objecttype:41)descr__new__ at 0xb375ae64> [EMAIL PROTECTED]
op=0/ demoting method fixedunpack to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyopcode:1072)FrameBlock.handle at 0xb0e491bc> [EMAIL
PROTECTED] op=0/ demoting method really_handle to base class <ClassDef
'pypy.interpreter.pyopcode.FrameBlock'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyparser.grammar:230)GrammarElement.match at 0xb0d6db94>
[EMAIL PROTECTED] op=0/ demoting method peek to base class <ClassDef
'pypy.interpreter.pyparser.grammar.TokenSource'>
[annrpython:WARNING] <FunctionGraph of
(pypy.rlib.rsre.rsre_core_all:176)fast_search at 0xb2646c34> [EMAIL PROTECTED]
op=0/ demoting method get_char_ord to base class <ClassDef
'pypy.module._sre.interp_sre.W_State'>
[annrpython:WARNING] <FunctionGraph of
(pypy.objspace.std.formatting:41)BaseStringFormatter.std_wp_int at 0xb04eb2fc>
[EMAIL PROTECTED] op=0/ demoting method std_wp_number to base class <ClassDef
'pypy.objspace.std.formatting.BaseStringFormatter'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyframe:228)PyFrame.make_arguments at 0xb04dacac> [EMAIL
PROTECTED] op=1/ demoting method _match_signature to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyframe:228)PyFrame.make_arguments at 0xb04dacac> [EMAIL
PROTECTED] op=1/ demoting method firstarg to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyframe:228)PyFrame.make_arguments at 0xb04dacac> [EMAIL
PROTECTED] op=1/ demoting method fixedunpack to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyframe:228)PyFrame.make_arguments at 0xb04dacac> [EMAIL
PROTECTED] op=1/ demoting method unpack to base class <ClassDef
'pypy.interpreter.argument.AbstractArguments'>
[annrpython:WARNING] <FunctionGraph of
(pypy.interpreter.pyparser.astbuilder:282)build_test at 0xb0474e14> [EMAIL
PROTECTED] op=1/ demoting method get_value to base class <ClassDef
'pypy.interpreter.astcompiler.ast.Node'>
[translation:info] All exceptblocks seem sane
[translation:info] No lost method defs
[translation:info] -- someobjectness 0% (0 of 9802 functions polluted by
SomeObjects)
[translation:info] RTyping...
[rtyper:WARNING] Desc <FrozenDesc for <StdTypeDef name='basestring'>> has no
attribute '$memofield_getorbuild_2'
[rtyper] specializing: 2500 / 48057 blocks (5%)
[rtyper] specializing: 4900 / 48765 blocks (10%)
[rtyper] specializing: 7400 / 49136 blocks (15%)
[rtyper] specializing: 9900 / 49436 blocks (20%)
[rtyper] specializing: 12500 / 49842 blocks (25%)
[rtyper] specializing: 15100 / 50113 blocks (30%)
[rtyper] specializing: 17700 / 50329 blocks (35%)
[rtyper] specializing: 20300 / 50535 blocks (40%)
[rtyper] specializing: 22800 / 50660 blocks (45%)
[rtyper] specializing: 25500 / 50849 blocks (50%)
[rtyper] specializing: 28100 / 51044 blocks (55%)
[rtyper] specializing: 30800 / 51236 blocks (60%)
[rtyper] specializing: 33500 / 51428 blocks (65%)
[rtyper] specializing: 36200 / 51604 blocks (70%)
[rtyper] specializing: 38800 / 51729 blocks (75%)
[rtyper] specializing: 41600 / 51927 blocks (80%)
[rtyper] specializing: 44300 / 52012 blocks (85%)
[rtyper] specializing: 47000 / 52123 blocks (90%)
[rtyper] specializing: 47100 / 52123 blocks (90%)
[rtyper] specializing: 49600 / 52123 blocks (95%)
[rtyper] -=- specialized 52123 blocks -=-
[rtyper] specializing: 52200 / 53096 blocks (98%)
[rtyper] specializing: 53100 / 53119 blocks (99%)
[rtyper] -=- specialized 996 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[rtyper] -=- specialized 13 more blocks -=-
[translation:info] lltype back-end optimisations...
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic:
pypy.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 31315 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 3648 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] inserting stack checks...
[rtyper] -=- specialized 7 more blocks -=-
[translation:info] Creating database for generating c source...
[rtyper] -=- specialized 12 more blocks -=-
[rtyper] specializing: 53200 / 53222 blocks (99%)
[rtyper] -=- specialized 71 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic:
pypy.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 11 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 10 more blocks -=-
[c] 1000 nodes [ array: 196 boehm rtti: 32 func: 199 struct: 2115 ]
[c] 2000 nodes [ array: 332 boehm rtti: 33 func: 250 struct: 3215 ]
[c] 3000 nodes [ array: 497 boehm rtti: 37 func: 299 struct: 3785 ]
[c] 4000 nodes [ array: 773 boehm rtti: 39 func: 374 struct: 4626 ]
[c] 5000 nodes [ array: 1036 boehm rtti: 42 func: 463 struct: 5183 ]
[c] 6000 nodes [ array: 1175 boehm rtti: 47 func: 556 struct: 6124 ]
[c] 7000 nodes [ array: 1420 boehm rtti: 56 func: 856 struct: 7363 ]
[c] 8000 nodes [ array: 1621 boehm rtti: 60 func: 933 struct: 8124 ]
[c] 9000 nodes [ array: 1725 boehm rtti: 66 func: 1048 struct: 9996 ]
[c] 10000 nodes [ array: 2046 boehm rtti: 66 func: 1186 struct: 11172 ]
[c] 11000 nodes [ array: 2162 boehm rtti: 67 func: 1352 struct: 12112 ]
[c] 12000 nodes [ array: 2204 boehm rtti: 70 func: 1367 struct: 13956 ]
[c] 13000 nodes [ array: 2271 boehm rtti: 70 func: 1429 struct: 15494 ]
[c] 14000 nodes [ array: 2436 boehm rtti: 70 func: 1483 struct: 17645 ]
[c] 15000 nodes [ array: 2532 boehm rtti: 71 func: 1625 struct: 18383 ]
[c] 16000 nodes [ array: 2645 boehm rtti: 74 func: 1827 struct: 19148 ]
[c] 17000 nodes [ array: 2675 boehm rtti: 74 func: 1827 struct: 19931 ]
[c] 18000 nodes [ array: 2788 boehm rtti: 75 func: 1858 struct: 24828 ]
[c] 19000 nodes [ array: 2939 boehm rtti: 75 func: 1933 struct: 25555 ]
[c] 20000 nodes [ array: 2960 boehm rtti: 75 func: 1955 struct: 26915 ]
[c] 21000 nodes [ array: 3015 boehm rtti: 75 func: 2003 struct: 28010 ]
[c] 22000 nodes [ array: 3078 boehm rtti: 80 func: 2052 struct: 28530 ]
[c] 23000 nodes [ array: 3244 boehm rtti: 85 func: 2196 struct: 28963 ]
[c] 24000 nodes [ array: 3472 boehm rtti: 99 func: 2335 struct: 29405 ]
[c] 25000 nodes [ array: 3755 boehm rtti: 101 func: 2356 struct: 30090 ]
[c] 26000 nodes [ array: 3755 boehm rtti: 101 func: 2356 struct: 30490 ]
[c] 27000 nodes [ array: 3782 boehm rtti: 101 func: 2356 struct: 30681 ]
[c] 28000 nodes [ array: 3782 boehm rtti: 101 func: 2356 struct: 30949 ]
[c] 29000 nodes [ array: 3782 boehm rtti: 101 func: 2356 struct: 31040 ]
[c] 30000 nodes [ array: 3992 boehm rtti: 109 func: 2476 struct: 31884 ]
[c] 31000 nodes [ array: 4109 boehm rtti: 109 func: 2518 struct: 32556 ]
[c] 32000 nodes [ array: 4201 boehm rtti: 110 func: 2554 struct: 33504 ]
[c] 33000 nodes [ array: 4351 boehm rtti: 110 func: 2564 struct: 34178 ]
[c] 34000 nodes [ array: 4486 boehm rtti: 111 func: 2665 struct: 34706 ]
[c] 35000 nodes [ array: 4641 boehm rtti: 125 func: 2931 struct: 35369 ]
[c] 36000 nodes [ array: 4921 boehm rtti: 126 func: 2983 struct: 36072 ]
[c] 37000 nodes [ array: 5715 boehm rtti: 132 func: 3016 struct: 36138 ]
[c] 38000 nodes [ array: 6021 boehm rtti: 132 func: 3017 struct: 36981 ]
[c] 39000 nodes [ array: 6188 boehm rtti: 139 func: 3453 struct: 37467 ]
[c] 40000 nodes [ array: 6495 boehm rtti: 155 func: 3565 struct: 38646 ]
[c] 41000 nodes [ array: 6858 boehm rtti: 155 func: 3690 struct: 39472 ]
[c] 42000 nodes [ array: 7061 boehm rtti: 163 func: 3728 struct: 39893 ]
[c] 43000 nodes [ array: 7144 boehm rtti: 172 func: 3790 struct: 40750 ]
[c] 44000 nodes [ array: 7253 boehm rtti: 172 func: 3831 struct: 41901 ]
[c] 45000 nodes [ array: 7284 boehm rtti: 173 func: 3857 struct: 43044 ]
[c] 46000 nodes [ array: 7305 boehm rtti: 174 func: 3861 struct: 43477 ]
[c] 47000 nodes [ array: 7426 boehm rtti: 176 func: 3904 struct: 47827 ]
[c] 48000 nodes [ array: 7582 boehm rtti: 176 func: 3928 struct: 48640 ]
[c] 49000 nodes [ array: 7943 boehm rtti: 176 func: 3954 struct: 49468 ]
[c] 50000 nodes [ array: 8048 boehm rtti: 176 func: 3959 struct: 50291 ]
[c] 51000 nodes [ array: 8265 boehm rtti: 182 func: 4157 struct: 50632 ]
[c] 52000 nodes [ array: 8338 boehm rtti: 185 func: 4173 struct: 50809 ]
[c] 53000 nodes [ array: 8402 boehm rtti: 194 func: 4219 struct: 51141 ]
[c] 54000 nodes [ array: 8417 boehm rtti: 196 func: 4237 struct: 51613 ]
[c] 55000 nodes [ array: 8618 boehm rtti: 197 func: 4254 struct: 52081 ]
[c] 56000 nodes [ array: 8653 boehm rtti: 197 func: 4338 struct: 53450 ]
[c] 57000 nodes [ array: 8653 boehm rtti: 197 func: 4338 struct: 54940 ]
[c] 58000 nodes [ array: 8653 boehm rtti: 197 func: 4338 struct: 56601 ]
[c] 59000 nodes [ array: 8653 boehm rtti: 197 func: 4338 struct: 58197 ]
[c] 60000 nodes [ array: 8757 boehm rtti: 197 func: 4347 struct: 58849 ]
[c] 61000 nodes [ array: 8906 boehm rtti: 197 func: 4359 struct: 59500 ]
[c] 62000 nodes [ array: 8973 boehm rtti: 197 func: 4362 struct: 60691 ]
[c] 63000 nodes [ array: 9087 boehm rtti: 197 func: 4372 struct: 61123 ]
[c] 64000 nodes [ array: 9240 boehm rtti: 205 func: 4513 struct: 61570 ]
[c] 65000 nodes [ array: 9690 boehm rtti: 225 func: 4533 struct: 61730 ]
[c] 66000 nodes [ array: 9808 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 67000 nodes [ array: 9954 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 68000 nodes [ array: 10103 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 69000 nodes [ array: 10244 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 70000 nodes [ array: 10402 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 71000 nodes [ array: 10555 boehm rtti: 227 func: 4567 struct: 62059 ]
[c] 72000 nodes [ array: 10698 boehm rtti: 228 func: 4569 struct: 62220 ]
[c] 73000 nodes [ array: 10787 boehm rtti: 247 func: 4603 struct: 62569 ]
[c] 74000 nodes [ array: 10792 boehm rtti: 247 func: 4816 struct: 63357 ]
[c] 75000 nodes [ array: 10864 boehm rtti: 264 func: 4909 struct: 63649 ]
[c] 76000 nodes [ array: 10976 boehm rtti: 268 func: 4975 struct: 64377 ]
[c] 77000 nodes [ array: 11023 boehm rtti: 290 func: 5104 struct: 66145 ]
[c] 78000 nodes [ array: 11106 boehm rtti: 322 func: 5273 struct: 66194 ]
[c] 79000 nodes [ array: 11360 boehm rtti: 360 func: 5554 struct: 66850 ]
[c] 80000 nodes [ array: 11596 boehm rtti: 391 func: 5824 struct: 67629 ]
[c] 81000 nodes [ array: 11919 boehm rtti: 399 func: 5883 struct: 68172 ]
[c] 82000 nodes [ array: 11919 boehm rtti: 399 func: 5884 struct: 69109 ]
[c] 83000 nodes [ array: 11989 boehm rtti: 399 func: 5895 struct: 69661 ]
[c] 84000 nodes [ array: 12096 boehm rtti: 399 func: 5912 struct: 70423 ]
[c] 85000 nodes [ array: 12186 boehm rtti: 406 func: 5975 struct: 77052 ]
[c] 86000 nodes [ array: 12275 boehm rtti: 412 func: 6045 struct: 78012 ]
[c] 87000 nodes [ array: 12284 boehm rtti: 412 func: 6050 struct: 78674 ]
[c] 88000 nodes [ array: 12295 boehm rtti: 412 func: 6056 struct: 79418 ]
[c] 89000 nodes [ array: 12437 boehm rtti: 412 func: 6100 struct: 80308 ]
[c] 90000 nodes [ array: 12500 boehm rtti: 412 func: 6111 struct: 80537 ]
[c] 91000 nodes [ array: 12500 boehm rtti: 412 func: 6111 struct: 80537 ]
[c] 92000 nodes [ array: 12502 boehm rtti: 412 func: 6111 struct: 80543 ]
[c] 93000 nodes [ array: 12502 boehm rtti: 412 func: 6111 struct: 80543 ]
[c] 94000 nodes [ array: 12502 boehm rtti: 412 func: 6111 struct: 80543 ]
[c] 95000 nodes [ array: 12502 boehm rtti: 412 func: 6111 struct: 80543 ]
[c] 96000 nodes [ array: 12554 boehm rtti: 420 func: 6174 struct: 81074 ]
[c] 97000 nodes [ array: 12586 boehm rtti: 420 func: 6187 struct: 81385 ]
[c] 98000 nodes [ array: 12763 boehm rtti: 420 func: 6316 struct: 82112 ]
[c] 99000 nodes [ array: 12810 boehm rtti: 425 func: 6462 struct: 82460 ]
[c] 100000 nodes [ array: 12950 boehm rtti: 465 func: 6648 struct: 82679 ]
[c] 101000 nodes [ array: 13361 boehm rtti: 467 func: 6670 struct: 83083 ]
[c] 102000 nodes [ array: 13458 boehm rtti: 477 func: 6832 struct: 84125 ]
[c] 103000 nodes [ array: 13571 boehm rtti: 479 func: 6878 struct: 85640 ]
[c] 104000 nodes [ array: 13696 boehm rtti: 488 func: 6927 struct: 86722 ]
[c] 105000 nodes [ array: 13831 boehm rtti: 500 func: 6994 struct: 87572 ]
[c] 106000 nodes [ array: 13873 boehm rtti: 501 func: 7007 struct: 87731 ]
[c] 107000 nodes [ array: 13885 boehm rtti: 508 func: 7025 struct: 87852 ]
[c] 108000 nodes [ array: 13898 boehm rtti: 513 func: 7075 struct: 88247 ]
[c] 109000 nodes [ array: 13985 boehm rtti: 514 func: 7101 struct: 88673 ]
[c] 110000 nodes [ array: 14081 boehm rtti: 515 func: 7183 struct: 88928 ]
[c] 111000 nodes [ array: 14166 boehm rtti: 525 func: 7264 struct: 89305 ]
[c] 112000 nodes [ array: 14266 boehm rtti: 535 func: 7356 struct: 89886 ]
[rtyper] specializing: 53300 / 53362 blocks (99%)
[rtyper] -=- specialized 130 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[c] 112378 nodes [ array: 14321 boehm rtti: 535 func: 7438 struct: 90084 ]
[translation:info] database for generating C source was created
[translation:info] Generating c source...
[cbuild:execute] cc -O2 -pthread -c __thread_test.c -o __thread_test.o
[cbuild:execute] cc -pthread /tmp/usession-7/__thread_test.o -lm -lpthread -o
/tmp/usession-7/__thread_test
[c:writing] structdef.h
[c:writing] forwarddecl.h
[c:writing] structimpl.c
[c:writing] nonfuncnodes.c
[c:writing] nonfuncnodes_1.c
[c:writing] nonfuncnodes_2.c
[c:writing] nonfuncnodes_3.c
[c:writing] nonfuncnodes_4.c
[c:writing] nonfuncnodes_5.c
[c:writing] nonfuncnodes_6.c
[c:writing] nonfuncnodes_7.c
[c:writing] implement.c
[c:writing] implement_1.c
[c:writing] implement_2.c
[c:writing] implement_3.c
[c:writing] implement_4.c
[translation:info] written: /tmp/usession-7/testing_1/testing_1.c
[translation:info] Compiling c source...
[cbuild:execute] cc -O2 -pthread -I/local/rajb/pypy-dist/pypy/translator/c
-I/local/python/include/python2.5 -I/tmp/usession-7/testing_1 -c testing_1.c -o
testing_1.o
In file included from testing_1.c:1:
common_header.h:8:19: gc/gc.h: No such file or directory
testing_1.c: In function `RPython_StartupCode':
testing_1.c:87: `GC_all_interior_pointers' undeclared (first use in this
function)
testing_1.c:87: (Each undeclared identifier is reported only once
testing_1.c:87: for each function it appears in.)
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 272, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "/local/rajb/pypy-dist/pypy/translator/driver.py",
line 754, in proceed
[translation:ERROR] return self._execute(goals, task_skip =
self._maybe_skip())
[translation:ERROR] File
"/local/rajb/pypy-dist/pypy/translator/tool/taskengine.py", line 112, in
_execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "/local/rajb/pypy-dist/pypy/translator/driver.py",
line 265, in _do
[translation:ERROR] res = func()
[translation:ERROR] File "/local/rajb/pypy-dist/pypy/translator/driver.py",
line 493, in task_compile_c
[translation:ERROR] cbuilder.compile()
[translation:ERROR] File "/local/rajb/pypy-dist/pypy/translator/c/genc.py",
line 271, in compile
[translation:ERROR] compiler.build()
[translation:ERROR] File
"/local/rajb/pypy-dist/pypy/translator/tool/cbuild.py", line 258, in build
[translation:ERROR] self._build()
[translation:ERROR] File
"/local/rajb/pypy-dist/pypy/translator/tool/cbuild.py", line 301, in _build
[translation:ERROR] extra_preargs=self.compile_extra)
[translation:ERROR] File
"/local/python/lib/python2.5/distutils/ccompiler.py", line 697, in compile
[translation:ERROR] self._compile(obj, src, ext, cc_args, extra_postargs,
pp_opts)
[translation:ERROR] File
"/local/python/lib/python2.5/distutils/unixccompiler.py", line 160, in _compile
[translation:ERROR] raise CompileError, msg
[translation:ERROR] CompileError: command 'cc' failed with exit status 1
[translation] start debugger...
> /local/python/lib/python2.5/distutils/unixccompiler.py(160)_compile()
-> raise CompileError, msg
Traceback (most recent call last):
File "translate.py", line 284, in <module>
main()
File "translate.py", line 277, in main
debug(True)
File "translate.py", line 251, in debug
pdb_plus_show.start(tb)
File "/local/rajb/pypy-dist/pypy/translator/tool/pdbplus.py", line 408, in
start
fn(*args)
File "/local/rajb/pypy-dist/pypy/translator/tool/pdbplus.py", line 22, in
post_mortem
self.interaction(t.tb_frame, t)
File "/local/python/lib/python2.5/pdb.py", line 187, in interaction
self.cmdloop()
File "/local/python/lib/python2.5/cmd.py", line 109, in cmdloop
self.preloop()
File "/local/rajb/pypy-dist/pypy/translator/tool/pdbplus.py", line 26, in
preloop
raise NoTTY("Cannot start the debugger when stdout is captured.")
pypy.translator.tool.pdbplus.NoTTY: Cannot start the debugger when stdout is
captured.
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
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev