The first binutils-2.17 compilation error, for help
Source: Internet
Author: User
The first binutils-2.17 compilation error, for help-Linux general technology-Linux programming and kernel information, the following is read details. Hi ~ All
I am tring to compile binutils2.17 for my lfs
Env: vmware5.5
LiveCD: lfslivecd-x86-6.3-r2160.iso
I do like this:
My reference documents
Http://www.linuxfromscratch.org... binutils-pass1.html
Tar xvf/lfs-sources/binutils-2.17.tar.bz2
Cd binutils-2.17
Mkdir-v ../binutils-build
Cd ../binutils-build
CC = "gcc-B/usr/bin/" ../binutils-2.17/configure \
-- Prefix =/tools -- disable-nls -- disable-werror
Then
Vi config. log
**************************************** **********
Configure: 2317: checking for correct version of gmp. h
Configure: 2330: gcc-B/usr/bin/-c-g-O2 conftest. c 1> & 5
Configure: 2320: 17: error: gmp. h: No such file or directory
Configure: In function 'main ':
Configure: 2324: error: 'choke' undeclared (first use in this function)
Configure: 2324: error: (Each undeclared identifier is reported only once
Configure: 2324: error: for each function it appears in .)
Configure: 2324: error: expected '; 'before 'me'
Configure: failed program was:
# Line 2319 "configure"
# Include "confdefs. h"
# Include "gmp. h"
Int main (){
# If _ GNU_MP_VERSION <3
Choke me
# Endif
; Return 0 ;}
**************************************** ************
And what I have to do this ??
Where do I get gmp. h? Do I need it? What else can be wrong?
Thank you.
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