Jump to content


Compile gcc in Ubuntu 11.10


  • Please log in to reply
2 replies to this topic

#1 Erik_JE

Erik_JE

    Illusionist

  • Members
  • PipPipPip
  • 377 posts
  • Joined: 12-January 10
  • Location:Stockholm, Sweden
  • Name:Erik Johansson-Evegård

Posted 01 May 2012 - 12:17 PM

So for various reasons I need to get gcc 4.1.2 running in Ubuntu 11.10 but I am failing miserably.

I tried installing old deb files but it caused dependency hell.

I tried compiling it from source which have worked fine in earlier Ubuntu versions but is now failing as well.
It appears to be because of the switch to multiarch that happened in 11.10.
For this I found a patch http://gcc.gnu.org/m...8/msg01649.html that I was told should work but after patching source I still have loads of compile errors I can not get rid of. The patch also had problems finding some files which is I guess because its for a more recent version of gcc so I doubt how well it actually worked.

In conclusion. Have anyone managed to compile gcc on Ubuntu 11.10+ ?
This is either a really smart move or by far the stupidest thing that we have ever tried.

#2 lukeiamyourfather

lukeiamyourfather

    Illusionist

  • Members
  • PipPipPip
  • 394 posts
  • Joined: 30-April 09
  • Location:Dallas
  • Name:Luke Olson

Posted 02 May 2012 - 02:32 AM

Maybe use a virtual machine with an older distribution?

#3 Erik_JE

Erik_JE

    Illusionist

  • Members
  • PipPipPip
  • 377 posts
  • Joined: 12-January 10
  • Location:Stockholm, Sweden
  • Name:Erik Johansson-Evegård

Posted 02 May 2012 - 11:23 AM

View Postlukeiamyourfather, on 02 May 2012 - 02:32 AM, said:

Maybe use a virtual machine with an older distribution?

Guess I will have to do that until someone smarter than me figures this out. At the moment tho it seems to work compiling with gcc 4.6.1 but I am pretty sure I will soon run into some nice linker errors caused by it as I usually do.
This is either a really smart move or by far the stupidest thing that we have ever tried.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users