Alexey,
Installation in progress….
In a meantime, could you please give me more details .
What is installed in /usr/bin ?  what are the differences ?

Regards

Michel  
> Le 4 mars 2015 à 19:38, michel agoyan <[email protected]> a écrit :
> 
> Hi Alexey  ,
> No
> 
> $ which gcc
> /usr/bin/gcc
> 
> ls - al  /usr/bin/gcc
> -rwxr-xr-x 3 michel agoyan  … 824K Nov 20:24 /usr/bin/gcc*
> 
> $File /usr/bin/gcc
> /usr/bin/gcc: PE32+ executable …
> 
> 
> why are you this ?
> 
> Regards.
> 
> Michel
> 
>> Le 4 mars 2015 à 19:22, Alexey Pavlov <[email protected] 
>> <mailto:[email protected]>> a écrit :
>> 
>>> 
>>> 4 марта 2015 г., в 21:15, michel agoyan <[email protected] 
>>> <mailto:[email protected]>> написал(а):
>>> 
>>> Hi,
>>> I'm trying to build a c extension module for python.
>>> I've used the python pakage provided by msys2 and it comes with 
>>> python-config
>>> utility.
>>> $ gcc $(python-config --cflags ) -shared  example.c  -o _example.pyd
>>> In file included from C:/msys64/mingw64/include/python2.7/Python.h:58:0,
>>>               from example.c:2:
>>> C:/msys64/mingw64/include/python2.7/pyport.h:907:2: error: #error "LONG_BIT
>>> definition appears wrong for platform (bad gcc/glibc config?)."
>>> #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
>>> config?)."
>>> ^
>>> 
>>> the flags  issued by python-config are the following ones :
>>> $ python-config --cflags
>>> -IC:/msys64/mingw64/include/python2.7 -IC:/msys64/mingw64/include/python2.7
>>> -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fwrapv
>>> -D__USE_MINGW_ANSI_STDIO=1 -DNDEBUG -DNDEBUG
>>> 
>>> It seems that something is wrong arround the Python header files.
>>> 
>>> However , it is clear that this is a misuse of my part  because a lot of c
>>> modules are provided by msys2
>>> 
>>> How to proceed to build a c module ?
>> 
>> Do you use proper GCC from /mingw*/bin folder?
>> 
>> Regards,
>> Alexey.
>> 
>>> 
>>> Regards
>>> 
>>> Michel
>>> 
>>> PS :
>>> hereafter the content of example.c ..... :)
>>> #include <stdio.h>
>>> #include <Python.h>
>>> 
>>> int main()
>>> {
>>> return(0);
>>> }
>>> 
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website, 
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>>> all
>>> things parallel software development, from weekly thought leadership blogs 
>>> to
>>> news, videos, case studies, tutorials and more. Take a look and join the 
>>> conversation now. http://goparallel.sourceforge.net/ 
>>> <http://goparallel.sourceforge.net/>
>>> _______________________________________________
>>> Msys2-users mailing list
>>> [email protected] <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/msys2-users
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to