LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 08-04-2009, 06:15 PM   #1
pcallahan80
LQ Newbie
 
Registered: Aug 2009
Posts: 2
Thanked: 0
5.5. GCC-4.4.0 - Pass 1 Make Problem


[Log in to get rid of this advertisement]
Using Linux From Scratch - Version 6.5-rc1
Chapter 5.5. GCC-4.4.0 - Pass 1

Ran Make and received the following error


Code:
make[2]: Entering directory `/mnt/lfs/gcc-build/gcc-4.4.1/x86_64-lfs-linux-gnu/libgcc'                
Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory                                     
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'.  Stop.
Working directory is /mnt/lfs/gcc-build/gcc-4.4.1 with directories for both mpfr and gmp contained therein.

-pc
pcallahan80 is offline  
Tag This Post ,
Reply With Quote
Old 08-04-2009, 10:11 PM   #2
weibullguy
PackManUtil Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Cross Linux from Scratch, Gentoo
Posts: 2,343
Blog Entries: 1
Thanked: 60
For starters you're not following the instructions in the book. The biggest mistake you've made is to build gcc in the source directory. You're not supposed to do that which is the reason the book tells you to create a dedicated build directory. Try starting over with section 5.5, but follow the instructions, and see if that helps.

You might want to follow the instructions in section 3.1 as well. The way you are doing things, you're going to end up with a lot of source directories under / in your final system.
weibullguy is offline     Reply With Quote
Old 08-04-2009, 10:44 PM   #3
pcallahan80
LQ Newbie
 
Registered: Aug 2009
Posts: 2
Thanked: 0

Original Poster
Ok, missing something fundamental

Quote:
Originally Posted by weibullguy View Post
For starters you're not following the instructions in the book. The biggest mistake you've made is to build gcc in the source directory. You're not supposed to do that which is the reason the book tells you to create a dedicated build directory. Try starting over with section 5.5, but follow the instructions, and see if that helps.

You might want to follow the instructions in section 3.1 as well. The way you are doing things, you're going to end up with a lot of source directories under / in your final system.
Ok, now I'm scratching my head. I thought the source directory was $LFS/sources or mnt/lfs/sources. That's why I created the following separate directories outside of mnt/lfs/sources.

mnt/lfs/binutils-build and mnt/lfs/gcc-build

...then moved the appriate .bz2 files into them, unpacked, etc.

Was that not correct?

EDIT: Going back and looking at Ch 4, was I supposed to do all these Pass 1 compiles in the $LFS/tools directory?...creating binutils-build, moving the .tar.bz2 files there, unpacking, config, compiling? Is that what I missed?

Last edited by pcallahan80; 08-04-2009 at 10:55 PM..
pcallahan80 is offline     Reply With Quote
Old 08-05-2009, 01:44 AM   #4
weibullguy
PackManUtil Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Cross Linux from Scratch, Gentoo
Posts: 2,343
Blog Entries: 1
Thanked: 60
Read the third paragraph in section 3.1. It's pretty clear what the $LFS/sources directory is for. All of the build instructions in the book comply with the second note marked "Important" in section 5.3. You're actually supposed to read everything, not just jump in somewhere in the middle of the book.
weibullguy is offline     Reply With Quote
Old 08-23-2009, 08:28 PM   #5
Northdakota91
LQ Newbie
 
Registered: Aug 2009
Location: World
Posts: 1
Thanked: 0
Hi to all, I have the same problem (I'm using LFS ver. 6.5), this is the error:

Code:
config.status: creating Makefile
config.status: executing default commands
make[2]: Entering directory `/media/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc'
Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'.  Stop.
make[2]: Leaving directory `/media/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/media/lfs/sources/gcc-build'
make: *** [all] Error 2
lfs@ndakota-desktop:/media/lfs/sources/gcc-build$
GCC is in /media/lfs/sources/gcc-build directory with gmp and mpfr dirs in it. Can someone help me, please? I can't find my mistake..

As I can see here's missing 'libgcc.mvars' file... Where can I find it?

(...And, eventually, sorry for my bad english )

Last edited by Northdakota91; 08-23-2009 at 08:42 PM..
windows_vista Northdakota91 is offline     Reply With Quote
Old 08-23-2009, 09:45 PM   #6
fdt93
LQ Newbie
 
Registered: Apr 2005
Distribution: LFS 6 / BLFS 6
Posts: 7
Thanked: 1
NorthDakota91, you're close, but I think you may have done a couple things out of order. The GMP and MPFR tarballs should not be extracted in the gcc-build directory.

The correct order of events should be:

1. extract the gcc tarball into your $LFS/sources directory
2. cd into the resulting $LFS/sources/gcc-4.4.1 directory
3. extract the gmp and mpfr tarballs into the gcc-4.4.1 directory
4. create the $LFS/sources/gcc-build (../gcc-build) directory
5. cd into the gcc-build directory
6. follow the configure and make directions

Remember that the build instructions for each package assume that you have already extracted the package, and changed into the packages' source directory. Once you are there, you should enter the commands for that package in the exact order as written in the book.
windows_xp_2003 fdt93 is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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
GCC 2nd pass make error - xgcc cannot find -lc cogitocumimpune Linux From Scratch 1 01-11-2009 08:13 AM
Problem at 5.12. GCC-4.3.2 - Pass 2 la1nla1n Linux From Scratch 2 01-09-2009 01:40 PM
Problem on pass 2 build of GCC (V6.2) Paulsuk Linux From Scratch 1 11-16-2007 12:15 AM
gcc 4.0.3 first pass - 'make bootstrap' radiodee1 Linux From Scratch 6 10-10-2006 04:20 PM
odd problem with GCC pass 1... :scratch: ParticleHunter Linux From Scratch 15 12-05-2004 11:21 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration