Why I can not create a compiler with a lower version

I am currently trying to create gcc 4.4 for the recently updated ubuntu 11.10. However, when creating a compiler, there are always problems with some problems when trying to load.

Could not find the first crti.o and crtn.o I mapped them to a different directory in the search path, and so I could get the boot compiler. However, now it does not work with the message:

configure: error: C compiler cannot create executables

I tried using an intermediate compiler in a simple test program, and I get a message:

 $ ./host-x86_64-unknown-linux-gnu/prev-gcc/xgcc test.c xgcc: error trying to exec 'cc1': execvp: File or directory not found 

So, something is seriously confused with the paths of my intermediate compiler. When I did the same on ubuntu 11.04, everything just worked perfectly.

I used the following command line to configure:

 ./configure --prefix=/opt --program-suffix=44 

I also tried both the built VPATH and the source in the assembly, but both have the same problem. I still have gcc44 before the update lying inside /opt , but it has become unusable since the update.

Is there an easy way to get gcc 4.4 working under Ubuntu 11.10? I do not have to be a self-learning compiler, if I can just download the package and install it, that will be fine too.

+1
gcc cross-compiling
Feb 03 2018-12-12T00:
source share
1 answer

This is caused by switching Ubuntu to multi-arch. Basically, all the "standard" paths have been changed, so you can install libraries for several architectures on one computer without any conflicts.

Ubuntu GCC was fixed to fix the problem, of course, but the upstream compiler was still not fixed the last time I checked.

See here: https://askubuntu.com/questions/69365/cant-build-gcc-anymore-since-upgrade-to-11-10

+2
03 . '12 at 15:48
source share



All Articles