error compiling glibc under Mint 12
Hello again LQ, and welcome to another episode of "Andy45 Failing Epicly at LFS!!!"
Thanks to weibullguy in this thread, I finally finished compiling GCC. But now I'm stuck on glibc! Here is my code input: Code:
root-Satellite-U405 glibc-build # export CFLAGS="-march=i686 -mtune=native -O2 -pipe" Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0: Thanks, Andy45 |
Hi,
Why this step: Quote:
Code:
case `uname -m` in - The content is not saved to the configparms file, - The content is exported, so it will be used by other chapters as well. Give what is given in the book a try. Do remember to remove the build and source directory and start with a clean unpacked glibc. Hope this helps. |
Well, after trying it exactly as it was in the book, I still got some different errors, which look like this:
Code:
../sysdeps/i386/fpu/s_frexp.S: Assembler messages: Code:
atieno-Satellite-U405 glibc-2.14.1 # patch -Np1 -i ../glibc-2.14.1-sort-1.patch && patch -Np1 -i ../glibc-2.14.1-cpuid-1.patch && patch -Np1 -i ../glibc-2.14.1-fixes-1.patch && patch -Np1 -i ../glibc-2.14.1-gcc_fix-1.patch Code:
make -j2 && make check -j2 && make install -j2 Code:
/glibc-build/misc/mmap64.o -MD -MP -MF /mnt/lfs/glibc-build/misc/mmap64.o.dt -MT /mnt/lfs/glibc-build/misc/mmap64.o |
Hi,
First of all: No changes are needed to make things work, all that is mentioned in the particular chapters should be used as-is. I do see a new error message: Quote:
1) The use of MAKEFLGS='-j X, where X is 2 or larger. I noticed that not all packages like this and I don't use it when building gcc, binutils and glibc. Chapter 4.5 does mention the use of -j 2 but I would advise not to use compiler and make flags for now, unless mentioned in the chapter. 2) Your host doesn't meet the Host System Requirements. Could you post the output of the script mentioned here: version-check.sh. Hope this helps. |
Output of version-check.sh:
Code:
bash, version 4.2.10(1)-release |
Output of by-the-book glibc compilation
Output of by-the-book glibc compilation:
Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0: |
Hi,
Quote:
Fix the bold parts and restart with chapter 5 (starting with binutils). Hope this helps. |
Thanks for the tip. I've installed bash and texinfo and am starting from scratch (no pun intended). I'll post my results ASAP.
|
Unfortunately, after updating the two required parts of my system (bash and textinfo) AND doing a fresh install with by-the-book commands, I am still getting an error message:
Code:
F /mnt/lfs/glibc-build/misc/syslog.o.dt -MT /mnt/lfs/glibc-build/misc/syslog.o |
Hi,
There are still some other issue's with your host: Quote:
My advise: Use a different distro as host. Debian and Slackware come to mind, I used both to build LFS and minor changes were needed to make them meet the system requirements LFS needs. Hope this helps. |
Thank you.
Thank you Druuna, I will go ahead and try a different distro and mark this thread as solved. One question I have, however, is about makeinfo, because I can't find a package for that, so how can I fix that?
Thank you, Andy45 |
Hi,
Quote:
Quote:
Hope this helps. |
There might actually be an easier solution for you problem which worked for me. Due to bug #10375 in glibc, compilation fails if -U_FORTIFY_SOURCE is not in your CFLAGS. For me it worked to simply add this to configparms (in the glibc-build directory):
echo "CFLAGS += -U_FORTIFY_SOURCE" >> configparms Cheers, Pat |
Thanks Pat, I'll go ahead and try that before adding yet another VM to my poor old hard drive. I'll post my results soon.
|
Thanks for your suggestion Pat, but I will have to go ahead and use a Debian VM because I still get the following error:
Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0: |
Strange, but this might have been bad advice anyway. Because of not being able to chroot into the new environment in chapter 6, I redid all of chapter 5 (emptying /tools beforehand) and this time I did EVERYTHING as lfs user. No change was needed anywhere, everything went smoothly...
|
All times are GMT -5. The time now is 10:32 AM. |