28 июля 2014 г., в 16:57, Thomas Copper <[email protected]> написал(а):
>
>
>
> On Mon, Jul 28, 2014 at 5:47 PM, Alexpux <[email protected]> wrote:
>
> 28 июля 2014 г., в 13:43, Thomas Copper <[email protected]> написал(а):
>
> > I am using msys2 on Windows 7 64 bit. What I installed is
> > msys2-x86_64-20140624.exe
> >
> > When I use gcc inside msys2, I fonund that gcc -m64 worked very well, but
> > gcc -m32 not.Errors are:
> >
> > /usr/lib/gcc/x87_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc_s.dll.a when
> > searching for -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc_s.dll.a when
> > searching for -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../libmsys-2.0.a when searching for
> > -lmsys-2.0
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../libmsys-2.0.a when searching for
> > -lmsys-2.0
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../libmsys-2.0.a when searching for
> > -lmsys-2.0
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lmsys-2.0
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -ladvapi32
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lshell32
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -luser32
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lkernel32
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc_s.dll.a when
> > searching for -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc_s.dll.a when
> > searching for -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lgcc_s
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld:
> > skipping incompatible /usr/lib/gcc/x86_64-pc-msys/4.8.2/libgcc.a when
> > searching for -lgcc
> > /usr/lib/gcc/x86_64-pc-msys/4.8.2/../../../../x86_64-pc-msys/bin/ld: cannot
> > find -lgcc
> > collect2: error: ld returned 1 exit status
> >
> > GCC version installed is:
> > mingw64/mingw-w64-x86_64-gcc 4.9.1-1 (mingw-w64-x86_64-toolchain
> > mingw-w64-x86_64) [installed]
> > GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
> >
> First , you try use MSYS-gcc instead MINGW-gcc.
> You need start MSYS2 with mingw64_shell.bat to use mingw-w64 64-bit compiler.
>
> Second, our toolchains not multilib and you need use 32-bit mingw-w64 GCC
> toolchain to build 32 bit executables. To do it install 32bit mingw-gcc by:
> pacman -S mingw-w64-i686-toolchain
> And start MSYS2 with mingw32_shell.bat
>
> I think this is TOO inconvenient. Often I will use gcc inside the msys2 and
> want to test both 32bit compile and 64bit compile. It's too inconvenient of
> opening two terminals.
>
Ok. Then you can switch PATH variable by hand without open two terminals:
PATH=/mingw32/bin:$PATH gcc … - to use 32bit mingw-w64 compiler
PATH=/mingw64/bin:$PATH gcc … - to use 64bit mingw-w64 compiler
But in any case you need install both 32 and 64bit toolchains first.
Regards,
Alexey.
>
> Regards,
> Alexey.
>
> > How can I make gcc support multilib? Or it's not my fault?
> > ------------------------------------------------------------------------------
> > Infragistics Professional
> > Build stunning WinForms apps today!
> > Reboot your WinForms applications with our WinForms controls.
> > Build a bridge from your legacy apps to the future.
> > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk_______________________________________________
> > Msys2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/msys2-users
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users