On Wed, Mar 4, 2015 at 9:21 PM, michel agoyan <[email protected]> wrote: > Alexey, > I ‘ve taken a look at the wiki page and in my opinion the role of msys2 is > not clear . It is claim : "Technically, the major difference between MSYS2 > and Cygwin is that MSYS2 makes every effort to interoperate with native > Windows software as that is often a requirement for running and (by > extension) building such software. » > Ok but ,if I use the default compiler (/usr/bin/gcc) the final executable > is linked to msys2.dll , something like cygwin and if I’ve understood in > order to build an executable fully compliant with MS Windows I’ve to use > /mingw64/bin/gcc. > What is philosophy (the reasons) behind that ?
It's not the default compiler, there is no default compiler. There's the msys2 compiler and the native compilers. msys2 packages exist mostly to provide a build infrastructure for creating native packages. For whether a package is build for msys2 or for native, well, generally, everything that can be built for native Windows is built for native Windows - some things can't as they require FHS, bash, fork, Unix-y environment. If we need an msys2 version of that package to exist to support building native software (gnumake, python etc) then we will also build that package. msys2 software is in /usr/ since msys2 is the build environment and POSIX stuff usually expects to be in that location, but that doesn't make it the 'default'. native software has it's sysroot at /mingw32 and /mingw64, but we could've just as easily called those something like /usr-mingw32 and /usr-mingw64. The point is that all 3 systems are present. > I’m just trying to clearly understand the msys2 architecture in oder to use > it in the right way. > Regards > Michel > > Le 4 mars 2015 à 20:37, Alexey Pavlov <[email protected]> a écrit : > > > 4 марта 2015 г., в 22:01, michel agoyan <[email protected]> написал(а): > > Alexey, > Installation in progress…. > In a meantime, could you please give me more details . > What is installed in /usr/bin ? what are the differences ? > > All stuff in /usr folder is true MSYS programs (like Cygwin). Mingw programs > located in mingw32 and mingw64 folders under MSYS2 root. > > > 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]> a écrit : > > > 4 марта 2015 г., в 21:15, michel agoyan <[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/ > _______________________________________________ > Msys2-users mailing list > [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 > > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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
