[Mingw-w64-public] Using mingw-w32-bin_i686-cygwin packages

2010-07-12 Thread Angelo Graziosi
It is some time I am using these mingw-w32-bin_i686-cygwin packages on 
Cygwin, but recently it seems that there are some problems.

The last useful package wich works for me is: 
mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2. All packages 
released after (...20100704, 20100708) do not work: I can build 
executables but they do not produce any output. For example:

$ tar -xvof mingw-w32-bin_i686-cygwin-1.7.5-1_20100708.tar.bz2 -C 
/usr/local/mingw-w64

$ cd /usr/local/bin

$ ln -sf /usr/local/mingw-w64/bin/i686-w64-mingw32-g++.exe mingw32-g++

$ export PATH="/usr/local/mingw-w64/bin:$PATH"

$ cat /tmp/hello.cpp
/* hello.c */
#include 

using namespace std;

int main()
{
cout << "Hello World" << endl;
return 0;
}

$ mingw32-g++ hello.cpp

$ ./a.exe &
[1] 3504

$
[1]+  Exit 127./a.exe


If I remember correctly, 'Exit 127' means 'missing DLL'. What? Why then

mingw-w32-bin_i686-cygwin-1.7.5-1_20100615.tar.bz2
mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2

work just fine?

I have also tried this:

$ cygcheck ./a.exe
C:\cygwin-2\tmp\a.exe
   C:\WINDOWS\system32\KERNEL32.dll
 C:\WINDOWS\system32\ntdll.dll
   C:\WINDOWS\system32\msvcrt.dll
   C:\cygwin-2\usr\local\mingw-w64\bin\libstdc++-6.dll
 C:\cygwin-2\usr\local\mingw-w64\bin\libgcc_s_sjlj-1.dll
 C:\WINDOWS\system32\USER32.dll
   C:\WINDOWS\system32\GDI32.dll

$ ldd ./a.exe
 ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c91)
 kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll 
(0x7c80)
 msvcrt.dll => /cygdrive/c/WINDOWS/system32/msvcrt.dll (0x77be)
 libstdc++-6.dll => /usr/local/mingw-w64/bin/libstdc++-6.dll 
(0x6fc4)
 libgcc_s_sjlj-1.dll => 
/usr/local/mingw-w64/bin/libgcc_s_sjlj-1.dll (0x6cec)
 USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x7e39)
 GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77e4)


which, apparently, do not flag any missed DLL

Any idea?

Thanks,
Angelo.

(NightStrike, JonY, sorry if I have added you... I am not subscribed to 
mingw-w64-public list... :()

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Using mingw-w32-bin_i686-cygwin packages

2010-07-12 Thread Kai Tietz
2010/7/9 Angelo Graziosi :
> It is some time I am using these mingw-w32-bin_i686-cygwin packages on
> Cygwin, but recently it seems that there are some problems.
>
> The last useful package wich works for me is:
> mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2. All packages
> released after (...20100704, 20100708) do not work: I can build
> executables but they do not produce any output. For example:
>
> $ tar -xvof mingw-w32-bin_i686-cygwin-1.7.5-1_20100708.tar.bz2 -C
> /usr/local/mingw-w64
>
> $ cd /usr/local/bin
>
> $ ln -sf /usr/local/mingw-w64/bin/i686-w64-mingw32-g++.exe mingw32-g++
>
> $ export PATH="/usr/local/mingw-w64/bin:$PATH"
>
> $ cat /tmp/hello.cpp
> /* hello.c */
> #include 
>
> using namespace std;
>
> int main()
> {
>    cout << "Hello World" << endl;
>    return 0;
> }
>
> $ mingw32-g++ hello.cpp
>
> $ ./a.exe &
> [1] 3504
>
> $
> [1]+  Exit 127                ./a.exe
>
>
> If I remember correctly, 'Exit 127' means 'missing DLL'. What? Why then
>
> mingw-w32-bin_i686-cygwin-1.7.5-1_20100615.tar.bz2
> mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2
>
> work just fine?
>
> I have also tried this:
>
> $ cygcheck ./a.exe
> C:\cygwin-2\tmp\a.exe
>   C:\WINDOWS\system32\KERNEL32.dll
>     C:\WINDOWS\system32\ntdll.dll
>   C:\WINDOWS\system32\msvcrt.dll
>   C:\cygwin-2\usr\local\mingw-w64\bin\libstdc++-6.dll
>     C:\cygwin-2\usr\local\mingw-w64\bin\libgcc_s_sjlj-1.dll
>     C:\WINDOWS\system32\USER32.dll
>       C:\WINDOWS\system32\GDI32.dll
>
> $ ldd ./a.exe
>         ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c91)
>         kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll
> (0x7c80)
>         msvcrt.dll => /cygdrive/c/WINDOWS/system32/msvcrt.dll (0x77be)
>         libstdc++-6.dll => /usr/local/mingw-w64/bin/libstdc++-6.dll
> (0x6fc4)
>         libgcc_s_sjlj-1.dll =>
> /usr/local/mingw-w64/bin/libgcc_s_sjlj-1.dll (0x6cec)
>         USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x7e39)
>         GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77e4)
>
>
> which, apparently, do not flag any missed DLL
>
> Any idea?
>
> Thanks,
> Angelo.
>
> (NightStrike, JonY, sorry if I have added you... I am not subscribed to
> mingw-w64-public list... :()

Hello Angelo,

First, please subscribe to list before posting to it. Otherwise it can
be likely that a message gets unnecessary delayed or even deleted by
accident.

To your issue. Yes indeed the the failure-code seems to be a missing
DLL, or a wrong DLL with missing exports. I assume that not all
gcc-related DLL files are in your search path. You can try to use here
option '-static' to see, if it works without DLL files.

I hope I could help,
Kai

PS: Please subscribe to this list before replying, thanks.

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public