[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-08 Thread John Stracke

New submission from John Stracke <[EMAIL PROTECTED]>:

I downloaded the source to Python 3.0 onto my Nokia N810, an ARM-based
Linux machine.  The native gcc is 3.4.4 (upgrading might be possible,
but would certainly be a pain).  I was able to build only by switching
from -O3 to -O2; -O3 caused a compiler crash.

Now, this isn't really Python's fault; gcc really shouldn't be crashing.
 However, it'd be nice if configure had a way to specify the
optimization level--I had to go in and edit the generated Makefile by
hand.  Better yet would be if configure could recognize the platform and
set the -O level accordingly.

--
components: Build
messages: 77315
nosy: metageek
severity: normal
status: open
title: Can't compile with -O3, on ARM, with gcc 3.4.4
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4594>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-09 Thread John Stracke

John Stracke <[EMAIL PROTECTED]> added the comment:

The OPT env var is good.  Maybe it could be documented in configure --help?

And, yeah, recognizing the platform is messy.  I'll dig and see whether
gcc3 does the same thing on x86, though; if so, some logic to say "use
-O2 for gcc <4" shouldn't be so bad.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4594>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-09 Thread John Stracke

John Stracke <[EMAIL PROTECTED]> added the comment:

OK, nope, gcc 3.4.6 on x86-64 builds fine.  So, please, just have
configure --help mention OPT.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4594>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-10 Thread John Stracke

John Stracke <[EMAIL PROTECTED]> added the comment:

You may be right; I haven't used autoconf before, so I don't know.

But I'll give it a shot.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4594>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com