Chapter 6, Glibc: configure fails while testing CPP
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.
Chapter 6, Glibc: configure fails while testing CPP
For some reason, either Glibc's configure script or my CPP refuses to work correctly. If I don't specify CPP=/static/bin/cpp, then the script thinks it's in /lib/cpp, and if I DO tell it where it is (or symlink it):
Quote:
configure:3374: checking how to run the C preprocessor
configure:3492: result: /static/bin/cpp
configure:3517: /static/bin/cpp conftest.c
In file included from /static/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/include/syslimits.h:7,
from /static/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/include/limits.h:11,
from configure:3512:
/static/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1/include/limits.h:122:75: limits.h: No such file or directory
/usr/lib only contains an empty directory called locale. This is very early in chapter 6, so everything is still in /static, except for a few symlinks, headers and man pages.
Ah linux from scratch (didn't notice at first) your braver than me
I 've got this
Quote:
i.e. add "/static/bin:/static/usr/bin" at the _end_ of PATH.
from the top of chapter 6 I downloaded, but since configure didn't find cpp in /static/bin I presume that you may have missed this and may be this:
Quote:
2. Before we install glibc, we need to install the Linux kernel headers.
If you exited chroot for some reason, enter it again (we're doing
everything from inside chroot, remember!) and don't forget to remount
/proc if it was unmounted.
Now install the Linux kernel headers with the following commands
(from inside a freshly untarred /usr/src/linux):
yes "" | make config &&
make include/linux/version.h &&
cd include &&
cp -a linux /usr/include/ &&
chown -R 0.0 /usr/include/linux &&
mkdir /usr/include/asm &&
cp -a asm/* /usr/include/asm &&
chown -R 0.0 /usr/include/asm
This caused a re-evaluation of things assert.h is included in. because it was newer than them, so the configure script had to re-write things rather than just look for them.
I think thats right, but having never tried LFS I won't comment further in case I'm wrong
Hi!
I do all like you write i LFS book, but after configuring a glibc 2.3.1 in chapter 6 when I run make I get errors:
I have no name!:/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.1'
sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
/bin/sh: line 1: sysdeps/i386/elf/configure.in: Permission denied
make[1]: *** [sysdeps/i386/elf/configure] Error 126
make[1]: Leaving directory `/glibc-2.3.1'
make: *** [all] Error 2
I change permissions of file sysdeps/i386/elf/configure.in to 777 and get errors again:
I have no name!:/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.1'
sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
sysdeps/i386/elf/configure.in: line 1: GLIBC_PROVIDES: command not found
sysdeps/i386/elf/configure.in: line 7: syntax error near unexpected token `for'
sysdeps/i386/elf/configure.in: line 7: `AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl'
make[1]: *** [sysdeps/i386/elf/configure] Error 2
make[1]: Leaving directory `/glibc-2.3.1'
make: *** [all] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.