LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2010, 11:02 AM   #16
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757

Quote:
Originally Posted by freemanpolys View Post
hi
I've build gcc packet! but i don't have the library libgcc.a in my gcc-build directory! is everything ok?

the result is that i can't create the soft link like this :

ln -vs libgcc.a `gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`

here is the last output of the make install command:

make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
Hi,

what was the exact output when you tried to create the link?
 
Old 05-10-2010, 07:37 AM   #17
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
hi,
i don't find Glibc (2.8-20080929) at ftp://sources.redhat.com/pub/glibc/s...080929.tar.bz2
can i use any version of it?
tks
 
Old 05-10-2010, 08:25 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,

You can download it here: LFS 6.4 packages

Hope this helps.
 
Old 05-11-2010, 05:15 AM   #19
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks druuna
 
Old 05-11-2010, 05:31 AM   #20
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
I have these errors with the make command on glibc

:1: error: bad value (native) for -mtune= switch
make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20080929/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20080929'
make: *** [all] Error 2

what does it mean ?
 
Old 05-15-2010, 05:03 AM   #21
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,

I'm assuming this is glibc from chapter 5 (5.7.1).

It looks like you have a GCC version on your host that is not up to specs (probably too new).

The host system requirements say the following about gcc:
Quote:
Gcc-3.0.1 (Versions greater than 4.3.2 are not recommended as they have
not been tested)
Not much to go on, but hopefully this helps.
 
Old 05-23-2010, 06:53 AM   #22
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
hi drunna
Tell me what distribution an version would you advise me to use for my LFS?i'm using now ubuntu 10.4 and i've a lot of problem with the build of packets!thanks
 
Old 05-23-2010, 08:38 AM   #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
Hi,

I always use the LFS liveCD. It was made to be a host for installing LFS.

Another good thing about using the LFS liveCD: You don't have to make any changes to your current distro, changes could have negative side effects.

Hope this helps.
 
Old 05-24-2010, 05:37 AM   #24
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks! i'll download and use it
 
Old 05-24-2010, 05:40 AM   #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
You're welcome
 
Old 05-26-2010, 07:02 AM   #26
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,
Tell me!the newest version of the lfs-livecd i've found is the 6.3 one but the newest version of lfs-book is the 6.6 one!
my question is if i can use the 6.3 live-cd to build a 6.6 lfs distro? thanks
 
Old 05-26-2010, 07:05 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
Hi,

Yes you can use the 6.3 liveCD. But do not use the packages that are on the cd!! These packages are 6.3 specific, so you need to download the packages and patches from the 6.6 version.

Hope this helps.
 
Old 05-26-2010, 11:39 AM   #28
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
ok thanks! i suppose that i must just follow the LFS 6.6 book , create lfs user and build the distro on my disk!right?

Last edited by freemanpolys; 05-26-2010 at 11:40 AM.
 
Old 05-26-2010, 12:14 PM   #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,

Except for these 2 points (both present on the cd, but version 6.3):

1) Use the 6.6 packages/patches
2) Use the 6.6 documentation

Everything is indeed the same.

Hope this helps.
 
Old 05-27-2010, 03:02 PM   #30
freemanpolys
LQ Newbie
 
Registered: May 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Hi
i've decide to build the 6.3 LFS system because of the 6.3 LFS-livecd i've download!
now i've some problems at 6.12.chapter (GCC-4.1.2). i'm using LFS-6.3 book
here is the result of the sanity checks :

1-)command:grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
**result:
/usr/lib/crt1.o succeeded
/usr/lib/crti.o succeeded
/usr/lib/crtn.o succeeded

**instead of
===>/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o succeeded <===
====>/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crti.o succeeded<===
====>/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crtn.o succeeded<====



2-)grep -B3 '^ /usr/include' dummy.log
***result:
ignoring nonexistent directory "/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include

**instead of
#include <...> search starts here:
====> /usr/local/include <=====
=====> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include <===
/usr/include

3-)grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
**result:
SEARCH_DIR("/tools/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/lib/")
SEARCH_DIR("/lib/");

**instead of
====> SEARCH_DIR("/usr/i686-pc-linux-gnu/lib") <=====
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");


4-)grep /lib/libc.so.6 dummy.log
result
attempt to open /lib/libc.so.6 succeeded

5-)grep found dummy.log
result:
found ld-linux.so.2 at /lib/ld-linux.so.2
 
  


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
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7) compilation error adhesh_19 Red Hat 0 01-05-2010 06:34 AM
Compilation problem when downgrading from 64-bit gcc to 32-bit gcc huyhoang3673 Linux - Software 7 08-26-2009 12:31 PM
gcc compilation problem jestinjoy Ubuntu 2 08-23-2008 01:12 PM
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 06:52 AM
Mplayer compilation problem on linux 2.6.3 gcc 3.3.3 glibc 2.3.2 realloc Linux - Software 4 10-22-2004 04:44 PM

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

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