LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-07-2005, 08:31 PM   #1
yanger
Member
 
Registered: Jun 2004
Location: Wisconsin
Distribution: Ubuntu, Gentoo, FreeBSD, Solaris
Posts: 55

Rep: Reputation: 16
Question 5.7. Adjusting the Toolchain - sanity issue...


at the end of the page, it cautions that it's time to test that toolchain is properly working...

Quote:
Caution

At this point, it is imperative to stop and ensure that the basic functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands:

echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'

If everything is working correctly, there should be no errors, and the output of the last command will be of the form:

[Requesting program interpreter:
/tools/lib/ld-linux.so.2]

Note that /tools/lib appears as the prefix of the dynamic linker.
k.. i created the dummy.c file, and did cc dummy.c (also tried gcc dummy.c) .. and i get this output:

Code:
gcc: unrecognized option '-mtune=pentiumpro'
and it stalls there forever (left it for about 20 minutes) .... a CTRL-C breaks it, and nothing seems to of happened.

... never got to the readelf part at all...

I am doing this on a Notebook - Compaq Armada 7800, P2 266mhz, 256mb RAM PC66, 5GB HDD, using the LFS livecd..

everything seemed fine until now - for now i'm halting this project until i can figure this out

thanks if anyone can help.
 
Old 11-08-2005, 04:47 AM   #2
wraycarr
LQ Newbie
 
Registered: Oct 2003
Location: Texas City, TX
Distribution: Gentoo (~amd64)
Posts: 23

Rep: Reputation: 15
If I understand you correctly, you've updated your toolchain to the most current stable versions of the build tools. I think that means that you are using gcc-3.3.6 or higher. In that case, I don't believe you can use "-mtune" any more. The correct option for gcc-3.x compilers is "-march=pentiumpro" to produce code that is optimized for and will run on nothing less than a pentium pro or and AMD K6, or "-with-cpu=pentiumpro" for code that contains optimizations for the pentium pro and K6, but will still run on anything down to an 80386, but no lower. If you enter the command "gcc --version" what answer do you get? If it's 3.x.x, I think you will have to update your compiler options.

Regards,
Raymond
 
Old 11-12-2008, 04:52 AM   #3
Stephann
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Since I had the same problem, I found the solution here:
 
  


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
Possible Error in Book -- Adjusting Toolchain suma17 Linux From Scratch 9 10-13-2005 04:06 AM
Held on 5.9. Adjusting the Toolchain satimis Linux From Scratch 2 06-30-2005 06:36 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 02:58 PM
5.9. Adjusting the Toolchain - Error Spudds Linux From Scratch 6 02-23-2005 09:22 AM
6.12. Re-adjusting the Toolchain jobesd Linux From Scratch 2 01-16-2005 01:50 PM


All times are GMT -5. The time now is 05:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration