LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 10-10-2007, 06:04 AM   #1
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Rep: Reputation: 15
Question 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
 
Old 10-11-2007, 01:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
 
Old 10-11-2007, 08:37 AM   #3
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Question 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
 
Old 10-13-2007, 07:57 AM   #4
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Is this forum dead ?????
 
Old 10-15-2007, 03:47 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,676
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
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 View Post
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.
 
Old 04-30-2008, 11:16 PM   #6
rsood
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
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.
Old 05-01-2008, 01:51 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
good advice, but please don't drag up dead threads, it gets very confusing if people start replying again. thanks.
 
Old 06-02-2009, 12:48 PM   #8
getsmit
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Thanks a lot rsood it saved my day
 
Old 06-25-2009, 10:15 PM   #9
alexandrov
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by rsood View Post
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.
 
Old 02-26-2010, 03:24 PM   #10
fabyouless
LQ Newbie
 
Registered: May 2008
Location: Vallejo, CA, USA
Distribution: ubuntu oneiric
Posts: 4

Rep: Reputation: 1
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?
 
Old 03-01-2010, 05:28 AM   #11
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 03-01-2010, 12:14 PM   #12
Matt2015
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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 :-(
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CLFS] Can't run "make menuconfig" dhave Linux From Scratch 1 07-25-2007 01:39 PM
upgrade to kernel 2.6.16.1 : "make bzImage" print "parse error" math_physics Red Hat 2 06-29-2007 11:04 PM
glibc 2.3.5 "make check" invalid multibyte sequence sundialsvcs Linux - Software 8 09-09-2005 09:56 AM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 05:12 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


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