Artifacts Associated With Ticket 1617840
Ticket change [f0d84ab494] (rid 109264) by decosterjos on 2006-12-18 09:25:53:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
After compiling tcltest from the CVS head on 18-dec-2006 on a 64bit linux machine (Intel Xeon) using gcc3.2.3, several tests with doubles failed. An example: set x [expr 30.0e1] puts "x='$x'" This caused an infinite loop in mp_div (bn_mp_div.c). Daniel Steffen proposed a patch on the tcl chat as he had done for Darwin: 2006-08-18 Daniel Steffen * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) Making sure MP_64BIT is not defined in tclTomMath.h solves the problem. Regards, Jos.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "decosterjos"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "128 bit arithmetic on x86_64"
- type initialized to: "Bug"
Ticket change [855dd3b63a] (rid 131301) by pspjuth on 2006-12-18 18:34:23:
- icomment:
Logged In: YES user_id=98900 Originator: NO See also 1601380, which probably has the same cause.
- login: "pspjuth"
- mimetype: "text/plain"
- username: "pspjuth"
- icomment:
Ticket change [9d0a5d80df] (rid 96244) by dgp on 2006-12-18 22:56:37:
- assignee changed to: "das"
- icomment:
Logged In: YES user_id=80530 Originator: NO sounds like das has a handle on this. passing to him to correct as he sees fit.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [06643cf5d2] (rid 89218) by das on 2006-12-18 23:29:33:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=90580 Originator: NO I don't have any knowledge on why this fails on non-Darwin x86_64 platforms. The 2006-08-18 problem on Darwin was that gcc tetraint-arithmetic fallbacks were not implemented on the platform so use of operations like tetraint division in libtommath lead to link errors. The solution was to disable use of tetraints on that platform via #undef MP_64BIT in tclTomMath.h From this bug, it appears that on x86_64 platforms where linking with MP_64BIT defined does succeed, there may be problems with the use of tetraint arithmetic. My suggestion on the chat was simply to undefine MP_64BIT to see if tetraints were indeed to blame. I don't know if this should be done unconditionally on all x86_64 platforms/for all versions of gcc, somebody more familiar with libtommath needs to look at that, passing to kbk.
- login: "das"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "das"
Ticket change [9f3ac5a20c] (rid 96604) by das on 2006-12-19 06:03:03:
- icomment:
Logged In: YES user_id=90580 Originator: NO verified that I see tetraint related test failures on the x86_64 host amd64-linux1 in the SF compilefarm, specifically, expr-47.12 crashes and mathop-25.23 hangs. both problems disappear when the MP_64BIT #define in tclTomMath.h is commented out. $ uname -a Linux amd64-linux1.cf.sourceforge.net 2.6.9-1.667smp #1 SMP Tue Nov 2 15:09:11 EST 2004 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [faed2960e1] (rid 91970) by kennykb on 2007-02-13 10:51:45:
- closedate changed to: "2007-02-13T03:51:45"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Originator: NO Indeed it does! Thanks for pointing this out; our fork of libtommath now avoids using TI.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "kennykb"