LinuxQuestions.org
Visit Jeremy's Blog.
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 06-05-2009, 10:41 PM   #1
t8rsalad
LQ Newbie
 
Registered: Jun 2009
Location: South Carolina
Distribution: Ubuntu and Trisquel GNU/Linux
Posts: 10

Rep: Reputation: 0
Building and Installing GCC


2 questions on the same day... I'm not doin' to hot. Here's the problem: In section 5.5.1, I'm supposed to install GCC to do this I have to unarchive the GMP and MPFR packages. I've done this. They're in the build directory (gcc-build) with GCC however, when I run the script to prepare for compilation,

CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp \
--enable-languages=c


I'm told that I need to include GMP 4.2.0+ and MPFR 2.3.0+. What am I doing wrong?
(Here's the URL to the section of the book if you need to look at that: http://www.linuxfromscratch.org/lfs/...gcc-pass1.html)

Last edited by t8rsalad; 06-05-2009 at 10:42 PM.
 
Old 06-06-2009, 02:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
LFS 6.4 , § 5.5.1

As you can see, the build directory is made
after you unpack mpfr and gmp.

The starting point for building the (most ?) software in Linux :
Example, gcc
1) tar xvf gcc-4.3.2.tar.bz2
2) cd gcc-4.3.2/
So that is your location, when told to unpack mpfr + gmp.
( Hence the command 'mkdir -v ../gcc-build', which would
be wrong, if your current location wasn't inside gcc-4.3.2/ )

Summary : mpfr, gmp are unpacked into gcc-4.3.2/ , and
you can just move it there, or start from scratch.
.....

Last edited by knudfl; 06-06-2009 at 02:09 AM.
 
Old 06-06-2009, 05:51 AM   #3
t8rsalad
LQ Newbie
 
Registered: Jun 2009
Location: South Carolina
Distribution: Ubuntu and Trisquel GNU/Linux
Posts: 10

Original Poster
Rep: Reputation: 0
Okay, thanks, I'll move them and try it.
 
  


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
building gcc slackware jakiel Linux - Newbie 5 01-30-2007 07:19 PM
Building gcc under FC4 miggles Linux - Software 3 08-08-2006 02:24 AM
error in Building gcc-4.0.2 newcomer4 Linux - Software 2 01-31-2006 02:44 AM
Problem with 'cc' while building/installing gcc 3.4.0 linuxalien Programming 1 05-06-2004 03:18 AM
Building GCC natesch Linux - Newbie 4 05-09-2002 12:38 AM

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

All times are GMT -5. The time now is 02:40 AM.

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