LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2009, 08:08 AM   #1
aahiqmir
Member
 
Registered: Apr 2008
Posts: 54

Rep: Reputation: 15
Question make problem in section 5.7.1 of lfs6.4


hi linux gurus,

i am trying to build LFS

i use following:
book-> LFS6.4
host-> REDHAT ENTERPRISE LINUX 5.
INTEL PENTIUM M
i face the following problems:
if i execute:
echo "CFLAGS += -march=i486 -mtune=native" > configparms


i get following ERROR when execute MAKE:

mnt/lfs/sources/glibc-build/tcb-offsets.h.d /mnt/lfs/sources/glibc-build/tcb-offsets.h'
:1: error: bad value (native) for -mtune= switch
make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20080929/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20080929'
make: *** [all] Error 2

BUT if ignore

echo "CFLAGS += -march=i486 -mtune=native" > configparms

i get following error after few minutes of compiliation after executing MAKE :


/mnt/lfs/sources/glibc-2.8-20080929/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/lfs/sources/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.8-20080929'
make: *** [all] Error 2


i don't have much knowledge about linux
please help it is urgent
 
Old 03-27-2009, 08:27 AM   #2
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
Hi

I remember having the very same problem but can't remember what the actual problem was. Just to be sure, check whether you are really using new gcc and not one from your Red Hat.
 
Old 03-28-2009, 07:45 AM   #3
aahiqmir
Member
 
Registered: Apr 2008
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shpenat View Post
Hi

I remember having the very same problem but can't remember what the actual problem was. Just to be sure, check whether you are really using new gcc and not one from your Red Hat.
hi, i have all the requirements as per the book lfs6.4.

and one more question i have intel pentium M system is it i386 or i686?
 
  


Reply

Tags
error, make, section


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
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
LFS6.1 - 6.14 GCC installation, make check hangs Pugho Linux From Scratch 3 12-01-2005 05:28 PM
LFS6.1 Section3.13 - Binutils : Error on "make tooldir=/usr" StevePhM Linux From Scratch 4 07-21-2005 12:22 AM
LFS6.0 Glibc compile problem Chapter5.8 Pass1 Paulsuk Linux From Scratch 1 04-19-2005 03:50 PM
Emacs - How do I make \section{}s big? f0rmula Linux - Software 2 01-21-2005 08:59 AM


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