LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.2 Section 5.6 - Error making glibc-2.3.6 (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-2-section-5-6-error-making-glibc-2-3-6-a-611171/)

dustin_wielenga 01-04-2008 02:01 PM

LFS 6.2 Section 5.6 - Error making glibc-2.3.6
 
Hello, I am attempting to install LFS 6.2. The reason for that is to have it compatible as easily as possible with BLFS 6.2, as there is no BLFS 6.3 out yet. I have gone exactly by the book, as far as I know, trying to eliminate as many variables as I can for a first time install. Host system is LFS LiveCD 6.2.5.

Problem arises in Section 5.6, installing glibc-2.3.6. I'm working on installing glibc-2.3.6. Configured fine, but then when I run make after a while I get:

In file included from ../nptl/sysdeps/i386/i686/tls.h:34,
from ../include/tls.h:6,
from ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:248,
from ../nptl/sysdeps/pthread/bits/libc-lock.h:35,
from ../iconv/gconv_int.h:25,
from gettextP.h:27,
from bindtextdom.c:33:
../nptl/sysdeps/i386/i686/ ../tls.h:58:3: error: #error "TLS support is required."
make[2]: *** [/mnt/lfs/sources/gcc-build/intl/bindtextdom.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.3.6/intl'
make[1]: *** [intl/subdir_lib] Error 2'
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.3.6'
make: *** [all] Error 2
lfs:/mnt/lfs/sources/gcc-build$

Somebody sent me this link: http://www.cygwin.com/ml/libc-alpha/.../msg00000.html
Do you think I should attempt to compile with the --with-tls flag? Any other ideas as to what may have gone wrong?

Thanks in advance for your time,
Dustin W.

weibullguy 01-04-2008 03:10 PM

You are building in the gcc-build directory. Is the same gcc-build directory you used in section 5.4 or are you just naming all of your build directories gcc-build? I suggest as the first step, you delete gcc-build and start with a clean build directory (e.g., glibc-build).

Watch the output (or look at config.log) from the configure script because HAVE_TLS_SUPPORT wasn't set as it should've been. That's why the make fails. There should be some indication in the configure script output (or config.log) as to what was missing.

BTW, if the specs in your sig are correct you may want to consider using CLFS and follow up with CBLFS.

dustin_wielenga 01-04-2008 03:22 PM

As to the question of my rig, I'm building on an Athlon XP 3000+, 768MB RAM, soon to be upgraded to a Pentium Dual-Core.

Do I just add "--with-tls" to the configure line?

Thanks for pointing out the wrong build directory, I'll try it again properly, to see if what I did was the problem.

dustin_wielenga 01-05-2008 02:01 PM

Alright, I think the problem was the directory. Stupid mistake... O well, glad to be over that hump now. Thank you very much for your help weibullguy.


All times are GMT -5. The time now is 08:45 PM.