Recommended version of gcc for Python?

D

Dave Kuhlman

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
 
B

Bernd Nawothnig

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.

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
 
J

Jeff Epler

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-----
 
C

casevh

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
 
D

Dave Kuhlman

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.

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

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,239
Messages
2,571,200
Members
47,838
Latest member
elibuskamoSeAve

Latest Threads

Top