LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-04-2011, 04:28 AM   #1
gau190188
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
ERROR:During Making of glibc-build(GLIBC-2.12.1)


ERRORuring Making of glibc-build(GLIBC-2.12.1)


I have done all patching work

patch -Np1 -i ../glibc-2.12.1-gcc_fix-1.patch

patch -Np1 -i ../glibc-2.12.1-makefile_fix-1.patch
then:

THEN I HAVE COMPILE BY WRITING THIS STATEMENT

../glibc-2.12.1/configure --prefix=/tools \
--host=$LFS_TGT --build=$(../glibc-2.12.1/scripts/config.guess) \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.22.5 --with-headers=/tools/include \
libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes


WHEN I TRY TO MAKE GLIBC-BUILD IT'S SHOWING THE ERROR:[/B]

root@mini:/media/LFS/sources/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.12.1 objdir=`pwd` all
make[1]: Entering directory `/media/LFS/sources/glibc-2.12.1'
mawk -f scripts/gen-sorted.awk \
-v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
-v srcpfx='' \
nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /media/LFS/sources/glibc-build/sysd-sorted-tmp
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: *** No rule to make target `/media/LFS/sources/glibc-build/Versions.all', needed by `/media/LFS/sources/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/media/LFS/sources/glibc-2.12.1'
make: *** [all] Error 2
 
Old 01-04-2011, 05:19 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by gau190188 View Post
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: *** No rule to make target `/media/LFS/sources/glibc-build/Versions.all', needed by `/media/LFS/sources/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/media/LFS/sources/glibc-2.12.1'
make: *** [all] Error 2
Hi,

your host does not fulfill the requirements. 'mawk' cannot be used to build LFS. You need 'gawk' instead. Read this section again:
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

and check which versions are on your system. You can use the script listed on the same site to do that.
 
  


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
[SOLVED] LFS 6.7 glibc build error (ch 5.7) duineANaithnid Linux From Scratch 2 12-30-2010 08:27 PM
Error making Glibc-2.11.1 liptonik Linux From Scratch 4 04-19-2010 06:47 AM
Error in section 5.7, glibc-2.8-20080929 build FarRed Linux From Scratch 3 04-01-2009 07:39 PM
i have an error when i try to install Glibc(5.7. Glibc-2.8-20080929, Version 6.4) robineecc1 Linux From Scratch 0 12-14-2008 11:45 AM
Glibc Build error lukeiamyourfather Linux From Scratch 2 01-03-2008 06:34 PM

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

All times are GMT -5. The time now is 11:38 AM.

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