LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-15-2009, 12:00 PM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
LFS 6.5 error in building glibc-2.10.1


Well, I can't compile glibc with LFS live cd 6.5.

The first attempt I got this after >6hrs compiling (on via Epia Nehemiah 1GHZ)

Code:
stat.o.dt -MT /mnt/lfs/sources/glibc-build/io/stat.o
stat.c:50: error: redefinition of '__stat'
../include/sys/stat.h:22: note: previous definition of '__stat' was here
make[2]: *** [/mnt/lfs/sources/glibc-build/io/stat.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1/io'
make[1]: *** [io/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1'
make: *** [all] Error 2
so I was looking for something wrong with sources.cache or mtune or stune (no idea what it is)

Then I saw

Code:
case `uname -m` in
  i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
esac
En replaced" i?386" with "i486" Maybe that was the mistake? But now I'm thinking the questionmark is more a wildcard than a typo.

So I recompiled with i486 and got this error:

Code:
sed -e 's/#.*$//' -e '/^[       ]*$/d' ../abi-tags | \
        while read conf tagos tagver; do \
          test `expr 'i686-pc-linux-gnu' \
                     : "$conf"` != 0 || continue; \
          ( echo "$tagos" | \
            sed -e 's/[^0-9xXa-fA-F     ]//' \
                -e 's/^/#define __ABI_TAG_OS /'; \
            echo "#ifndef __ABI_TAG_VERSION"; \
            echo "$tagver" | \
            sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
              -e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
            echo "#endif" ) > /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new; \
        done
if test -r /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new; then mv -f /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new /mnt/lfs/sources/glibc-build/csu/abi-tag.h; \
        else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
make[2]: Map '/mnt/lfs/sources/glibc-2.10.1/csu' wordt verlaten
make[1]: *** [csu/subdir_lib] Fout 2
make[1]: Map '/mnt/lfs/sources/glibc-2.10.1' wordt verlaten
make: *** [all] Fout 2
root [ /mnt/lfs/sources/glibc-build ]#
That wasn't the solution so I did a "make distclean" and recompiled with i386 and i686 just to try.

If I follow the script now (with i?86) every time it's giving the same error?
 
Old 11-25-2009, 01:05 AM   #2
miccihckenburger
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
I had this same problem. Just run the following when in the glibc-build directory before running configure:

Code:
echo "libc_cv_gnu89_inline=yes" >> config.cache
Hope this helps!

Micah Henning
 
Old 01-11-2011, 09:02 AM   #3
SoupFlies
LQ Newbie
 
Registered: Jan 2011
Distribution: Maverick Ubuntu
Posts: 5

Rep: Reputation: 0
Cool I know I am reviving the first caveman with this 1st post but....

I was running into this same error on my 1st LFS build, V. 6.7, Hosted from Ubuntu 10.10, After 2+ hours searching the internet, and scouring all pages I could, and making up dances to hopefully fix it...

I finally did, I had to reboot, clean start, and pick up from the beginning of Chapter 6, I logged into root and linked LFS and all that old stuff, then just copy and pasted everything, even redid the installs, and it worked, 1st try.

Glad to know I got it working... I think that the thing I had going wrong was that after runnin the CHROOT, I read it wrong and restarted my entire terminal? I am unsure but that seems right to me.

I could find no definitive answers on this issue, and figured if someone else encounters this, I will save them some trouble hopefully! Good luck to all =]
 
  


Reply



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
lfs 6.3 glibc 2.5.1 compile error umpalumpa1985 Linux From Scratch 7 02-21-2010 02:50 AM
building lfs 6.1.1 ,compile glibc error godsad Linux From Scratch 3 03-19-2009 09:54 AM
LFS 6.3- 6.9. Glibc-2.5.1 compilation error Vxplus Linux From Scratch 14 11-22-2008 04:46 PM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM

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

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