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 06-13-2010, 10:22 AM   #1
Krol_:)
LQ Newbie
 
Registered: Jun 2010
Location: Boston, MA
Distribution: Ubuntu 9.04 (Jaunty Jackalope)
Posts: 4

Rep: Reputation: 0
Error installing glibc in Ch.6


Hi,

I am using LFS book 6.6 and the latest supported LiveCD version 6.3.
I was able to create a temporary os as described in Ch5 of the book without problems.

I am, however, having trouble installing the glibc package in chapter 6 of the book.
configuring and making don't seem to have errors.
But when I type "make install" i get this:

:1: error: bad value (native) for -mtune= switch

I have double-checked and it seems this has to do with one of the previous steps:
Code:
case `uname -m` in
  i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;;
esac
I have verified that this step was done correctly.
What I'm wondering, being a linux newbie is: what does 'native' refer to and where did I mess up to make it a bad value for -mtune?

Please tell me what files/logs are needed in order to solve this problem.

Thanks in advance
Krol.
 
Old 06-13-2010, 10:46 AM   #2
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,

What is the output of echo $PATH, ls -l /tools/bin and gcc --version

I suspect something went wrong when you entered the chrooted environment (This part). Do check if you made a typo somewhere.

Hope this helps.

Last edited by druuna; 06-13-2010 at 10:59 AM. Reason: Added extra command.
 
Old 06-18-2010, 05:55 AM   #3
vigya
LQ Newbie
 
Registered: Jun 2010
Location: Dehradun / Pantnagar
Distribution: Debian (Ubuntu)
Posts: 1

Rep: Reputation: 0
The -O3 option you gave is for optimization. I think it needs a -g option before it.

try only

Quote:
case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native " > configparms ;;
esac
if this doesn't work, try making an env variable CFLAGS and giving it the value

Quote:
-march=i486 -mtune=native

Also the CFLAGS in the config file (you can cat or vi the file to make sure) should be set to
Quote:
-g -O2
or
Quote:
-g -O3
, usually -O2, but this would depend on your system.

The config file reads these parameters for march and mtune cflags from the configparms file, otherwise from an env variable.
 
Old 06-18-2010, 06:01 AM   #4
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
@vigya: As stated in the LFS book (chapter 6.9.):
Quote:
As in Chapter 5, add the needed compiler flags to CFLAGS for x86 machines. Here, the optimization of the library is also set for the gcc compiler to enhance compilation speed (-pipe) and package performance (-O3).
The -O3 (and -pipe) are correct and work.

Although the OP did not yet answer my initial question (see post #2), I do believe s/he entered the chrooted environment the wrong way.

Hope this helps.
 
Old 06-19-2010, 03:39 PM   #5
Krol_:)
LQ Newbie
 
Registered: Jun 2010
Location: Boston, MA
Distribution: Ubuntu 9.04 (Jaunty Jackalope)
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your replies.
For reasons unrelated to this error I will have to switch machines for building LFS. The new machine will be a netbook, so I will be working on making a bootable USB.

Tell me if you know of any known issues with that configuration. I will definitely keep you posted as to my progress/errors that I will encounter on the way. Thank you very much for the great support so far.
 
  


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
Error when installing glibc ReyJavikVI Linux From Scratch 8 06-20-2009 01:11 PM
error installing glibc gaur.ankit2007@gmail.com Linux - Newbie 3 01-29-2009 12:18 AM
installing Glibc-2.4 Error a.dehqan Linux - Software 6 06-17-2008 10:55 AM
Error during installing glibc-2.2.5 giri616 Linux From Scratch 3 11-09-2006 11:34 PM
error while installing glibc 2.3.5 chirag_jog Linux - Software 1 10-16-2005 06:31 AM

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

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