LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2007, 06:55 PM   #1
lrt
Member
 
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 15
glibc-2.5.1 make error


i've gone step by step through the book and still get stuck at the same place every time.

chapter 5.6 of lfs book version 6.3

this is the make error i am getting for glibc-2.5.1, any help on this would be great! thanks.

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.5.1'
make: *** [all] Error 2

lrt
 
Old 10-03-2007, 09:56 AM   #2
csiga
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Hi

You use the mawk (awk) program.
Use the gawk (awk)!

Cs
 
Old 10-04-2007, 05:59 PM   #3
lrt
Member
 
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks for your response. Yes. I can see where the errors are mentioning mawk. I proceeded to install gawk (apt-get install gawk) and uninstall mawk. However, I still get the same errors when running make.

Why is it trying to use mawk instead of gawk?

lfs@boca:/media/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.5.1 objdir=`pwd` all
make[1]: Entering directory `/media/lfs/sources/glibc-2.5.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 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 > /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.5.1'
make: *** [all] Error 2
 
Old 10-04-2007, 07:31 PM   #4
lrt
Member
 
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
[SOLVED] glibc-2.5.1 make error

After reading through that error message a little more carefully, I noticed the Makefile was reporting some sort of syntax error. I figured the source must have been corrupted during download therefore producing incomplete code and finally syntax errors during make. I simply downloaded the source again and attempted to build again and it worked beautifully.

Could this really have been the issue? Or was it because I didn't have gawk installed and was using mawk instead?
 
Old 10-31-2007, 04:48 AM   #5
joe_steeve
LQ Newbie
 
Registered: Dec 2006
Location: India
Distribution: Debian
Posts: 2

Rep: Reputation: 0
If your download was corrupted, you would not have been able to extract it in the first place. However, I am trying to build a toolchain with glibc-2.7 and I am stuck at the exact same place :-S
 
Old 10-31-2007, 08:14 AM   #6
gerald_M2B
Member
 
Registered: Oct 2007
Posts: 34

Rep: Reputation: 15
Some systems are setup with links from /usr/bin/awk -> /etc/alternatives/awk -> /usr/bin/mawk
Even after installing gawk, it would not get preferred use. The /etc/alternatives/awk link needs to point to
gawk
 
Old 08-28-2008, 10:49 AM   #7
Nick Stone
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by lrt View Post
Thanks for your response. Yes. I can see where the errors are mentioning mawk. I proceeded to install gawk (apt-get install gawk) and uninstall mawk. However, I still get the same errors when running make.

Why is it trying to use mawk instead of gawk?

lfs@boca:/media/lfs/sources/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.5.1 objdir=`pwd` all
make[1]: Entering directory `/media/lfs/sources/glibc-2.5.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 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 > /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.5.1'
make: *** [all] Error 2

Don't forget to rerun configure after installing gawk.
Installing gawk and then immediately rerunning make will not work!
 
Old 10-09-2008, 08:47 AM   #8
analog_G
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
gawk is a host system requirement

Great help,
just wanted to add, that having gawk is listed in the host system requirements in the LFS book. Oops, I missed it too and had the same problem. Also remember, that when you are following the LFS instructions, your environment PATH is very limiting. I built gawk from source which installs to /usr/local/bin/gawk. when I ran "../glibc-2.5.1/configure ...blah" the script was still not finding gawk, but finding mawk instead. You need to create a symbolic link to gawk in /usr/bin.
Code:
$ sudo ln -vs /usr/local/bin/gawk /usr/bin/gawk
this solved the problem for me.
NOTE: also remember that if you created an "lfs" user, most likely 'sudo' will not work. I switched to my normal user to run this command. Or you can probably do this...
Code:
$su root
$ln -vs /usr/local/bin/gawk /usr/bin/gawk
(LFS on eeeXubuntu host)

I wonder why the script even allows the use of mawk if this failure occurs?

Last edited by analog_G; 10-09-2008 at 08:52 AM. Reason: better instructions
 
Old 07-07-2010, 12:08 AM   #9
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

Rep: Reputation: 17
Wow, I've failed at this step a few times now. I can't believe that I didn't catch this problem! I'm so glad I found this now. I decided to give LFS another go and got stuck at this point once again, but I installed gawk and made my link and now it seems to be working beautifully!
 
Old 07-07-2010, 01:29 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@Mr. Majestic:

Ubuntu is not suitable (out of the box) to be a LFS host. If you don't want to run into these problems I would suggest using the LFS liveCD, it was build to be a host for LFS.

Do a search on LQ for ubuntu and lfs and you will see a lot of problems. Ubuntu is most common, but other distro's have the same issues.

Hope this helps.
 
Old 07-07-2010, 03:37 PM   #11
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

Rep: Reputation: 17
Quote:
Originally Posted by druuna View Post
@Mr. Majestic:

Ubuntu is not suitable (out of the box) to be a LFS host. If you don't want to run into these problems I would suggest using the LFS liveCD, it was build to be a host for LFS.

Do a search on LQ for ubuntu and lfs and you will see a lot of problems. Ubuntu is most common, but other distro's have the same issues.

Hope this helps.
Yeah, I've been noticing that Ubuntu doesn't work out so well. I think I'm going to restart using the LFS Live CD. I had actually thought of that before, but I didn't have any DVDs on hand at time to burn the ISO to, so I went ahead and tried it with Ubuntu again just for the heck of it. That's what I get for being impatient I guess
 
  


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
make error with glibc-2.3.4 -fatbass- Linux From Scratch 1 12-20-2017 10:07 AM
Glibc 2.4 *Make error* devoid Linux - Software 1 06-12-2006 03:54 PM
Glibc make error Edgington Linux From Scratch 7 12-23-2004 04:25 AM
make glibc 2.3.2 debian error storma Linux - Software 0 01-01-2004 01:29 AM
Glibc make error jarin scott Linux - Software 3 08-16-2003 10:36 AM

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

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