LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-29-2011, 02:07 AM   #1
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Rep: Reputation: 0
LFS-6.7-small mistakes


hi all
i am using lfs livecd(following lfs6.7 book)
q1)i have done 5.7. Glibc-2.12.1,i didnot get any error
now i am @ 5.8. Adjusting the Toolchain(pageno-42) ,for this i did following

lfs:/mnt/lfs/sources/glibc-build$SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
lfs:/mnt/lfs/sources/glibc-build$$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib\(64\)\?/ld@/tools&@g' \
-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
lfs:/mnt/lfs/sources/glibc-build$echo "New specs file is: $SPECS"
lfs:/mnt/lfs/sources/glibc-build$unset SPECS
after each above commands i didnt see any result,everytime its returning command prompt line(which is lfs:/mnt/lfs/sources/glibc-build$)
is this right?
then i gone ahead
-----------------------------------------------------------------------
q2)5.10. GCC-4.5.1 - Pass 2
i skip this following step(///)(page no-46),because

a)i dint understand where have to run this commands

b)in gcc/config dir the following files are not existed
linux.h, linux64.h or sysv4.h.

/////////////////////////////////////////////////////
for file in \
$(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
cp -uv $file{,.orig}
sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
-e 's@/usr@/tools@g' $file.orig > $file
echo '
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0
#define STANDARD_STARTFILE_PREFIX_1 ""
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
touch $file.orig
done
/////////////////////////////////////////////////////////

but page no-49 caution:
lfs:/mnt/lfs/sources/gcc-build$echo 'main(){}' > dummy.c
lfs:/mnt/lfs/sources/gcc-build$cc dummy.c
lfs:/mnt/lfs/sources/gcc-build$readelf -l a.out | grep ': /tools'
output of the above last command is giving follwing result
[Requesting program interpreter: /tools/lib/ld-linux.so.2]

what i done mistake


-------------------------------------------------------------------
q3) now 5.11. Tcl-8.5.8

when i typed make install i got followng error
lfs:/mnt/lfs/sources/tcl8.5.8/unix$make install
make:***[install-msgs]error 127
is this problem becuase of skipiing(i mentioned in q2) ///// step
a will appreciate reply
any one can help
please ans me in steps,bcz i am new to this lfs
thanks for all
 
Old 03-30-2011, 01:21 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
after each above commands i didnt see any result,everytime its returning command prompt line(which is lfs:/mnt/lfs/sources/glibc-build$)
is this right?
Yes. No response is Good.

2. This stuff presumes you start in the top source direstory. It presumes you have something like
tar -jxvf gcc-5.10.tar.bz2
cd gcc-5.10

They are hacking some files, and the command is structured that way to work on 32 or 64 bit machines. The safest thing is to copy & paste the lot into a terminal. It usually works.
 
  


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
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS on Damn Small Linux saeen Linux - Newbie 4 08-19-2010 11:08 PM
LFS minimal install (small book plus zillion questions) noob_d Linux From Scratch 7 06-26-2008 09:59 AM
lvm mistakes/manual partioniong mistakes- not using fdisk! Fred Caro Linux - Newbie 3 03-30-2008 02:05 AM
LFS with small hard drive drigz Linux From Scratch 13 06-05-2004 01:31 PM

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

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