LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 01-04-2008, 02:01 PM   #1
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Rep: Reputation: 15
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.
 
Old 01-04-2008, 03:10 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,731
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
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.
 
Old 01-04-2008, 03:22 PM   #3
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
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.
 
Old 01-05-2008, 02:01 PM   #4
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
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.
 
  


Reply

Tags
lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6.0 Bindutils section 6.13 error xushi Linux From Scratch 6 05-31-2005 11:31 AM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration