Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:19 AM
Dave Kuhlman
Guest
 
Posts: n/a
Default Recommended version of gcc for Python?


Is there a recommended version of gcc that I should be using to
compile Python? I've compiled Python 2.4 with gcc 3.3.4 on Ubuntu
Debian GNU/Linux. However, I notice that gcc 3.5 and gcc 4.0 are
available for installation.

Dave

--
http://www.rexx.com/~dkuhlman
  #2  
Old July 19th, 2005, 02:20 AM
Bernd Nawothnig
Guest
 
Posts: n/a
Default Re: Recommended version of gcc for Python?

On 2005-05-16, Dave Kuhlman wrote:
[color=blue]
> Is there a recommended version of gcc that I should be using to
> compile Python? I've compiled Python 2.4 with gcc 3.3.4 on Ubuntu
> Debian GNU/Linux. However, I notice that gcc 3.5 and gcc 4.0 are
> available for installation.[/color]

I am on Gentoo Linux and use gcc 3.4.3 (~x86 == unstable) for almost
all ebuilds including Python 2.3.5 (x86 == stable). No malfunction so
far, and Gentoo depends heavily on Python. _If_ gcc 3.4 compiles a
source the resulting binary will work. The only problem is, not all
ebuilds compile without errors using gcc 3.4.

Simply try it.




Bernd

--
Those who desire to give up freedom in order to gain security,
will not have, nor do they deserve, either one. [T. Jefferson]
  #3  
Old July 19th, 2005, 02:20 AM
Jeff Epler
Guest
 
Posts: n/a
Default Re: Recommended version of gcc for Python?

Most versions of gcc should be just fine to compile Python. Python is
targeted at ANSI/ISO C compilers, but does not yet use any C99 features.

I don't think there was ever such a thing as "gcc 3.5";
http://gcc.gnu.org/ lists 4.0 as the "current release series" and 3.4.3
as the "previous release series". I'd steer clear of this version.

I recommend using the default compiler of your distribution, unless you
know of a specific reason to use a different one.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCiPG0Jd01MZaTXX0RAoq/AJ9nv4G8J1h06V5CzkniCt9nV0ugXACff3Mo
8f2aOpZs6coAvJxtJgMTZ28=
=FCd/
-----END PGP SIGNATURE-----

  #4  
Old July 19th, 2005, 02:20 AM
casevh@comcast.net
Guest
 
Posts: n/a
Default Re: Recommended version of gcc for Python?

On Ubuntu, I have tried 3.3.4, 3.4.3 and 4.0. Compile and make test ran
successfully with all three. For my benchmark, platform, and compiler
options, 3.4.3 was the fastest by approximately 2%.

I would normally use the default compiler for your distribution.

casevh

  #5  
Old July 19th, 2005, 02:20 AM
Dave Kuhlman
Guest
 
Posts: n/a
Default Re: Recommended version of gcc for Python?

casevh@comcast.net wrote:
[color=blue]
> On Ubuntu, I have tried 3.3.4, 3.4.3 and 4.0. Compile and make
> test ran successfully with all three. For my benchmark, platform,
> and compiler options, 3.4.3 was the fastest by approximately 2%.
>
> I would normally use the default compiler for your distribution.
>[/color]

So, I'll stay with what I've got (3.3.5) for now. Thanks for the
help.

Dave

--
http://www.rexx.com/~dkuhlman
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles