LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Urgent help on "Glibc make error with clfs" (http://www.linuxquestions.org/questions/linux-from-scratch-13/urgent-help-on-glibc-make-error-with-clfs-590753/)

rushadrenaline 10-10-2007 06:04 AM

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

acid_kewpie 10-11-2007 01:42 AM

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.

rushadrenaline 10-11-2007 08:37 AM

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

rushadrenaline 10-13-2007 07:57 AM

Is this forum dead ?????

weibullguy 10-15-2007 03:47 PM

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 (Post 2919486)
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.

rsood 04-30-2008 11:16 PM

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.

acid_kewpie 05-01-2008 01:51 AM

good advice, but please don't drag up dead threads, it gets very confusing if people start replying again. thanks.

getsmit 06-02-2009 12:48 PM

Thanks a lot rsood it saved my day :)

alexandrov 06-25-2009 10:15 PM

Quote:

Originally Posted by rsood (Post 3138393)
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.

fabyouless 02-26-2010 03:24 PM

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?

Andrew Benton 03-01-2010 05:28 AM

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

Matt2015 03-01-2010 12:14 PM

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 11:08 PM.