
This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
wearetheborg |
Posted: Mar 14 2012, 12:18 AM
|
|
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 249 Member No.: 18 Joined: 11-April 11 ![]() |
Are there SL packages for the latest versions of gcc (currently 4.6.3, soon 4.7)?
-------------------- |
|
AndrewSerk |
Posted: Mar 14 2012, 12:52 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 457 Member No.: 54 Joined: 14-April 11 ![]() |
Not that I know of. I am sure you know that SL focuses on stability and reliability over the newest numbered packages. Fedora is a better choice for the "cutting edge but sometimes bleeding" packages .
![]()
|
|||
wearetheborg |
Posted: Mar 14 2012, 03:29 AM
|
|||||
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 249 Member No.: 18 Joined: 11-April 11 ![]() |
I know, the reason I'm asking is that the C++11 standard was just approved last year, and compilers are working on implementing it...I would like to be able to program in the new standard. Is it difficult to compile and install gcc from source? Can I use the older SL gcc to compile gcc 4.6.3? -------------------- |
|||||
AndrewSerk |
Posted: Mar 14 2012, 03:56 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 457 Member No.: 54 Joined: 14-April 11 ![]() |
I don't think it would be easy meeting the deps. I just did a little test from a stock SL 6.2 i686 install :
|
|||
redman |
Posted: Mar 14 2012, 06:58 AM
|
|
![]() Retired SLF Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admins Posts: 1276 Member No.: 2 Joined: 8-April 11 ![]() |
GCC is an important package with several dependencies (as Andrew pointed out). If you REALLY need GCC 4.7 you might want to consider using the latest version of Fedora (either on a seperate system or on a virtual machine) since SL6 isn't intended as a system with "bleeding edge" software.
-------------------- "Sometimes the best helping hand you can give is a good, firm push."
|
|
wearetheborg |
Posted: Mar 14 2012, 06:48 PM
|
|
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 249 Member No.: 18 Joined: 11-April 11 ![]() |
Thanks Redman and AndrewSerk for the research.
I think I will use a virtual machine for gcc. It is the only bleeding edge software that I need to be bleeding edge. -------------------- |
|
Tom |
Posted: Mar 29 2012, 11:13 AM
|
|||
SLF Newbie Group: Members Posts: 1 Member No.: 1414 Joined: 29-March 12 ![]() |
Hi, yesterday I compiled GCC 4.7 without problems. My system is SL 6.1 (x86_64) Just read the instructions on gcc.gnu.org (in the right corner). Everything you need (required packages) is described. Because I installed SL as a Software Development Workstation, I only had to add 3 packages. The only confusing/ambigous thing in the instructions is that you should NOT compile within objdir. I created a directory "temp"; within temp I uncompressed GCC, which creates a folder "gcc-4.7.0". Now DON´T cd into "gcc-4.7.0", just stay in "temp" and enter "gcc-4.7.0/configure" ! After "make" and "make install" it copies everything AND installs v4.7 as the DEFAULT compiler. I run the testsuite (It took half a night) and about 99% was successful. It would of course be fantastic to always have the latest GCC as a native package from SL (and not Fedora etc.). Hope this helps, Tom |
|||
wearetheborg |
Posted: Apr 3 2012, 10:44 PM
|
|||
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 249 Member No.: 18 Joined: 11-April 11 ![]() |
Thanks Tom, that helps a lot and thank you again for the great news! BTW, why cant you cd into the directory and configure from there? I assume configure has a prefix= option so that I can install gcc into my local home directory and not require root privileges? -------------------- |
|||
zxq9 |
Posted: Apr 4 2012, 02:36 PM
|
|
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 321 Member No.: 611 Joined: 5-August 11 ![]() |
On a related note, I am considering packaging a few languages and utilities more current than the standard SL/TUV batch, including:
Python 3 (whatever version its at when I do it... 3.3 or 3.4) Guile 2 (v2.0.5) - the Scheme interpreter for everything gcl v2.6.7 - Common Lisp over gcc gcc 4.7.0 gdc or gcd or whatever the D compiler over gcc winds up being called (if it actually winds up getting pushed, that is) gcc is being a strong "maybe" as I may not hop on it unless its really needed by the other packages, and of course the status of D is totally up in the air because, well, its D. I know C++ Version Uber just came out of standardization (well, sort of, almost there anyway) and its got garbage collection (O.o) but I just don't spend much time in C++ these days, much more in lisp and Python and so these packages are important to me. My scheme (haha, just noticed that's a pun) is to install them with calling names that do not conflict with the system standard, similar to how Python3 is handled in Fedora (where you explicitely call or hashbang "python3" or "/usr/bin/python3" to get that version, where plain old "python" gives you 2.6 or 2.7). Hopefully this will alleviate some of the Python3/Guile2/total-lack-of-gcl issues. If the gcc thing works out, then that would be cool -- though gcc is definitely a lower priority until the big libraries like boost and Qt start requiring them. Oh, also, I'm almost back in action on the forums. |
|
wearetheborg |
Posted: Apr 4 2012, 05:08 PM
|
|||
![]() SLF Geek ![]() ![]() ![]() ![]() Group: Members Posts: 249 Member No.: 18 Joined: 11-April 11 ![]() |
It was standardized almost a year go (8 months to be exact). I was able to compile MIT-scheme without any hassle on my ubuntu box -------------------- |
|||
![]() |
![]() ![]() ![]() |