* Mingw build problem for TCL
@ 2013-07-19 6:18 Jonathan Kelly
2013-07-19 10:06 ` Corinna Vinschen
0 siblings, 1 reply; 10+ messages in thread
From: Jonathan Kelly @ 2013-07-19 6:18 UTC (permalink / raw)
To: cygwin
Hi,
sorry if this isn't the correct place. I have previously used the
mingw-* packages to create a Windows compile of tcl8.6.0, but currently
it doesn't work. It compiles without error as far as I can see, but when
you try to run the executable (tclsh8.6.0.exe) it returns immediately
with code 127.
(PS ... I have tried it with the current mingw/msys system directly, and
that compiles OK.)
-------
$ uname -a
CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
$ cygcheck -c | fgrep mingw
mingw-binutils 2.23.1-1 OK
mingw-gcc-core 4.7.3-1 OK
mingw-gcc-g++ 4.7.3-1 OK
mingw-pthreads 20110507-2 OK
mingw-runtime 4.0-1 OK
mingw-w32api 4.0-1 OK
$ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
... cut ...
$ make binaries
... cut ...
i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32 -luser32
-ladvapi32 -lws2_32 /cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
tclsh.res.o -o tclsh86.exe -mconsole -pipe
$ echo $?
0
$ ./tclsh86.exe
$ echo $?
127
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-19 6:18 Mingw build problem for TCL Jonathan Kelly
@ 2013-07-19 10:06 ` Corinna Vinschen
2013-07-20 11:00 ` Earnie Boyd
2013-07-20 18:40 ` Jonathan Kelly
0 siblings, 2 replies; 10+ messages in thread
From: Corinna Vinschen @ 2013-07-19 10:06 UTC (permalink / raw)
To: cygwin
On Jul 19 11:47, Jonathan Kelly wrote:
> Hi,
>
> sorry if this isn't the correct place. I have previously used the
> mingw-* packages to create a Windows compile of tcl8.6.0, but
> currently it doesn't work. It compiles without error as far as I can
> see, but when you try to run the executable (tclsh8.6.0.exe) it
> returns immediately with code 127.
> (PS ... I have tried it with the current mingw/msys system directly,
> and that compiles OK.)
> -------
> $ uname -a
> CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
>
> $ cygcheck -c | fgrep mingw
> mingw-binutils 2.23.1-1 OK
> mingw-gcc-core 4.7.3-1 OK
> mingw-gcc-g++ 4.7.3-1 OK
> mingw-pthreads 20110507-2 OK
> mingw-runtime 4.0-1 OK
> mingw-w32api 4.0-1 OK
>
> $ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
> ... cut ...
>
> $ make binaries
> ... cut ...
> i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
> tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32
> -luser32 -ladvapi32 -lws2_32
> /cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
> tclsh.res.o -o tclsh86.exe -mconsole -pipe
>
> $ echo $?
> 0
>
> $ ./tclsh86.exe
>
> $ echo $?
> 127
Does it run correctly when started from CMD?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-19 10:06 ` Corinna Vinschen
@ 2013-07-20 11:00 ` Earnie Boyd
2013-07-20 18:40 ` Jonathan Kelly
1 sibling, 0 replies; 10+ messages in thread
From: Earnie Boyd @ 2013-07-20 11:00 UTC (permalink / raw)
To: cygwin
On Fri, Jul 19, 2013 at 3:55 AM, Corinna Vinschen wrote:
> On Jul 19 11:47, Jonathan Kelly wrote:
>> Hi,
>>
>> sorry if this isn't the correct place. I have previously used the
>> mingw-* packages to create a Windows compile of tcl8.6.0, but
>> currently it doesn't work. It compiles without error as far as I can
>> see, but when you try to run the executable (tclsh8.6.0.exe) it
>> returns immediately with code 127.
>> (PS ... I have tried it with the current mingw/msys system directly,
>> and that compiles OK.)
>> -------
>> $ uname -a
>> CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
>>
>> $ cygcheck -c | fgrep mingw
>> mingw-binutils 2.23.1-1 OK
>> mingw-gcc-core 4.7.3-1 OK
>> mingw-gcc-g++ 4.7.3-1 OK
>> mingw-pthreads 20110507-2 OK
>> mingw-runtime 4.0-1 OK
>> mingw-w32api 4.0-1 OK
>>
>> $ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
>> ... cut ...
>>
>> $ make binaries
>> ... cut ...
>> i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
>> tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32
>> -luser32 -ladvapi32 -lws2_32
>> /cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
>> tclsh.res.o -o tclsh86.exe -mconsole -pipe
>>
>> $ echo $?
>> 0
>>
>> $ ./tclsh86.exe
>>
>> $ echo $?
>> 127
>
> Does it run correctly when started from CMD?
Probably not. I'm not surprised of issues with newer tcl versions.
Jonathan should move the discussion to
mingw-users@lists.sourceforge.net or wait for the MinGW 4.0 release or
both.
--
Earnie
-- https://sites.google.com/site/earnieboyd
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-19 10:06 ` Corinna Vinschen
2013-07-20 11:00 ` Earnie Boyd
@ 2013-07-20 18:40 ` Jonathan Kelly
2013-07-20 19:48 ` Corinna Vinschen
1 sibling, 1 reply; 10+ messages in thread
From: Jonathan Kelly @ 2013-07-20 18:40 UTC (permalink / raw)
To: cygwin
On 19/07/2013 5:55 PM, Corinna Vinschen wrote:
> On Jul 19 11:47, Jonathan Kelly wrote:
>> Hi,
>>
>> sorry if this isn't the correct place. I have previously used the
>> mingw-* packages to create a Windows compile of tcl8.6.0, but
>> currently it doesn't work. It compiles without error as far as I can
>> see, but when you try to run the executable (tclsh8.6.0.exe) it
>> returns immediately with code 127.
>> (PS ... I have tried it with the current mingw/msys system directly,
>> and that compiles OK.)
>> -------
>> $ uname -a
>> CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
>>
>> $ cygcheck -c | fgrep mingw
>> mingw-binutils 2.23.1-1 OK
>> mingw-gcc-core 4.7.3-1 OK
>> mingw-gcc-g++ 4.7.3-1 OK
>> mingw-pthreads 20110507-2 OK
>> mingw-runtime 4.0-1 OK
>> mingw-w32api 4.0-1 OK
>>
>> $ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
>> ... cut ...
>>
>> $ make binaries
>> ... cut ...
>> i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
>> tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32
>> -luser32 -ladvapi32 -lws2_32
>> /cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
>> tclsh.res.o -o tclsh86.exe -mconsole -pipe
>>
>> $ echo $?
>> 0
>>
>> $ ./tclsh86.exe
>>
>> $ echo $?
>> 127
> Does it run correctly when started from CMD?
>
>
> Corinna
>
Not. Comes up with error "The application was unable to start correctly
(0xc0000022).
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-20 18:40 ` Jonathan Kelly
@ 2013-07-20 19:48 ` Corinna Vinschen
2013-07-21 7:11 ` Jonathan Kelly
0 siblings, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 2013-07-20 19:48 UTC (permalink / raw)
To: cygwin
On Jul 20 08:08, Jonathan Kelly wrote:
> On 19/07/2013 5:55 PM, Corinna Vinschen wrote:
> >On Jul 19 11:47, Jonathan Kelly wrote:
> >>Hi,
> >>
> >>sorry if this isn't the correct place. I have previously used the
> >>mingw-* packages to create a Windows compile of tcl8.6.0, but
> >>currently it doesn't work. It compiles without error as far as I can
> >>see, but when you try to run the executable (tclsh8.6.0.exe) it
> >>returns immediately with code 127.
> >>(PS ... I have tried it with the current mingw/msys system directly,
> >>and that compiles OK.)
> >>-------
> >>$ uname -a
> >>CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
> >>
> >>$ cygcheck -c | fgrep mingw
> >>mingw-binutils 2.23.1-1 OK
> >>mingw-gcc-core 4.7.3-1 OK
> >>mingw-gcc-g++ 4.7.3-1 OK
> >>mingw-pthreads 20110507-2 OK
> >>mingw-runtime 4.0-1 OK
> >>mingw-w32api 4.0-1 OK
> >>
> >>$ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
> >>... cut ...
> >>
> >>$ make binaries
> >>... cut ...
> >>i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
> >>tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32
> >>-luser32 -ladvapi32 -lws2_32
> >>/cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
> >> tclsh.res.o -o tclsh86.exe -mconsole -pipe
> >>
> >>$ echo $?
> >>0
> >>
> >>$ ./tclsh86.exe
> >>
> >>$ echo $?
> >>127
> >Does it run correctly when started from CMD?
> >
> >
> >Corinna
> >
> Not. Comes up with error "The application was unable to start
> correctly (0xc0000022).
Then Earnie is right. This has nothing to do with Cygwin itself, but
with the Mingw stuff. This is probably best discussed on a Mingw.Org
ML.
Alternatively you could try to build this with the mingw-w64 cross
toolchains and if it doesn't work, discuss it on their MLs.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-20 19:48 ` Corinna Vinschen
@ 2013-07-21 7:11 ` Jonathan Kelly
2013-07-22 15:30 ` Charles Wilson
0 siblings, 1 reply; 10+ messages in thread
From: Jonathan Kelly @ 2013-07-21 7:11 UTC (permalink / raw)
To: cygwin
On 20/07/2013 9:00 PM, Corinna Vinschen wrote:
> On Jul 20 08:08, Jonathan Kelly wrote:
>> On 19/07/2013 5:55 PM, Corinna Vinschen wrote:
>>> On Jul 19 11:47, Jonathan Kelly wrote:
>>>> Hi,
>>>>
>>>> sorry if this isn't the correct place. I have previously used the
>>>> mingw-* packages to create a Windows compile of tcl8.6.0, but
>>>> currently it doesn't work. It compiles without error as far as I can
>>>> see, but when you try to run the executable (tclsh8.6.0.exe) it
>>>> returns immediately with code 127.
>>>> (PS ... I have tried it with the current mingw/msys system directly,
>>>> and that compiles OK.)
>>>> -------
>>>> $ uname -a
>>>> CYGWIN_NT-6.1-WOW64 jon-Z930 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
>>>>
>>>> $ cygcheck -c | fgrep mingw
>>>> mingw-binutils 2.23.1-1 OK
>>>> mingw-gcc-core 4.7.3-1 OK
>>>> mingw-gcc-g++ 4.7.3-1 OK
>>>> mingw-pthreads 20110507-2 OK
>>>> mingw-runtime 4.0-1 OK
>>>> mingw-w32api 4.0-1 OK
>>>>
>>>> $ ./configure --host=i686-pc-mingw32 --build=i686-pc-mingw32 --prefix=/Tcl
>>>> ... cut ...
>>>>
>>>> $ make binaries
>>>> ... cut ...
>>>> i686-pc-mingw32-gcc -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE
>>>> tclAppInit.o libtcl86.a libtclstub86.a -lnetapi32 -lkernel32
>>>> -luser32 -ladvapi32 -lws2_32
>>>> /cygdrive/c/src/tcl8.6.0/compat/zlib/win32/zdll.lib \
>>>> tclsh.res.o -o tclsh86.exe -mconsole -pipe
>>>>
>>>> $ echo $?
>>>> 0
>>>>
>>>> $ ./tclsh86.exe
>>>>
>>>> $ echo $?
>>>> 127
>>> Does it run correctly when started from CMD?
>>>
>>>
>>> Corinna
>>>
>> Not. Comes up with error "The application was unable to start
>> correctly (0xc0000022).
> Then Earnie is right. This has nothing to do with Cygwin itself, but
> with the Mingw stuff. This is probably best discussed on a Mingw.Org
> ML.
> Alternatively you could try to build this with the mingw-w64 cross
> toolchains and if it doesn't work, discuss it on their MLs.
>
>
> Corinna
>
No, it's not - it compiles and runs as it should when I use the Mingw
directly. It's what I'm using now. I was just trying to give back a
little by reporting a problem.
Thanks anyway.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-21 7:11 ` Jonathan Kelly
@ 2013-07-22 15:30 ` Charles Wilson
2013-07-22 15:46 ` Corinna Vinschen
0 siblings, 1 reply; 10+ messages in thread
From: Charles Wilson @ 2013-07-22 15:30 UTC (permalink / raw)
To: The Cygwin Mailing List
On 7/21/2013 1:08 AM, Jonathan Kelly wrote:
>> On Jul 20 08:08, Jonathan Kelly wrote:
>>> Not. Comes up with error "The application was unable to start
>>> correctly (0xc0000022).
> No, it's not - it compiles and runs as it should when I use the Mingw
> directly. It's what I'm using now. I was just trying to give back a
> little by reporting a problem.
0xc0000022 is the error code, IIRC, for "couldn't find a DLL that I
needed at startup". For the (failing) binary that you compiled using
cygwin's mingw-gcc package(s), could you post the result of the
following command?
$ i686-pc-mingw32-objdump -p tclsh.exe | grep 'DLL Name'
--
Chuck
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-22 15:30 ` Charles Wilson
@ 2013-07-22 15:46 ` Corinna Vinschen
0 siblings, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 2013-07-22 15:46 UTC (permalink / raw)
To: cygwin
On Jul 22 09:19, Charles Wilson wrote:
> On 7/21/2013 1:08 AM, Jonathan Kelly wrote:
> >>On Jul 20 08:08, Jonathan Kelly wrote:
> >>>Not. Comes up with error "The application was unable to start
> >>>correctly (0xc0000022).
>
> >No, it's not - it compiles and runs as it should when I use the Mingw
> >directly. It's what I'm using now. I was just trying to give back a
> >little by reporting a problem.
>
> 0xc0000022 is the error code, IIRC, for "couldn't find a DLL that I
> needed at startup".
No, it's STATUS_ACCESS_DENIED, a permission problem. This could
happen, for instance, if the executable or one of the required DLLs
is not executable.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
2013-07-23 0:25 Jonathan Kelly
@ 2013-07-23 12:49 ` Arjen Markus
0 siblings, 0 replies; 10+ messages in thread
From: Arjen Markus @ 2013-07-23 12:49 UTC (permalink / raw)
To: cygwin
I have had problems with file permissions myself - in my case editing
a file that is part of a fairly large project may cause build errors
later on, when such a file is copied during the build process, because
the Windows permissions are translated into "-------". It may very
well be that you are dealing with something similar.
Regards,
Arjen
2013/7/23 Jonathan Kelly <jonkelly@fastmail.fm>:
>> No, it's STATUS_ACCESS_DENIED, a permission problem. This could
>> happen, for instance, if the executable or one of the required DLLs
>> is not executable.
>
>
>> Corinna
>
>
>
> Ah, yes, there is a zlib dll shipped with the source that didn't have
> executable perms.
>
> I'll let the TCL people know.
>
> Thanks!
> Jonathan.
>
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mingw build problem for TCL
@ 2013-07-23 0:25 Jonathan Kelly
2013-07-23 12:49 ` Arjen Markus
0 siblings, 1 reply; 10+ messages in thread
From: Jonathan Kelly @ 2013-07-23 0:25 UTC (permalink / raw)
To: cygwin
> No, it's STATUS_ACCESS_DENIED, a permission problem. This could
> happen, for instance, if the executable or one of the required DLLs
> is not executable.
> Corinna
Ah, yes, there is a zlib dll shipped with the source that didn't have executable perms.
I'll let the TCL people know.
Thanks!
Jonathan.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-07-23 12:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 6:18 Mingw build problem for TCL Jonathan Kelly
2013-07-19 10:06 ` Corinna Vinschen
2013-07-20 11:00 ` Earnie Boyd
2013-07-20 18:40 ` Jonathan Kelly
2013-07-20 19:48 ` Corinna Vinschen
2013-07-21 7:11 ` Jonathan Kelly
2013-07-22 15:30 ` Charles Wilson
2013-07-22 15:46 ` Corinna Vinschen
2013-07-23 0:25 Jonathan Kelly
2013-07-23 12:49 ` Arjen Markus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).