LinuxQuestions.org
Visit Jeremy's Blog.
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 12-13-2009, 04:54 PM   #16
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743

Moved to LFS
 
Old 12-14-2009, 12:32 AM   #17
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
here is the next error. anyone what this means and how to correct it.

Code:
lfs@debian:/mnt/lfs/gcc-build/gcc-4.4.1$ make install
make[1]: Entering directory `/mnt/lfs/gcc-build/gcc-4.4.1'
/bin/sh ./mkinstalldirs /usr/local /usr/local
make[2]: Entering directory `/mnt/lfs/gcc-build/gcc-4.4.1/host-i686-pc-linux-gnu/fixincludes'
rm -rf /usr/local/libexec/gcc/i686-pc-linux-gnu/4.4.1/install-tools
/bin/sh ../.././fixincludes/../mkinstalldirs /usr/local/libexec/gcc/i686-pc-linux-gnu/4.4.1/install-tools 
mkdir -p -- /usr/local/libexec/gcc/i686-pc-linux-gnu/4.4.1/install-tools
mkdir: cannot create directory `/usr/local/libexec': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.4.1/host-i686-pc-linux-gnu/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.4.1'
make: *** [install] Error 2
 
Old 12-14-2009, 04:56 AM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Looking at the above I assume this is gcc pass 1 in chapter 5.

Your target seems to be wrong. It points to /usr/local, it should be /tools

Did you forget the --prefix=/tools and/or --with-local-prefix=/tools part in the configure step?

I'm talking about this command:

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../gcc-4.4.1/configure --prefix=/tools \
--with-local-prefix=/tools --enable-clocale=gnu \
--enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-languages=c,c++ \
--disable-libstdcxx-pch --disable-multilib \
--disable-bootstrap

The --prefix=..... and -with-local-prefix=.... make sure that the package is not installed in its default location (your host in this case), but in the Temporary environment location (what chapter 5 is all about).

Hope this helps.
 
Old 12-14-2009, 10:37 AM   #19
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by dvdljns View Post
here is the next error. anyone what this means and how to correct it.
This seems to be your problem
Code:
mkdir: cannot create directory `/usr/local/libexec': Permission denied
Try
Code:
lfs@debian:/mnt/lfs/gcc-build/gcc-4.4.1$ sudo make install
You have to be root or have root privileges to install files.

...or I could be totally wrong, and "druuna" has the answer.

Last edited by David1357; 12-14-2009 at 10:39 AM.
 
0 members found this post helpful.
Old 12-14-2009, 11:08 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by David1357 View Post
This seems to be your problem
Try
Code:
lfs@debian:/mnt/lfs/gcc-build/gcc-4.4.1$ sudo make install
Do _NOT_ follow this advise!!! It will probably screw up your host! If you follow this advise your newly compiled gcc pass 1 will be part of your host, and _not_ lfs....

All steps in chapter 5 should be done as user lfs and no root rights are needed whatsoever at this stage!!

Be warned!!

@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.

Last edited by druuna; 12-14-2009 at 11:29 AM.
 
Old 12-14-2009, 12:57 PM   #21
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by druuna View Post
Hi,

Looking at the above I assume this is gcc pass 1 in chapter 5.

Your target seems to be wrong. It points to /usr/local, it should be /tools

Did you forget the --prefix=/tools and/or --with-local-prefix=/tools part in the configure step?

I'm talking about this command:

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../gcc-4.4.1/configure --prefix=/tools \
--with-local-prefix=/tools --enable-clocale=gnu \
--enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-languages=c,c++ \
--disable-libstdcxx-pch --disable-multilib \
--disable-bootstrap

The --prefix=..... and -with-local-prefix=.... make sure that the package is not installed in its default location (your host in this case), but in the Temporary environment location (what chapter 5 is all about).

Hope this helps.
None of these commands have worked with out a hitch. With a lot of help from this forum I have been able find a work around but there has not been a command yet that has not worked with out an error. when I run this I get can not create executables and to look at the log file. which I will upload. I do know it is supposed to in a jail but do not know why the command is not working.
Attached Files
File Type: txt config.log.txt (9.5 KB, 8 views)
 
Old 12-14-2009, 01:01 PM   #22
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Wink

Quote:
Originally Posted by druuna View Post
Do _NOT_ follow this advise!!! It will probably screw up your host! If you follow this advise your newly compiled gcc pass 1 will be part of your host, and _not_ lfs....

All steps in chapter 5 should be done as user lfs and no root rights are needed whatsoever at this stage!!

Be warned!!

@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.
Do not worry if there is one thing I understood it that it has to be done by lfs and kept seperate of my normal debian system.
 
Old 12-14-2009, 01:36 PM   #23
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@dvdljns:

LFS 6.5 is stable and works. If you follow the on-line book (and do start with the first page...), it should all work.

I do advise to use the LFS liveCD as host and not the distro you currently use.

Most common starting problems are related to having a host that is not up to specs (iv. Host System Requirements). I do believe that the problem you are having is also related to this (missing or incomplete package install on your host).

Do not deviate from the LFS book unless you know what the implications are later on.

I'm not sure what you did/didn't do to get all this working, as it is still very early in the build I would suggest starting from scratch.

Tip: Do make a backup once you finish chapter 5 (see the "Caution" part in chapter 5.32), it makes life so much easier when something goes wrong in chapter 6.
 
Old 12-14-2009, 02:09 PM   #24
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Unhappy

Quote:
Originally Posted by druuna View Post
@dvdljns:

LFS 6.5 is stable and works. If you follow the on-line book (and do start with the first page...), it should all work.

I do advise to use the LFS liveCD as host and not the distro you currently use.

Most common starting problems are related to having a host that is not up to specs (iv. Host System Requirements). I do believe that the problem you are having is also related to this (missing or incomplete package install on your host).

Do not deviate from the LFS book unless you know what the implications are later on.

I'm not sure what you did/didn't do to get all this working, as it is still very early in the build I would suggest starting from scratch.

Tip: Do make a backup once you finish chapter 5 (see the "Caution" part in chapter 5.32), it makes life so much easier when something goes wrong in chapter 6.
The lfs live cd will not boot on this pc don't know why. your are right I have had to update some programs on this comp. also you are right about me not keeping everything seperated. I found a tools directory in root on my main drive. not where it should be. Is there any way to recover from this or do I need to wipe eveything and start from scratch. I can move everything back to to the second drive where they are supposed to be. but I am not sure about the symlinks.
 
Old 12-14-2009, 02:31 PM   #25
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Like I suggested before: Start from scratch, it is safest.

After wiping all LFS related, first make 100% sure your host is up to specs before you start again.

BTW: The /tools link (seen from your host that is) should be there, it is/was created in chapter 4.2 together with $LFS/tools.
 
Old 12-15-2009, 09:51 AM   #26
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by druuna View Post
Do _NOT_ follow this advise!
My bad.

Quote:
Originally Posted by druuna View Post
@David1357: This is part of an LFS build and not "just" a gcc build/install on a normal system.
Got it.

From the number of posts here about LFS, it seems to be too hard for a complete novice. Trying to help a complete novice, without having run through all the steps, seems to be difficult at best, and dangerous at worst.
 
Old 12-15-2009, 10:01 AM   #27
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@David1357: No worries, no harm was done

LFS is indeed not easy when you have little experience (in general and LFS specific).
 
Old 12-22-2009, 03:30 AM   #28
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally Posted by druuna View Post
@David1357: No worries, no harm was done

LFS is indeed not easy when you have little experience (in general and LFS specific).
Ok I got my hands on a comp that will boot the live cd but the live system does not come with a program to untar compressed files. since it loads into memory can I install a archive program."i.e. gzip or something."
 
Old 12-22-2009, 04:43 AM   #29
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The LFS live cd has everything it needs on it. No need to install any additional tools.

BTW: It does not load completely into memory, you can access the cd and everything on it (it should be automatically mounted at boot time).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
not able to figure out what does this mean manya Programming 5 11-29-2009 11:45 PM
Cant figure out what i need for this Hart02 Linux - General 1 11-25-2009 01:13 PM
trying to figure this out? dale504 Linux - Newbie 2 02-27-2008 11:04 AM
Can anyone figure this out? Nicksan Linux - General 1 08-17-2003 07:15 PM
cant figure this out. Must be m$ wlfdgcrkz Linux - Networking 1 07-16-2003 04:34 PM

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

All times are GMT -5. The time now is 02:15 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