Jump to content

Compile gcc in Ubuntu 11.10


Erik_JE

Recommended Posts

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/ml/gcc-patches/2011-08/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+ ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...