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.
hi all, first of all this is my 3rd lfs build im going to make. i made it 2 time on a slack (9.1 and 10.0) host. worked like a charm. but...
now im trying to compile it on an amd64 with ubuntu64 dapper on it gcc version is 4.0.3 (ubuntu's own version)
when i set up my distro to function as a host for another lfs build (its an laptop btw) i get the following error
Code:
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/gcc-3.4.3/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-3.4.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-3.4.3/gcc'
make: *** [bootstrap] Error 2
when compiling gcc-3.4.3
now i know i didnt give ANY parameters with the configure script with this output but i get the exact same error message when doing it as the book says. now wat is the problem here??
/proc/version = Linux version 2.6.15-25-amd64-generic (buildd@king) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 SMP PREEMPT Wed Jun 14 11:28:03 UTC 2006
for who's interested
Click here to see the post LQ members have rated as the most helpful post in this thread.
I am guessing that the amd64 arch itself is your problem. Correct me if I'm wrong but at the moment LFS shouldn't work for amd64. I think the CLFS project is the one you need to be reading instead.
oke now im following clfs for x86_64 but when i try to build glibc i get the following error
Code:
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.4 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/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/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 `/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.4'
make: *** [all] Error 2
I am a Nicaraguan student, i speak spanish, for that reason excuse me if I write in wrong ways, or if I offend somebody because our difference between cultural writing.
Hello there, I am doing the same thing and I had the same error, I am working on Debian, but that should not be the problem!
There is somebody, who knows how to fix it?
I tried to fix it being root but it did not work at all, I tried to make it all again and it still is not working!
rojoblandino:
I also wish you would see an answer like Youri. Please consider this while you await such a post.
In the LFS book, there were awk scripts. It was my experience that mawk does not work, but gawk does.
In accord with my experience I suggest that you try gawk anyway, in place of mawk when the script does
not produce a favorable result.
gawk is available from http://ftp.gnu.org/pub/gnu/gawk/ and its mirrors.
rojoblandino:
I also wish you would see an answer like Youri. Please consider this while you await such a post.
In the LFS book, there were awk scripts. It was my experience that mawk does not work, but gawk does.
In accord with my experience I suggest that you try gawk anyway, in place of mawk when the script does
not produce a favorable result.
gawk is available from http://ftp.gnu.org/pub/gnu/gawk/ and its mirrors.
Gerald
I agree. The same with bash, in lieu of Ubuntu's dash.
I had this same problem using the x86 version of Ubuntu (7.04). I solved this problem by installing GAWK, as mawk was installed and it wasn't working right. On Ubuntu you can install gawk by simply doing
I was using a vanilla installation of DSL, and installing gawk instead of mawk did the trick for me as well, with one gotcha: the mydsl package for awk installs to /opt/awk/bin. Setting up the PATH was not enough (even removing /usr/bin from path didn't help), and I found /usr/bin/{g,}awk hard coded into some spots for some dumb reason. So, to keep others from getting headaches, do this as well once you install gawk on DSL
(note: on DSL, /usr/bin/{g,}awk are just symlinks to mawk)
Why that was necessary is completely beyond me (and a little disappointing, as you can't get more unix than gnu's c compiler, and that being in the sources just makes me want to kick something), but it worked, so I'm not going to lose any more sleep over it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.