LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-11-2005, 09:31 PM   #1
Sakur
LQ Newbie
 
Registered: Mar 2005
Location: China
Distribution: FC3
Posts: 25

Rep: Reputation: 15
Unhappy LFS 6.0 Chapter 6: compiling glibc problem


My host is RH9-2.6 ,im trying to compile glibc-2.3.4 in chroot environment,i got a problem:
#../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc

...
configure:error:working compiler support for visibility attribute is required



below is the information for check:
on host:
$/lib/libc.so.6
....
linuxthreads-0.10...
..

on chroot env:
#/tools/lib/libc.so.6
....
Native Posix Thread Library..
...
#gcc -v
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread modelosix
gcc version 3.4.1

the gcc is compiled with glibc+nptl , is it the reason causing that problem?and any fix idea? thanks
 
Old 08-12-2005, 11:30 PM   #2
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Here I think I might have found the problem if not tell me, OK.
well you put:
Quote:
../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
and probably something else too, but it just stoped at those commands.

But, what you should have put 'If you reading LFS-6.0' is:
Quote:
../glibc-2.3.4-20040701/configure --prefix=/usr \
--disable-profile --enable-add-ons=nptl --with-tls \
--with-__thread --enable-kernel=2.6.0 --without-cvs \
--libexecdir=/usr/lib/glibc \
--with-headers=/tools/glibc-kernheaders
Tell me if I'm right.
 
Old 08-13-2005, 07:45 AM   #3
Sakur
LQ Newbie
 
Registered: Mar 2005
Location: China
Distribution: FC3
Posts: 25

Original Poster
Rep: Reputation: 15
Yes,that's right, and you will compile it within Kernel 6.0,but did you encounter my problem?
 
Old 08-13-2005, 11:39 PM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
OK, I'm gonna go on a wild hunch and say that
Quote:
../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
aren't the commands you put.

In that case:
Can you post more of the Output, and start with the first instance of any kind of Error down to the end of the Output?

Oh, and just to be certain it's not the commands post them also.
 
  


Reply


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-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 12:23 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
Error in Glibc Chapter-6 LFS ver-6..Help pls?? chakkaradeepcc Linux From Scratch 10 05-23-2005 12:33 PM
Error cross-compiling glibc, chapter 5 donbellioni Linux From Scratch 2 09-17-2004 02:12 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 02:04 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