LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chapter 5 - Installing GCC... (https://www.linuxquestions.org/questions/linux-from-scratch-13/chapter-5-installing-gcc-39478/)

Grim Reaper 12-29-2002 01:10 AM

Would it 'pollute' my LFS system if i installed GAWK now? like would libraries get scattered throughout the LFS installation?

MasterC 12-29-2002 04:53 AM

I wouldn't think so. You are going to be installing them anyway, it's not like they'd go somewhere they aren't supposed to and still work.

Cool

Grim Reaper 12-29-2002 05:30 AM

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)

MasterC 12-29-2002 07:59 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 ;)

Cool

Grim Reaper 12-30-2002 01:55 AM

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

MasterC 12-30-2002 04:22 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 ;)

Cool

Grim Reaper 12-30-2002 06:53 PM

Ok, now I'm REALLY confused...

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 ;)

MasterC 12-31-2002 12:58 AM

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 ;)

Cool


All times are GMT -5. The time now is 08:15 AM.