Artifacts Associated With Ticket 2902010
Ticket change [192c225771] (rid 122772) by teopetuk on 2009-11-22 11:15:50:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi! Appears that the fix for bug 2819200 breaks Tcl on MIPS architecture on Linux OS (at least on Debian). Debian (I'm not sure about other Linux distributions) doesn't have <sys/fpu.h>, so It becomes impossible to build 8.5.8 on it (see https://buildd.debian.org/fetch.cgi?pkg=tcl8.5&arch=mips&ver=8.5.8-1&stamp=1258718436&file=log&as=raw for details). On the other hand, removing the patch from 2819200 makes Tcl 8.5.8 build fine and pass test suite without errors (I did the experiment in Qemu, so the result for a real hardware may differ). It's likely that changing FPU settings isn't required (and isn't even possible?) in Linux, so the code from 2819200 shouldn't be called for Linux.
- foundin initialized to: "obsolete: 8.5.8"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "teopetuk"
- subsystem initialized to: "None"
- title initialized to: "2819200 fix breaks Tcl on MIPS on Linux"
- type initialized to: "Bug"
Ticket change [6c93a99f5c] (rid 128536) by dgp on 2009-11-23 07:09:13:
- icomment:
what compiler is used when the failure is observed?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ebf2c03a1b] (rid 103627) by stwo on 2009-11-23 10:37:47:
- icomment:
This also breaks OpenBSD/MIPS. I'm waiting for a more detailed report from the person who reported this to me. Meanwhile, this patch is being used, supplied for informational purposes. No idea what the fix should be. --- generic/tclStrToD.c.orig Sun Nov 22 13:37:00 2009 +++ generic/tclStrToD.c Sun Nov 22 13:39:08 2009 @@ -73,7 +73,7 @@ typedef unsigned int fpu_control_t __attribute__ ((__m * MIPS floating-point units need special settings in control registers * to use gradual underflow as we expect. */ -#if defined(__mips) +#if defined(__mips) && !defined(__OpenBSD__) #include <sys/fpu.h> #endif /* @@ -2166,7 +2166,7 @@ TclInitDoubleConversion(void) } bitwhack; #endif -#if defined(__mips) +#if defined(__mips) && !defined(__OpenBSD__) union fpc_csr mipsCR; mipsCR.fc_word = get_fpc_csr(); - login: "stwo"
- mimetype: "text/plain"
- username: "stwo"
- icomment:
Ticket change [5580b8689d] (rid 94144) by teopetuk on 2009-11-23 13:13:13:
- icomment:
GCC 4.3.4 was used, but the failure doesn't depend on GCC version.
- login: "teopetuk"
- mimetype: "text/plain"
- username: "teopetuk"
- icomment:
Ticket change [f748e8f4fc] (rid 91347) by dgp on 2009-11-26 02:01:21:
- icomment:
File Added - 352541: 2819200.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "2819200.patch" [d074349507] (rid 113188) by dgp on 2009-11-26 02:01:21.
Ticket change [f0b041f5b6] (rid 109239) by dgp on 2009-11-26 02:01:58:
- assignee changed to: "dgp"
- closedate changed to: "2009-11-25T19:01:58"
- closer changed to: "dgp"
- icomment:
Please test the attached patch.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Pending"
- subsystem changed to: "48. Number Handling"
- username: "dgp"
Ticket change [61c0a19d51] (rid 92300) by teopetuk on 2009-11-26 17:42:56:
- icomment:
Works for Debian Linux (tested with GCC 4.2).
- login: "teopetuk"
- mimetype: "text/plain"
- username: "teopetuk"
- icomment:
Ticket change [a9d7f749d3] (rid 99227) by dgp on 2009-12-08 00:16:33:
- icomment:
Thanks for testing! Fix committed for 8.5.9 and 8.6b2.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e1ae3b79fa] (rid 87496) by dgp on 2009-12-08 00:16:49:
- closedate changed to: "2009-12-07T17:16:49"
- closer changed to: "dgp"
- icomment:
allow_comments - 1
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"