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 03-29-2010, 02:46 PM   #1
hiteshfrnds
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Smile Problem in installing Glibc-2.10.1


Hello friends,
I am building linux using LFS 6.5 and i am getting problem in installing Glibc-2.10.1 in chapter 5 of 6.5 edition.

THIS IS THE SEQUENCE OF INSTRUCTION I HAVE EXECUTED

lfs@ubuntu:/mnt/lfs/tools/glibc-2.10.1$ cp -v nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig}
`nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S' -> `nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig'

lfs@ubuntu:/mnt/lfs/tools/glibc-2.10.1$ sed -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \
> <nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig \
> >nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S

lfs@ubuntu:/mnt/lfs/tools/glibc-2.10.1$ cd ../glibc-build

lfs@ubuntu:/mnt/lfs/tools/glibc-build$ case `uname -m` in
> i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
> esac

lfs@ubuntu:/mnt/lfs/tools/glibc-build$ ../glibc-2.10.1/configure --prefix=/tools \
> --host=$LFS_TGT --build=$(../glibc-2.10.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
checking for i686-lfs-linux-gnu-gcc... i686-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-lfs-linux-gnu-gcc accepts -g... yes
checking for i686-lfs-linux-gnu-gcc option to accept ISO C89... unsupported
checking for gcc... gcc
checking how to run the C preprocessor... i686-lfs-linux-gnu-gcc -E
checking for i686-lfs-linux-gnu-g++... no
checking for i686-lfs-linux-gnu-c++... no
checking for i686-lfs-linux-gnu-gpp... no
checking for i686-lfs-linux-gnu-aCC... no
checking for i686-lfs-linux-gnu-CC... no
checking for i686-lfs-linux-gnu-cxx... no
checking for i686-lfs-linux-gnu-cc++... no
checking for i686-lfs-linux-gnu-cl.exe... no
checking for i686-lfs-linux-gnu-FCC... no
checking for i686-lfs-linux-gnu-KCC... no
checking for i686-lfs-linux-gnu-RCC... no
checking for i686-lfs-linux-gnu-xlC_r... no
checking for i686-lfs-linux-gnu-xlC... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/as is GNU as... yes
checking whether /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/ld is GNU ld... yes
checking for /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/as... /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/as
checking version of /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/as... 2.19.1, ok
checking for /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/ld... /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/ld
checking version of /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.1/../../../../i686-lfs-linux-gnu/bin/ld... 2.19.1, 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.1, 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... no
checking for mawk... mawk
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... yes
checking for assembler .type directive prefix... @
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix...
checking for --as-needed option... no
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... no
checking for --hash-style option... yes
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... no
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... yes
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for grep that handles long lines and -e... /bin//grep
checking for egrep... /bin//grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking size of long double... 0
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... (cached) yes
checking for C cleanup handling... (cached) yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for grep that handles long lines and -e... (cached) /bin//grep
checking for egrep... (cached) /bin//grep -E
checking installed Linux kernel header files... 2.0.10 or later
checking for kernel header at least 2.6.18... ok
running configure fragment for sysdeps/i386
checking if -g produces usable source locations for assembler-with-cpp... yes
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands

AND AFTER RUNNING make I AM GETTING THIS ERROR
lfs@ubuntu:/mnt/lfs/tools/glibc-build$ make
..........................some output.........
make[2]: *** No rule to make target `/mnt/lfs/tools/glibc-build/s-proto.d', needed by `/mnt/lfs/tools/glibc-build/signal/kill.o'. Stop.
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.10.1/signal'
make[1]: *** [signal/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/glibc-2.10.1'
make: *** [all] Error 2



please help me..
Thanks
 
Old 03-30-2010, 09:25 AM   #2
smkh
LQ Newbie
 
Registered: Mar 2010
Posts: 15

Rep: Reputation: 2
According to the book you should create the sources directory and extract archived files there:
export LFS=/mnt/lfs
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources
mkdir -v $LFS/tools
ln -sv $LFS/tools /
groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
chown -v lfs $LFS/tools
chown -v lfs $LFS/sources
su - lfs
.
.
.
cd $LFS/sources
tar -xvf glibc-2.10.1.tar.bz2
cd glibc-2.10.1/
#now follow the book instructions for installing glibc#
 
Old 03-31-2010, 04:46 AM   #3
hiteshfrnds
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
glibc

THANKS for replying..

I think i have to install all the packages in /mnt/lfs/tools directory
So first i make two directory
/mnt/lfs/tools/glibc-2.10.1
/mnt/lfs/tools/glibc-build

i think it doesn't matter at weather i install it in "tools" directory or "source" directory
i am getting this error...
 
  


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
problem in installing glibc 2.7 tanmoy_tiger Linux - Software 3 08-03-2011 01:45 PM
problem installing glibc-2.11 aleppos Red Hat 17 12-08-2009 04:52 PM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 04:22 PM
Problem installing glibc-2.3.4 M.R Linux - Software 4 03-15-2005 09:03 AM
Problem installing glibc...need help tarballed Linux - General 1 01-28-2003 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration