LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-20-2006, 06:27 AM   #1
arnuld
Member
 
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 209

Rep: Reputation: 30
LFS GCC - first pass install error


i am trying to install Glibc first pass & i typed this command as suggested by LFS chapter 5:

../glibc-2.3.6/configure --prefix=/tools
--disable-profile --enable-add-ons
--enable-kernel=2.6.0 --with-binutils=/tools/bin
--without-gd --with-headers=/tools/include
--without-selinux

i get an error something like:

"almost all of the time glibc on gnu/linux is commpiled with "linuxthreads" add-ons. If you dont do this feature then you will have compatibility problems with gnu/linux. if you are sure you dont want this add-on use --disable-sanity-checking"

after this, of course, the configuration stops :-(

well, i used /--enable-addons/, still it is saying as if i am disabling them. what is wrong? how to correct it so that i can proceed?

i have one more trouble. LFS book says build directory needs to be different from source directory but it does not explain where should i create my "build" directories. while current directory is "$LFS/sources" it says:

"mkdir -v ../glibc-build"

which of course raises an error:

"can not create directory: permission denied"

it is right as i am building as USER not as ROOT who owns "/". as "lfs USER" i own "$LFS/sources" & "$LFS/tools" but not "/".

what do ".." mean? "." represents current-directory. from error i guess 2 dots dont mean anything. right now i am making build-directories in "$LFS/sources/".

any help?
 
Old 12-20-2006, 07:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

The command given is incorrect, there should be backslashes behind the lines if they are spread over more then one line.

I.e.:

../glibc-2.3.6/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux

or

../glibc-2.3.6/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux

The first one is one (!) line.

The other question you have I've already answered several times: Take a look here (second post).

Hope this helps.

Last edited by druuna; 12-20-2006 at 07:31 AM.
 
Old 12-20-2006, 07:59 AM   #3
arnuld
Member
 
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 209

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

The command given is incorrect, there should be backslashes behind the lines if they are spread over more then one line.

I.e.:

../glibc-2.3.6/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux

or

../glibc-2.3.6/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux

The first one is one (!) line.
it WAS on one line as i did not press "enter" while writing the command on terminal.

Quote:
Originally Posted by druuna
The other question you have I've already answered several times: Take a look here (second post).
ok i will read it, i am on cyber-cafe. i will go home check it on my slow broad band :-(
 
  


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
LFS - 5.4. GCC-3.4.3 - Pass 1 - Failed cruiseoveride Linux From Scratch 7 06-07-2007 10:34 PM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 03:34 PM


All times are GMT -5. The time now is 01:22 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration