Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if linux gcc is prompted when compiling CROSSTOOL?

Shulou Source: shulou.com Published: 2022-05-31 13:56:46 10月30日 Update

linux gcc compilation CROSSTOOL prompt how to do, I believe that many inexperienced people are helpless, for this reason this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

I am currently using Ubuntu 8.04, because recently has been upgrading Linux, resulting in my current Linux gcc version has also become higher, is currently 4.2.3. When I compile the CROSSTOOL I had previously, I get this prompt:

checking for a BSD-compatible install... /usr/bin/install -c

checking whether ln -s works... yes

checking for pwd... /bin/pwd

checking for arm-linux-gcc... gcc

checking version of gcc... 4.2.3, bad

checking for gnumake... no

checking for gmake... no

checking for make... make

checking version of make... 3.81, ok

configure: error:

*** These critical programs are missing or too old: gcc

*** Check the INSTALL file for required versions.

So I need to press my current version of linux gcc to the previous state 3.4. First of all, you need to go to your usr/bin/to see if there is a file like gcc-3.4, if not, install it:

apt-get install gcc-3.4

After that, you need to delete the gcc file in usr/bin/directory or avoid accidents, you can name it gcc.bak. If you don't delete it, you'll find that ln -s usr/bin/gcc-3.4 /usr/bin/gcc doesn't work. In fact, when you use gcc -v to check the current version, you always use usr/bin/gcc. ln -s /usr/bin/gcc-3.4 /usr/bin/gcc is intended to generate gcc version 3.4. In a word, you just need to execute:

rm /usr/bin/gcc

ln -s /usr/bin/gcc-3.4 /usr/bin/gcc

And then gcc -v you can see that the current version is 3.4. If you want to reuse the current 4.2.3, use the same method:

rm /usr/bin/gcc

ln -s /usr/bin/gcc-4.2.3 /usr/bin/gcc

Then gcc -v to determine the version will know.

After reading the above content, do you know how to compile CROSSTOOL with linux gcc? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Tags: Version time out prompt compilation method what to do content that is files more problems accidents helpless for this one word function reason actually actually for this Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi NVidia Docker Shulou Information