Complete cross-compilation gcc problems, for help

Source: Internet
Author: User
If a complete gcc cross-compilation problem occurs, ask for help-general Linux technology-Linux programming and kernel information. The following is a detailed description. My system is RH9, and the gcc version is 3.2.2.5. The gcc source of the Cross-compilation tool is 4.2.0.
At the last step, the gcc compilation is complete, but there is a problem.

Checking for gcc... gcc checking whether the C compiler (gcc) works... no
Configure: error: installation or configuration problem: C compiler cannot create executables.

The configuration parameters are as follows:
#./Configure -- target = arm-linux -- enable-versions ages = c, c ++ -- prefix = $ PREFIX


The content of config. log is as follows:
This file contains any messages produced by compilers while
Running configure, to aid debugging if configure makes a mistake.
Configure: 630: checking host system type
Configure: 651: checking target system type
Configure: 669: checking build system type
Configure: 724: checking for a BSD compatible install
Configure: 777: checking whether ln works
Configure: 801: checking whether ln-s works
Configure: 1866: checking for gcc
Configure: 1979: checking whether the C compiler (gcc) works
Configure: 1995: gcc-o conftest. c 1> & 5
/Usr/bin/ld:/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/.../../crt1.o: Relocations in generic ELF (EM: 40)
/Usr/lib/gcc-lib/i386-redhat-linux/3.2.2/.../crt1.o: cocould not read symbols: File in wrong format
Collect2: ld returned 1 exit status
Configure: failed program was:
# Line 1990 "configure"
# Include "confdefs. h"
Main () {return (0 );}

Please take a look at the reason and how to solve it. Thank you for your help ~

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.