PDA

View Full Version : [ubuntu] Compiling GCC from source



Neo_The_User
March 9th, 2009, 03:50 AM
I'm having trouble compiling GCC 4.4

http://gcc.releasenotes.org/snapshots/LATEST-4.4/

I'm trying to compile a kernel with the latest bleeding edge version of GCC and it won't compile. I ran sudo apt-get build-dep gcc and I always get errors with ./configure so any help would be greatly appreciated.

Partyboi2
March 9th, 2009, 05:53 AM
What are the errors you are getting?

Neo_The_User
March 9th, 2009, 05:54 AM
I'm currently running this Hard Drive nuker right now so I can't get you that info ATM. It's so funny the latest version of gcc came out on my birthday.

Neo_The_User
March 9th, 2009, 05:32 PM
Works now I fixed the tool chain problem myself.

***SOLVED***

You can't just run build-dep gcc. You have to run build-dep gcc g++ libstdc++5 libstdc++6 and it works. This is why I love debian based distros. The build-dep command is just so handy at times like these. I am going to write a guide on compiling a kernel from source using gcc compiled from source when I am finished. It's going to be so fast when it's finished. Compiler flags for gcc and kernel set to i686! WOOO WHOOOO!!