LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-22-2012, 02:32 AM   #46
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled

So, I did what you said, checked my host system req's. First check 2 unvalid. Installed them and checked again, everything is fine.
Entered: this command again ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`

same errors
looked at the code and edited it with removing - before gcc, because -gcc was not found, so I got:

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

changed: $LFS_TGT-gcc to $LFS_TGT gcc
and no errors but did the command executed the right way now?
 
Old 03-22-2012, 02:47 AM   #47
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 Sjors-rw View Post
looked at the code and edited it with removing - before gcc, because -gcc was not found, so I got:

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

changed: $LFS_TGT-gcc to $LFS_TGT gcc
and no errors but did the command executed the right way now?
No it did not execute correctly.

You need to check if LFS_TGT is set (it should be, it is part of .bashrc for user lfs, this part LFS_TGT=$(uname -m)-lfs-linux-gnu).

LFS_TGT should contain something like this (bold part could be different on your box, use uname -m to find out): i686-lfs-linux-gnu

When using this command:
Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`
the bold part expands to: i686-lfs-linux-gnu-gcc (again: i686 may be different). If only -gcc is shown then LFS_TGT isn't set.

Hope this helps
 
Old 03-22-2012, 02:53 AM   #48
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks, it works!

Now getting another problem, which is a problem with ubuntu itself, i guess

Googling on the errors results in that quote.

error:

-MT /mnt/react/sources/glibc-build/misc/syslog.o
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/mnt/react/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/react/sources/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/react/sources/glibc-2.14.1'
make: *** [all] Error 2

any suggestions?
 
Old 03-22-2012, 03:01 AM   #49
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
Have a look here (at the bottom): Re: syslog.c error

It seems your host still doesn't meet the system requirements.
 
Old 03-22-2012, 03:13 AM   #50
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Installed everything (via software center) now getting this error:
after (MAKE)

In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/mnt/react/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/react/sources/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/react/sources/glibc-2.14.1'
make: *** [all] Error 2
 
Old 03-22-2012, 03:20 AM   #51
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Reading further, seeing that I should add:

-U_FORTIFY_SOURCE

where to do that?


EDIT:

found the problem, I eventually pushed the close button. Lost all proces with tar.gz's etc.
DAMN

can I get them back

EDIT 2:

Get it back already,

Still need to know how to add ufortify source

Last edited by Sjors-rw; 03-22-2012 at 03:35 AM. Reason: edit
 
Old 03-22-2012, 04:07 AM   #52
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 Sjors-rw View Post
Reading further, seeing that I should add:

-U_FORTIFY_SOURCE

where to do that?

Still need to know how to add ufortify source
You don't add or delete anything. All the commands in the book should be used as they are, no extra (as in: not mentioned in the specific chapter) packages/installs are needed to make a specific command work.

You might want to consider starting from scratch again. You have had problems with just about all the chapters you tried and although you say you fixed all the problems I do wonder if that is true.

Take the LFS_TGT issue for example: You encountered this problem in chapter 5.5, but the first time LFS_TGT is used is in chapter 5.4. Did you redo 5.4?
 
Old 03-22-2012, 12:45 PM   #53
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Starting all the way over,

but struggling again against errors, -gcc not found, again!

Binutils went not smooth at all, after 3 times I think it ran good.
THINK, not sure for sure.

I think about quitting this project, because this way I got nowhere.
 
Old 03-22-2012, 02:11 PM   #54
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

You have untarred gcc then cd into gcc dir which was created then ran the commands for "mpfr.gmp,mpc and applied the patch. Then created directory gcc-build and then cd gcc-build.
Before running ../gcc-4.6.2/configure \ command?

Also it might be a good idea to post the output of version-check

Last edited by spiky0011; 03-22-2012 at 02:14 PM.
 
Old 03-22-2012, 02:13 PM   #55
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Yep, exactly.
 
Old 03-24-2012, 06:26 AM   #56
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hey, I'm back, someone told me, a good OS to use for LFS = slackware. So I tried it out, but it's a headache installing even Gparted, you need 7 other tarballs. But the sys req for LFS seems to be OK.

So is it a good choice? And whats the best way to format to EXT3 en Swap? I've used Cfdisk for the partitions. But cant label them, and cant format to

Ideas?
 
Old 03-24-2012, 08:13 AM   #57
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Have a look here Or you could use Gparted from ubuntu cd to create the partition.
I just put the cd in run as live cd then use Gparted and make all the partitions I need.
 
Old 03-24-2012, 02:31 PM   #58
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
So starting happily again in Slackware, getting the same error in binutils: Nothing to be done for all-target error.

Any ideas? Followed the book 100%
 
Old 03-24-2012, 02:45 PM   #59
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you post the error and the commands you run.

You did do untar binutils cd into binutils dir then mkdir ../binutils-build cd ../binutils-build then ran configure commands
 
Old 03-24-2012, 02:47 PM   #60
Sjors-rw
Member
 
Registered: Mar 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
commands are the ones from the book, and I did do that.

Error after the "Make" command
The errors:

make[4]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
 
  


Reply

Tags
lfs, packages, patches


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
[SOLVED] How to apply patches in lfs 7.0? Atharv Patil Linux From Scratch 5 01-23-2012 11:17 AM
*** YOU'RE USING autoconf (GNU Autoconf) 2.60. KDE requires autoconf 2.52, 2.53 or 2. arubin Slackware 6 09-24-2008 03:31 AM
patches in LFS saritha Linux From Scratch 1 02-13-2008 03:39 AM
LFS-5.0:Chapter 6:autoconf-2.57 Dumper.pm missing jazernorth Linux From Scratch 12 11-12-2005 10:11 AM
URGENT glibc 2.3.3 - lfs -5.1 --> bug in autoconf geiser Linux From Scratch 1 08-18-2004 03:48 PM

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

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