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.
ROFL!
Nice theory ...I'll try installing gawk again, lets see how it goes after that
Edit: I think there is something wrong with the compiler in my LFS system...when i go into the gawk source directory and issue the install commands, i get:
Checking whether the C compiler (gcc ) works....no
configure: error: installation or configuration problem: C compiler cannot create executables.
ummm, ACK!
I switched consoles and ive logged in under lfs and installing it with the compiler from slacky (the base distro)
Last edited by Grim Reaper; 12-29-2002 at 05:38 AM.
you mean you've logged in as user LFS? You need to be root once you chroot in Chapter 6.
I wouldn't use the compiler from your source distro, simply for the fact that it's not the one that is for LFS. Also, if the compiler isn't working, there's gotta be a reason, and this reason might be big enough to work on.
Just some thoughts, obviously if it works, and you are happy, then who cares
what are the CFLAGS and CXXFLAGS meant to be...i optimised them, but then they said to clear them for the installation of this, so i just went export CFLAGS= and export CXXFLAGS= ....maybe they need to be something other than blank?
also, i installed gawk as the lfs user, non-chrooted...so just like i did before...then i switched back into the terminal that was logged in thru root and was chrooted into /mnt/lfs...then i tried to install glibc again...this time i didn't get that error about gawk not existing...instead i get a more evil looking one , heh
Code:
strtod.c: In function '____strold_l_internal':
strtod.c:1562: internal error: Segmentation fault
Please submit a full bug report,
with preproccessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.htm> for instructions.
make[2]: *** [/usr/src/sources/glibc-build/stdlib/strtold_l.o] Error 1
make[2]: Leaving directory '/usr/src/sources/glibc-2.2.5/stdlib'
make[1]: *** [stdlib/subdir_lib] Error 2
make[1]: Leaving directory '/usr/src/sources/glibc-2.2.5'
make: *** [all] Error 2
could this possible be to do with the CXXFLAGS and CFLAGS not being set to correct values? if so, what are _default_ values?
edit: fixed up code tags
Last edited by Grim Reaper; 12-30-2002 at 02:13 AM.
Whoa, that does look more evil. I am guessing it's not a gawk problem, but rather that's just where it faulted out at before. I'd re-unpack the source, re-apply the patches, re-unpack linuxthreads in the glibc directory, then try again.
Oh, and when I unset the values, I simply add 2 sets of double quotes:
CXXFLAGS=""
I don't know if that's correct, but it seems to work for me
Before i tried the last installation (that gave me those evil errors) i had removed the source dir and the build dir and tried again, yet hit those errors.
the only thing that i did differently is removed the patch also, and re-unpacked that and tried again, so far i've gotten to "make localedata/install-locales" without any problems, LMFAO
This is one of those strange things that happen just coz it wants to, lolz
I think sometimes the source gets dorked. If you are using the same unpacked packages from CH5 in CH6, this might cause problems. It's suggested to re-unpack the packages once you get to CH6 to make sure they are clean again.
Sometimes, I have no idea why, but good things just happen
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.