#12 crach mingw32 build

closed-wont-fix
nobody
None
5
2005-03-17
2004-11-23
No

I try build sources by mingw.
I heve many errors. ;-c

Windows XP pro + sp1
Python 2.3.4
gcc (GCC) 3.4.2 (mingw-special)
mingw runtime: __MINGW32_VERSION 3.5
mingw w32: __W32API_VERSION 3.1

===command line:
python setup build -cmingw32
===output:
running build
running build_py
running build_ext
building '_ctypes' extension
C:\Lang\MinGW\bin\gcc.exe -mno-cygwin -mdll -Wall -
O3 -mtune=pentium3 -march=pen
tium3 -fno-strict-aliasing -Isource/libffi_msvc -
IC:\Lang\Python23\include -IC:\ Lang\Python23\PC -c source/libffi_msvc/win32.c -o
build\temp.win32-2.3\Release\s
ource\libffi_msvc\win32.o
In file included from source/libffi_msvc/win32.c:38:
source/libffi_msvc/ffi_common.h:20:1: warning: "alloca"
redefined
In file included from source/libffi_msvc/ffi_common.h:15,
from source/libffi_msvc/win32.c:38:
source/libffi_msvc/fficonfig.h:8:1: warning: this is the
location of the previous definition
source/libffi_msvc/win32.c: In function `ffi_call_SYSV':
source/libffi_msvc/win32.c:48: error: `_asm' undeclared
(first use in this function)
source/libffi_msvc/win32.c:48: error: (Each undeclared
identifier is reported only once
source/libffi_msvc/win32.c:48: error: for each function it
appears in.)
source/libffi_msvc/win32.c:48: error: syntax error
before '{' token
source/libffi_msvc/win32.c:152: warning: no return
statement in function returning non-void
source/libffi_msvc/win32.c: In function
`ffi_call_STDCALL':
source/libffi_msvc/win32.c:163: error: `_asm'
undeclared (first use in this function)
source/libffi_msvc/win32.c:163: error: syntax error
before '{' token
source/libffi_msvc/win32.c:266: warning: no return
statement in function returning non-void
error: command 'gcc' failed with exit status 1

Discussion

  • Thomas Heller

    Thomas Heller - 2004-12-02

    Logged In: YES
    user_id=11105

    The problem is that the win32.c file contains MSVC inline
    assembler code. It would be cool if you can provide a patch
    to make it work with mingw32.

    Maybe this message is related?

    http://gcc.gnu.org/ml/gcc-help/2004-12/msg00011.html

     
  • Thomas Heller

    Thomas Heller - 2005-03-17
    • status: open --> closed-wont-fix
     
  • Thomas Heller

    Thomas Heller - 2005-03-17

    Logged In: YES
    user_id=11105

    Closing as won't fix (unless someone wants to work on it).

     
  • Alexandr Zamaraev (aka Tonal)

    Logged In: YES
    user_id=980085

    mingw32 v3.4.2 included ffi 2.0
    My by use it? ;-)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks