LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-01-2011, 01:37 PM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
Problem with compiling gcc (LFS 7.0)


i have problem with compiling gcc !!
here is what i did:
i extracted gcc-4.6.1.tar.bz2 ,then i extracted mpc,mpfr and gmp.and put them in the gcc directory:
gmp(extracted directory)-->gcc-4.6.1
mpfr(extracted directory)-->gcc-4.6.1
mpc(extracted directory)-->gcc-4.6.1

the i changed my directory to issue this command:
patch -Np1 -i gcc-4.6.1-cross_compile-1.patch
to patch the package
after that:
.configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --disable-libquadmath \
--disable-target-libiberty --disable-target-zlib \
--enable-languages=c --without-ppl --without-cloog \
--with-mpfr-include=$(pwd)/../gcc-4.6.1/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs

with this command i got the MAKEFILE.but when i want to make it:
.
.
.
.
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for creal in -lm... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-4.6.1'
make: *** [all] Error 2

where did i do wrong,guys?
 
Old 11-01-2011, 05:08 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Did you follow the directions exactly? These commands are issued AFTER you unpack gcc and then cd into the gcc-4.6.1 directory
Code:
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -jxf ../gmp-5.0.2.tar.bz2
mv -v gmp-5.0.2 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc
I can't tell if that's what you did based on your description. Also, since you didn't tell us, I am assuming you are working on section 5.5.

Last edited by weibullguy; 11-01-2011 at 05:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Newbie 3 04-19-2008 05:54 AM
error using lfs while compiling 6.12 gcc-4.1.2 aditya_gpch Programming 1 04-19-2008 04:38 AM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration