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 04-18-2010, 10:52 AM   #1
March_26
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Smile nasty little error with glbc :(


I am using version 6.6 of LFS, and am on chapter 5.7 where i have to compile glbc.
the problem comes after i enter the command to prepare glbc for compliation. I get this!

Code:
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required
i checked the host requirements and found nothing unusual... everything seems, at least to a noob, to be fine.

how can I fix this?
 
Old 04-18-2010, 11:56 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by March_26 View Post
I am using version 6.6 of LFS, and am on chapter 5.7 where i have to compile glbc.
the problem comes after i enter the command to prepare glbc for compliation. I get this!

Code:
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required
i checked the host requirements and found nothing unusual... everything seems, at least to a noob, to be fine.

how can I fix this?
Hi,

what host system are you using? Please post the commands that you executed before the error occurred. We also need a little more of the output.
As for the requirements, make sure that every program is installed with it's recommended minimal version, e.g. by executing
Code:
gcc --version
bash --version
...
Do this for all programs listed in the host system requirements section.
 
Old 04-19-2010, 07:19 PM   #3
March_26
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hey CRTS, thanks for the reply.
i expected it to take much longer

I'm using Ubuntu 9.10 as host, for lack of any specific suggestions from anyone making an LFS.
this is my first lfs, if it isn't apparent enough already

before I got the error i executed these commands:
Code:
case `uname -m` in
  i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
esac
^^ this one was ok
Code:
../glibc-2.11.1/configure --prefix=/tools \
    --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.18 --with-headers=/tools/include \
    libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
^^ this is the code that gave me the error
and the output was (not the whole thing)
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-ranlib... no
checking for ranlib... ranlib
configure: WARNING: using cross tools not prefixed with host triplet
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20, ok
checking for ld... ld
checking version of ld... 2.20, ok
checking for pwd... /bin/pwd
checking for i686-lfs-linux-gnu-gcc... (cached) i686-lfs-linux-gnu-gcc
checking version of i686-lfs-linux-gnu-gcc... 4.4.3, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... no
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt makeinfo autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... no
checking for assembler .type directive prefix... @
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... no
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required
so yeah... im gonna go back and do what you said about the prereqs though, and see what's up.
thanks

EDIT: checked all the host requirements, all good
PLEASE HELP!

Last edited by March_26; 04-19-2010 at 07:29 PM.
 
Old 04-28-2010, 04:44 PM   #4
March_26
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Haven't gotten help.
I really wanna fix this before i quit and move to archlinux or something.
any other details necessary?
 
Old 04-29-2010, 01:43 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Quote:
EDIT: checked all the host requirements, all good
PLEASE HELP!
What did you do to meet these requirements?? Out of the box Ubuntu isn't suitable as host for LFS.

My advise: Use the LFS liveCD instead.

Hope this helps.
 
Old 05-17-2010, 05:00 PM   #6
titinail
LQ Newbie
 
Registered: May 2010
Posts: 9

Rep: Reputation: 0
I think in chapter 5 when binutils-pass1 and gcc-pass1 is compiled there is a misconfiguration with the ld.

You could try to force gcc to prefer the linker from the host in /usr/bin.

Try this in pass 1 of binutils
Code:
CC="gcc -B/usr/bin/" ../binutils-2.20.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror

make

make install
and this in pass 1 of gcc
Code:
CC="gcc -B/usr/bin/" ../gcc-4.5.0/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --enable-languages=c

make bootstrap

make install
 
  


Reply

Tags
compiling, error, glibc


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
[SOLVED] httpd not restarting at logrotate (seg fault or similar nasty error) niels.horn Slackware 12 04-03-2011 12:44 AM
glbc compiler error newcomer4 Linux - General 1 02-03-2006 05:03 AM
Nasty tsclient error NTolerance Linux - Software 4 04-04-2005 01:34 PM
mandrake glbc error master Linux - General 0 05-22-2004 02:34 PM


All times are GMT -5. The time now is 06:41 AM.

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