LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   make problem in section 5.7.1 of lfs6.4 (http://www.linuxquestions.org/questions/linux-from-scratch-13/make-problem-in-section-5-7-1-of-lfs6-4-a-714577/)

aahiqmir 03-26-2009 08:08 AM

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

shpenat 03-27-2009 08:27 AM

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.

aahiqmir 03-28-2009 07:45 AM

Quote:

Originally Posted by shpenat (Post 3489542)
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?


All times are GMT -5. The time now is 03:40 PM.