LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2012, 07:06 AM   #31
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

I take it the error is the same as in your 1st post
 
Old 07-20-2012, 07:17 AM   #32
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
I take it the error is the same as in your 1st post
Yes, even with all the changes I've done and trying to follow the book step by step, nothing
changed, I still get the same error.
 
Old 07-20-2012, 07:32 AM   #33
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

Ok I know druuna dosn't agree but just try building this version http://www.linuxfromscratch.org/lfs/view/development/ See if the newer versions work
 
Old 07-20-2012, 07:54 AM   #34
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

Ok I know druuna dosn't agree but just try building this version http://www.linuxfromscratch.org/lfs/view/development/ See if the newer versions work
Ok I'll try but It'll completely break my current learning. The other way should be that I find a precompiled gcc 4.6.2 for x64 arch, skipping the gcc compilation phase on the book. Could someone give me a link for the pre-compiled package? Thank you
 
Old 07-20-2012, 08:56 AM   #35
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
You could try a live cd to build with
 
Old 07-20-2012, 11:39 AM   #36
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Another thing to consider is to start over with the 7.1 book. Know why? Because you've made various changes to the book's steps along the way such as mostly recently discovered, the symlink in your host to $LFS/tools. Perhaps there are others long forgotten. You could start over with the resolve to trust the book and follow every step as written. FWIW, I can whole-heartedly vouch for the 7.1 book. In fact, IMO, it's actually more risky to deviate from the book, not less so.
 
Old 07-20-2012, 05:28 PM   #37
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by stoat View Post
Another thing to consider is to start over with the 7.1 book. Know why? Because you've made various changes to the book's steps along the way such as mostly recently discovered, the symlink in your host to $LFS/tools. Perhaps there are others long forgotten. You could start over with the resolve to trust the book and follow every step as written. FWIW, I can whole-heartedly vouch for the 7.1 book. In fact, IMO, it's actually more risky to deviate from the book, not less so.
The only things I did not follow in the book was the creation of the symlink (and of course my $LFS var which was LFS instead of lfs) and the versions check. Now I created the symlink, renamed my $LFS var and saw that the only version of my package which not correspond to those on the book is my gcc version (4.6.3 instead of 4.6.2) so I don't think it's coming from me as I followed EXACTLY the book's steps now... Anyway, I tried to compile gcc 4.7.1 and now I have:
Code:
supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1
make[2]: Leaving directory `/home/e-kami/workspace/OS_work/test_files/gcc-test-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/e-kami/workspace/OS_work/test_files/gcc-test-build'
make: *** [all] Error 2
compiling gcc is a real pain... I never had such problems with compilation with any other programs in the past...
 
Old 07-21-2012, 03:28 AM   #38
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 are you building a 64 bit if so did you create the symlink at the end of binutils
 
1 members found this post helpful.
Old 07-21-2012, 04:42 AM   #39
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi are you building a 64 bit if so did you create the symlink at the end of binutils
I restarted to build from 0, including the creation of the symlink for binutils and now the compilation worked!! Thanks a lot!
Does it mean that the gcc compilation used the binutils I compiled instead of the one installed on my host?
Is it because of the --prefix argument?
Thanks a lot again!

Last edited by E-Kami; 07-21-2012 at 04:44 AM.
 
Old 07-21-2012, 04:54 AM   #40
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

I dont know what was wrong but at least you got it working. What lfs are you following?
 
Old 07-21-2012, 05:39 AM   #41
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

I dont know what was wrong but at least you got it working. What lfs are you following?
LFS 7.1. Now glibc seems to not compile, printing a message like "waiting for unfinished jobs" as an error.
I'll try to recompile it without the -j4 flag.
 
Old 07-21-2012, 05:42 AM   #42
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
Maybe start a new thread for that
 
Old 07-21-2012, 05:47 AM   #43
E-Kami
Member
 
Registered: Jul 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Am I cursed or what?...
Now when I try to compile glibc I get:
Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:144:9: warning: variable 'prioff' set but not used [-Wunused-but-set-variable]
../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog': function body not available
../misc/syslog.c:155:9: sorry, unimplemented: called from here
make[2]: *** [/mnt/lfs/source/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/source/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/source/glibc-2.14.1'
make: *** [all] Error 2


---------- Post added 07-21-12 at 12:48 AM ----------

Quote:
Originally Posted by spiky0011 View Post
Maybe start a new thread for that
Ok, I'll do this.
 
  


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
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Newbie 3 04-19-2008 05:54 AM
error using lfs while compiling 6.12 gcc-4.1.2 aditya_gpch Programming 1 04-19-2008 04:38 AM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM

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

All times are GMT -5. The time now is 12:38 AM.

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