[PyPy-issue] [issue691] pypy-head does not compile under Windows

David Naylor pypy-dev-issue at codespeak.net
Tue Apr 26 13:23:03 CEST 2011


David Naylor <naylor.b.david at gmail.com> added the comment:

I've run a compile with an updated checkout and get this error:

# make
gcc -O3 -DPy_BUILD_CORE -frandom-seed=testing_1.c -o testing_1.s -S testing_1.c 
-IC:\\cygwin\\home\\${USER}\\pypy\\pypy\\translator\\c -
IC:\\cygwin\\home\\${USER}\\pypy\\pypy\\module\\cpyext\\include -I.. -
IC:\\cygwin\\home\\${USER}\\libffi-3.0.8.tar.gz\\include
In file included from common_header.h:36:0,
                 from testing_1.c:1:
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/stack.h:55:1: warning: 
'thread' attribute directive ignored
In file included from 
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/asm.h:4:0,
                 from 
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/debug_print.h:44,
                 from 
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/g_include.h:44,
                 from testing_1.c:43:
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/asm_gcc_x86.h:94:23: error: 
redefinition of '_PyPy_get_387controlword'
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/asm_gcc_x86.h:94:23: note: 
previous definition of '_PyPy_get_387controlword' was here
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/asm_gcc_x86.h:99:13: error: 
redefinition of '_PyPy_set_387controlword'
C:\cygwin\home\${USER}\pypy\pypy\translator\c/src/asm_gcc_x86.h:99:13: note: 
previous definition of '_PyPy_set_387controlword' was here
make: *** [testing_1.s] Error 1


After working around that error with #ifndef protection in 
pypy/translator/c/src/asm_gcc_x86.h on the file I get this error:

# make
C:/Python27/python.exe 
C:\\cygwin\\home\\${USER}\\pypy\\pypy/translator/c/gcc/trackgcroot.py -
mpypy_main_startup -t implement_22.s > implement_22.gctmp
Traceback (most recent call last):
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
1951, in <module>
    tracker.process(f, g, entrypoint=entrypoint, filename=fn)
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
1842, in process
    tracker = parser.process_function(lines, entrypoint, filename)
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
1438, in process_function
    lines, entrypoint, filename)
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
1350, in process_function
    table = tracker.computegcmaptable(self.verbose)
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
47, in computegcmaptable
    self.parse_instructions()
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
190, in parse_instructions
    insn = meth(line)
  File "C:\cygwin\home\${USER}\pypy\pypy/translator/c/gcc/trackgcroot.py", line 
789, in visit_call
    assert  lineoffset in (1,2)
AssertionError
make: *** [implement_22.gcmap] Error 1

Attached is the implement_22.s file.

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue691>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement_22.s.xz
Type: application/x-xz
Size: 71712 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20110426/64074c07/attachment.bin>


More information about the Pypy-issue mailing list