Linux From ScratchThis 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.
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.
I am working on a project 'Pendrive Linux' i.e making a boot/root pendrive linux from scratch.I am using Ubuntu 7.10 distro as my host distribution
While installing gcc from chapter 5 of LFS book after giving the make bootstrap command i get the following error:
Actually i have to build the entire system in a pendrive. So i took a different way. I thought i would make the entire system in a directory and give prefix directory as my pendrive partition and install only the required packages.So i issued the commands as superuser (root). I dont think being the root it should give any error of premission denied.Or am i thinking the wrong way....!!!!
Last edited by ameya.malondkar; 04-07-2008 at 12:29 AM.
i Tried following the exact instructions in LFS by using a bigger size pendrive.
Still i got stuck up at installation of glibc in chapter 5.
Error i got after issuing make command of glibc-2.5.1:
/[^
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/lfs/sources/glibc-2.5.1'
make[1]: Entering directory `/mnt/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 > /mnt/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 ...
rm -f /mnt/lfs/sources/glibc-build/stamp.o; > /mnt/lfs/sources/glibc-build/stamp.o
rm -f /mnt/lfs/sources/glibc-build/stamp.os; > /mnt/lfs/sources/glibc-build/stamp.os
rm -f /mnt/lfs/sources/glibc-build/stamp.oS; > /mnt/lfs/sources/glibc-build/stamp.oS
cd /mnt/lfs/sources/glibc-build && /tools/bin/ar cruv libc.a `cat stamp.o`
: /mnt/lfs/sources/glibc-build/libc.a
cd /mnt/lfs/sources/glibc-build && /tools/bin/ar cruv libc_pic.a `cat stamp.os`
: /mnt/lfs/sources/glibc-build/libc_pic.a
cd /mnt/lfs/sources/glibc-build && /tools/bin/ar cruv libc_nonshared.a `cat stamp.oS`
: /mnt/lfs/sources/glibc-build/libc_nonshared.a
make[1]: *** No rule to make target `/mnt/lfs/sources/glibc-build/Versions.all', needed by `/mnt/lfs/sources/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.5.1'
make: *** [all] Error 2
lfs@ameya-desktop:/mnt/lfs/sources/glibc-build$
SOlution??????
Last edited by ameya.malondkar; 04-08-2008 at 12:42 AM.
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
Looks like your host mawk application is giving you problems. Doing a search of mawk problems with LFS, it appears your not the only one. If your distro has mawk installed as a separate package from gawk or awk, then uninstall mawk. Then if you didn't do it already, check your host system versions against what LFS needs.
I don't know if you have found an answer yet or not, but here is what worked for me:
I modified line 19 of the scripts/gen-sorted.awk from sub(/\/[^/]+$/, "", subdir); to sub(/\/[^\/]+$/, "", subdir); it seems that the forward-slash within the square brackets needs to be escaped. This issue will crop up 2 more times in the script, around lines 60 and 64. After those modifications, the make command worked fine.
I'm building LFS 6.3 on an eMac (PPC) running Ubuntu 7.04 kernel 2.6.20-16-powerpc
I don't know if you have found an answer yet or not, but here is what worked for me:
I modified line 19 of the scripts/gen-sorted.awk from sub(/\/[^/]+$/, "", subdir); to sub(/\/[^\/]+$/, "", subdir); it seems that the forward-slash within the square brackets needs to be escaped. This issue will crop up 2 more times in the script, around lines 60 and 64. After those modifications, the make command worked fine.
I'm building LFS 6.3 on an eMac (PPC) running Ubuntu 7.04 kernel 2.6.20-16-powerpc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.