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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-10-2007, 06:04 AM
|
#1
|
Member
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69
Rep:
|
Urgent help on "Glibc make error with clfs"
While trying to build clfs ,glibc on my amd 64 ,,,(the host os is ubuntu 6.06, 32 bit) i get the folowing error
---- GLIBC MAKE ERRROR------
echo 'sysd-rules-done = t') > /mnt/clfs/sources/glibc-build/sysd-rulesT
mv -f /mnt/clfs/sources/glibc-build/sysd-rulesT /mnt/clfs/sources/glibc-build/sysd-rules
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 po argp crypt nss localedata timezone rt conform debug 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 > /mnt/clfs/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]: Leaving directory `/mnt/clfs/sources/glibc-2.4'
make[1]: Entering directory `/mnt/clfs/sources/glibc-2.4'
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 po argp crypt nss localedata timezone rt conform debug 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 > /mnt/clfs/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 `/mnt/clfs/sources/glibc-build/Versions.all', needed by `/mnt/clfs/sources/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/mnt/clfs/sources/glibc-2.4'
make: *** [all] Error 2
i installed gawk to bypass it ,,then again i got the folowing error ---
x86_64-unknown-linux-gnu-ranlib ./libgcov.a
make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
echo timestamp > stmp-multilib
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
Please help me on this,,,ive trying to resolve this issue since two weeks but cudnt get it working,,,
Urgent help needed,,
thanx a ton
|
|
|
10-11-2007, 01:42 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
please do not mark threads as urgent. they are not urgnt for all the members of lq.org who kindly donate their time to help others.
|
|
|
10-11-2007, 08:37 AM
|
#3
|
Member
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69
Original Poster
Rep:
|
Guys pls help me on this
Ive bin desperately trying to install clfs,,,pls help me with the errors,,,i dont have an internet conxn at home,,its 2km from home,,,,thats why this thread bears an urgent tag,,,,So pls help me with my errors
Thanks
|
|
|
10-13-2007, 07:57 AM
|
#4
|
Member
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69
Original Poster
Rep:
|
Is this forum dead ?????
|
|
|
10-15-2007, 03:47 PM
|
#5
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
OK, you installed gawk because you were trying to use mawk and it was failing. You DID read and verify the host system requirements didn't you? So that fixed your original problem and then you claim that you are getting a new error.
Quote:
Originally Posted by rushadrenaline
i installed gawk to bypass it ,,then again i got the folowing error ---
x86_64-unknown-linux-gnu-ranlib ./libgcov.a
make[2]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
echo timestamp > stmp-multilib
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
|
What error?
Also, what version of CLFS are you using? Are you trying to build a 32-bit, 64-bit, or multilib system? What step in the book are on? Glibc gets built several times.
|
|
|
04-30-2008, 11:16 PM
|
#6
|
LQ Newbie
Registered: Apr 2008
Posts: 6
Rep:
|
I had the same problem using mawk. Then I changed the regular expression \/[^/]+$ to \/[^\/]+$ and everything built. My thinking is that the / inside the brackets needed to be escaped by \, otherwise it was interpreted by mawk as ending the regular expression.
|
|
1 members found this post helpful.
|
05-01-2008, 01:51 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
good advice, but please don't drag up dead threads, it gets very confusing if people start replying again. thanks.
|
|
|
06-02-2009, 12:48 PM
|
#8
|
LQ Newbie
Registered: Jun 2009
Posts: 1
Rep:
|
Thanks a lot rsood it saved my day 
|
|
|
06-25-2009, 10:15 PM
|
#9
|
LQ Newbie
Registered: Jan 2009
Posts: 1
Rep:
|
Quote:
Originally Posted by rsood
I had the same problem using mawk. Then I changed the regular expression \/[^/]+$ to \/[^\/]+$ and everything built. My thinking is that the / inside the brackets needed to be escaped by \, otherwise it was interpreted by mawk as ending the regular expression.
|
I happened to encounter the same problem and this solution does work well. Thank you.
|
|
|
02-26-2010, 03:24 PM
|
#10
|
LQ Newbie
Registered: May 2008
Location: Vallejo, CA, USA
Distribution: ubuntu oneiric
Posts: 4
Rep:
|
dragging up vs. source correction
Found this thread via a Google search. Even though it's old, it's curious that the problem and work-around are still applicable.
I'm following LFS 6.5. Shouldn't the code in glibc-2.10.1/scripts/gen-sorted.awk be modified? Or is it that chapter 5.7.1 in the LFS 6.5 needs to be updated to accommodate this work-around? What role can i play to aid the community?
|
|
|
03-01-2010, 05:28 AM
|
#11
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
Current Glibc CVS has a configure check to see if you're using gawk or mawk and stops with an explicit error if you're using mawk. Just install Gawk
Code:
sudo apt-get install gawk
|
|
|
03-01-2010, 12:14 PM
|
#12
|
LQ Newbie
Registered: Mar 2010
Posts: 1
Rep:
|
I can confirm that just installing gawk does indeed fix the
"scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)"
issue I was having.
Building glibc-2.11.1 on ubuntu hardy heron.
Though I've got a different problem now :-(
|
|
|
All times are GMT -5. The time now is 07:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|