* 'bad code' in tcl file command
@ 2003-02-06 2:19 Jeff Mincy
2003-02-07 4:28 ` Martin M. Hunt
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mincy @ 2003-02-06 2:19 UTC (permalink / raw)
To: insight
The latest tcl 8.4 gets 'command returned bad code' errors when doing
the file copy and file rename commands. Other than the 'bad code'
errors which have to be caught, the file commands appear to work correctly.
Here is sample output:
================
bash% rm -r -f foo bar baz
bash% which tclsh84
/usr/bin/tclsh84
bash% echo "foo bar" >> foo
bash% cat foo
foo bar
bash% tclsh84
=================
puts [file copy foo bar]
command returned bad code: 269325160
puts $errorInfo
command returned bad code: 269325160
while executing
"puts [file copy foo bar]"
puts [file rename bar baz]
command returned bad code: 269325832
puts $errorInfo
command returned bad code: 269325832
while executing
"puts [file rename bar baz]"
exit
================
I am on w98, running the latest cygwin.
-jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 'bad code' in tcl file command
2003-02-06 2:19 'bad code' in tcl file command Jeff Mincy
@ 2003-02-07 4:28 ` Martin M. Hunt
2003-02-07 19:59 ` Martin M. Hunt
0 siblings, 1 reply; 3+ messages in thread
From: Martin M. Hunt @ 2003-02-07 4:28 UTC (permalink / raw)
To: Jeff Mincy; +Cc: insight
Jeff,
Thanks for catching this. There is a problem with high levels of
optimization and some inline assembly code. I will check in a fix as
soon as I am finished testing to make sure nothing else got broken.
Martin
On Wed, 2003-02-05 at 18:13, Jeff Mincy wrote:
>
>
> The latest tcl 8.4 gets 'command returned bad code' errors when doing
> the file copy and file rename commands. Other than the 'bad code'
> errors which have to be caught, the file commands appear to work correctly.
>
> Here is sample output:
>
> ================
> bash% rm -r -f foo bar baz
>
> bash% which tclsh84
> /usr/bin/tclsh84
>
> bash% echo "foo bar" >> foo
>
> bash% cat foo
> foo bar
>
> bash% tclsh84
> =================
>
> puts [file copy foo bar]
> command returned bad code: 269325160
>
> puts $errorInfo
> command returned bad code: 269325160
> while executing
> "puts [file copy foo bar]"
>
> puts [file rename bar baz]
> command returned bad code: 269325832
>
> puts $errorInfo
> command returned bad code: 269325832
> while executing
> "puts [file rename bar baz]"
>
> exit
> ================
>
> I am on w98, running the latest cygwin.
>
> -jeff
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 'bad code' in tcl file command
2003-02-07 4:28 ` Martin M. Hunt
@ 2003-02-07 19:59 ` Martin M. Hunt
0 siblings, 0 replies; 3+ messages in thread
From: Martin M. Hunt @ 2003-02-07 19:59 UTC (permalink / raw)
To: Martin M. Hunt; +Cc: Jeff Mincy, insight
I have checked the fix for this into sources.
It turns out the tcl maintainers had already fixed this problem a week
ago, so I just copied their fix into our tree. I never noticed the bug
because of a configuration problem. If tcl was built as part of the
toolchain, it was built with flags of "-O2". However if you typed make
in the tcl directory, it appended a "-O" flag on, resulting in "-O2 -O"
which gcc interprets the same as "-O". Executables built with "-O" were
fine. I have checked in a fix to this problem too.
Martin
On Thu, 2003-02-06 at 20:28, Martin M. Hunt wrote:
> Jeff,
>
> Thanks for catching this. There is a problem with high levels of
> optimization and some inline assembly code. I will check in a fix as
> soon as I am finished testing to make sure nothing else got broken.
>
> Martin
>
> On Wed, 2003-02-05 at 18:13, Jeff Mincy wrote:
> >
> >
> > The latest tcl 8.4 gets 'command returned bad code' errors when doing
> > the file copy and file rename commands. Other than the 'bad code'
> > errors which have to be caught, the file commands appear to work correctly.
> >
> > Here is sample output:
> >
> > ================
> > bash% rm -r -f foo bar baz
> >
> > bash% which tclsh84
> > /usr/bin/tclsh84
> >
> > bash% echo "foo bar" >> foo
> >
> > bash% cat foo
> > foo bar
> >
> > bash% tclsh84
> > =================
> >
> > puts [file copy foo bar]
> > command returned bad code: 269325160
> >
> > puts $errorInfo
> > command returned bad code: 269325160
> > while executing
> > "puts [file copy foo bar]"
> >
> > puts [file rename bar baz]
> > command returned bad code: 269325832
> >
> > puts $errorInfo
> > command returned bad code: 269325832
> > while executing
> > "puts [file rename bar baz]"
> >
> > exit
> > ================
> >
> > I am on w98, running the latest cygwin.
> >
> > -jeff
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-07 19:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-06 2:19 'bad code' in tcl file command Jeff Mincy
2003-02-07 4:28 ` Martin M. Hunt
2003-02-07 19:59 ` Martin M. Hunt
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).