[New-bugs-announce] [issue7714] configure GCC version detection fix for Darwin

Fabian Groffen report at bugs.python.org
Sat Jan 16 17:25:11 CET 2010


New submission from Fabian Groffen <grobian at gentoo.org>:

configure.in contains a check for the compiler in use for Darwin like this:

gcc_version=`gcc -v 2>&1 |  grep version | cut -d\  -f3`

This yields in a wrong answer if the output of gcc -v has "version" in another place as well, such as when --enable-version-specific-runtime-libs is enabled.  A better way to retrieve the compiler version is to use GCC's -dumpversion argument, which works with Apple's GCC 3.3, 4.0.1 and 4.2.1 and doesn't need additional grepping/cutting, etc.

The attached patch uses -dumpversion to retrieve the GCC version, which allows a successful configure run.

----------
components: Build
files: python-2.5.1-darwin-gcc-version.patch
keywords: patch
messages: 97883
nosy: grobian
severity: normal
status: open
title: configure GCC version detection fix for Darwin
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15911/python-2.5.1-darwin-gcc-version.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7714>
_______________________________________


More information about the New-bugs-announce mailing list