LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2005, 12:24 PM   #1
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Rep: Reputation: 15
Linux-from-scratch problems


hi all,
i am sure this thread is going to continue for quite a long time...
i am not much into programming as into linux administration...but i am trying to complile linux-from-scratch v6.1 packages just to hav a some fun with totally customised linux on my machine.
according to the document instructions i did 'make' on gcc folder during gcc pass2. but unexpectedly the following error occured...shown below are the last few lines

Quote:
checking linker position independent executable support... yes
checking linker --as-needed support... yes
configure: error:
The following requested languages were not found: c++
The following languages were available: c treelang
make: *** [configure-gcc] Error 1

how do i fix this....i worked exactly according to the instructions

link to the document :
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass2.html

except for i (obviously) deleted the gcc-build folder that was made during the first pass to create a new one.
 
Old 08-10-2005, 12:26 PM   #2
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
HERE IS THE LINK AGAIN
 
Old 08-10-2005, 01:34 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,714
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
There is a specific forum for Linux-from-Scratch here on this board, under Distros. You should pursue your questions there.
 
Old 08-10-2005, 02:46 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
He has, hasn't he? This is the LFS forum.
 
Old 08-10-2005, 09:28 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
it may be( I don't know for sure) that since you deleted the gcc-build directory, that may have done it. Again just a thought, I'm working on getting a 6.0 build to work...not having too much sucess
 
Old 08-11-2005, 01:11 AM   #6
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
I Agree. You need to follow exactly as the book says.
Don't delete until they say too.

They will mention any files you can delete to save space.
 
Old 08-11-2005, 11:01 AM   #7
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
well..during first pass of gcc i had built a gcc-build directory. and after the step(doing 'make install') it hadn't said to delete the folder.
In gcc-pass2 stage it again says
mkdir gcc-build

now where am i supposed to create this folder if i dont delete the previous one?
 
Old 08-11-2005, 11:55 AM   #8
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
My bad, the LFS-book really says
Quote:
After installing each package, delete its source and build directories, unless specifically instructed otherwise.
So you actually were supposed to delete the GCC Pass 1 source, and Build directories (as well as any other sources it didn't warn about deleting). That should salve your problem.

Sorry about the inconvenience.
 
Old 08-11-2005, 08:34 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
Quote:
except for i (obviously) deleted the gcc-build folder that was made during the first pass to create a new one.
did you remove the gcc-3.4.1 directory? That may be the problem, it maybe building the 'pass 2' from the same source used for the 'pass 1'. Just a thought, again, no guarantees.
 
Old 08-13-2005, 12:21 PM   #10
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
ok...i have done the compilation once again just to ensure that i had not missed a point...but again failed at the same error.
the first time i had deleted the gcc-build directory and created a new one. but this time, i also deleted the gcc-3.4.3 directory and applied the patches freshly. but the same error persists.
the first line of the page says...
---------------------
This package is known to have issues when its default optimization flags (including the -march and -mcpu options) are changed. If any environment variables that override default optimizations have been defined, such as CFLAGS and CXXFLAGS, unset them when building GCC.
---------------------
can this be the problem? anybody knows i can check those flags and set them appropiately?
or what else can be the problem? the error says - 'The following requested languages were not found: c++'
 
Old 08-13-2005, 12:40 PM   #11
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
http://bugs.linuxfromscratch.org/show_bug.cgi?id=1575
If you have separate gcc tarballs you'll have to unpack the gcc-core, gcc-g++ and gcc-testsuite tarballs. Otherwise, the full tarball should have support for all languages in it.
Power by Google

Last edited by freegianghu; 08-13-2005 at 12:42 PM.
 
Old 08-13-2005, 01:49 PM   #12
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
thanks man ! !
the problems solved and i hav sucessfully compiled gcc for phase2. but thats not it...i'll be back to bug you more
 
Old 08-14-2005, 10:45 AM   #13
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
can i compile glibc without locales ?
 
Old 08-14-2005, 11:41 AM   #14
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
I found this link
 
Old 08-15-2005, 06:09 AM   #15
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
hotplug..? is it something similar to kudzu that comes with redhat/fedora packages? if yes, do i need to install/compile kudzu later in presence of hotplug if i want the functionality of kudzu?
 
  


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
Linux From Scratch Help! TechnoPhile Linux From Scratch 7 05-20-2005 12:25 AM
Linux From Scratch Problems acidbreez Linux - Newbie 1 07-02-2004 10:55 PM
Linux From Scratch fuelinjection Linux - General 8 12-04-2003 01:48 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM
Need Help with Linux From Scratch!! jbhoo Linux From Scratch 8 04-23-2002 06:43 PM

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

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