[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-08-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-08-29 Thread Mark Dickinson
Mark Dickinson added the comment: In the absence of a concrete use-case, I'm closing as "wont fix". Without suitable infrastructure (non-IEEE 754 buildbots, for example) and a clear need for this, the effort involved in maintaining CPython on non-IEEE 754 systems far outweighs the benefits. -

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-05 Thread Mark Dickinson
Mark Dickinson added the comment: [David] > maybe Mark will be interested, but he probably doesn't have time either. > Also, he's been known to say he'd like to drop support for non-IEEE > architectures ;) Exactly correct on all counts. :-) I'm *very* interested: I've been looking for a non

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-04 Thread Greg Stark
Greg Stark added the comment: Well I was able to minimize the actual cause: $ /usr/pkg/bin/python -c 1e300*1e300 [1] Floating point exception /usr/pkg/bin/python -c 1e300*1e300 I noticed that the constant folding arithmetic is protected by "PyFPE_START_PROTECT" macros so I wonder... should I

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-04 Thread Stefan Krah
Stefan Krah added the comment: It looks like the peephole optimizer chokes on some constant folding. Probably: INF = float("inf") NAN = float("nan") -INF -NAN You could try some combinations in the REPL. -- nosy: +skrah ___ Python tracker

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-04 Thread Greg Stark
Greg Stark added the comment: I certainly understand the limitations of volunteer projects. I know you have limited resources and can't test on every platform. That's actually exactly why I'm testing on this platform and why I reported the bug. If there's any additional information I can provi

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-03 Thread R. David Murray
R. David Murray added the comment: I don't have time to tackle it myself; maybe Mark will be interested, but he probably doesn't have time either. Also, he's been known to say he'd like to drop support for non-IEEE architectures ;) I suspect it will be up to someone with an investment in the

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-03 Thread Greg Stark
Greg Stark added the comment: I can easily grant you access to mine. It's a bit slow but you can quickly poke around with the state in the backtrace which honestly looks to me like it should be enough to spot the problem. There are other options. There's a good emulator at http://simh.trailin

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-02 Thread R. David Murray
R. David Murray added the comment: It looks like you are in the compiling step, so the decorators have nothing to do with it. This does appear to be a platform issue in the interpreter core, and you'll have to track it down since we don't have access to your platform (at least, I don't think

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +mark.dickinson, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27444] Python doesn't build due to test_float.py broken on non-IEEE machines

2016-07-02 Thread Greg Stark
New submission from Greg Stark: The file Test/test_float.py has a decorator for tests that must be skipped on non-IEEE machines. However just eyeballing it it seems there are a few tests that test behaviour around Inf and NaN that are lacking this decorator. Alternately it's possible this is a