Install the gcc cross-compilation tool in linux and its "floating point number exceptions"

Source: Internet
Author: User

 

1. to install it under the root user, the installation may fail under other users.

2. If the "floating point exception" is displayed after the installation is successful, it may be your Linux

 

Generally, you can reinstall another version of Linux to solve this problem.

 

 

 

 

 

 

 

 

 

How to Make arm-Linux-GCC available in any directory:

 

The current directory is/home/Jun/arm.

$ Sudo CP-r usr/

(PS: some tools that will be used later to create a file system will be automatically copied to the corresponding sbin directory)

$ CP-r opt/embedsky /*./

(PS: it will copy 4.3.3 and crosstool-***. It will be slow if there are many files)

Then you can drop OPT and usr to RM.

$ Rm-RF opt USR

Then we add the/home/Jun/ARM/4.3.3/bin directory to the environment variable.

$ Sudo VI/etc/environment

There is only one path in it. Do not forget to separate it. And execute:

$ Export Path = $ path:/home/Jun/ARM/4.3.3/bin

In this way, the current environment will be valid, and the modified environment file will be valid after the next boot.

Or modify the/etc/profile file: Add the following at the end to save the/etc/profile file:

Export Path = $ path:/home/Jun/ARM/4.3.3/bin

Run the following command to refresh the path.

$ Source/etc/profile

Then let's verify:

$ Arm-Linux-gcc-V

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.