LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-13-2010, 08:11 AM   #1
retxed
Member
 
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Rep: Reputation: 9
Question LFS newbie..stuck in Chapter6.9 Glibc-2.11.1 installation


hello everyone!!!
i am a newbie to LFS,and i started the LFS-6.6 few days back...i have encountered few errors but i searched the LFS forum and got many of my doubts cleared....but now am stuck at glibc-2.11.1 installation..chapter 6.9

my glibc-check-log on grepping gives a whole list of errors
Quote:
make[1]: *** [csu/tests] Error 2
make[1]: *** [iconv/tests] Error 2
make[1]: *** [locale/tests] Error 2
make[1]: *** [localedata/tests] Error 2
make[2]: *** [/sources/glibc-build/iconvdata/iso8859-7jp.stmp] Error 1
make[2]: *** [/sources/glibc-build/iconvdata/stamp.os] Error 1
make[2]: *** [/sources/glibc-build/iconvdata/stamp.oS] Error 1
make[2]: *** [/sources/glibc-build/iconvdata/gconv-modules] Error 1
make[1]: *** [iconvdata/tests] Error 2
make[1]: *** [assert/tests] Error 2
make[1]: *** [ctype/tests] Error 2
make[1]: *** [intl/tests] Error 2
make[1]: *** [catgets/tests] Error 2
make[1]: *** [math/tests] Error 2
make[1]: *** [setjmp/tests] Error 2
make[1]: *** [signal/tests] Error 2
make[2]: *** [/sources/glibc-build/stdlib/tst-putenvmod.so] Error 1
make[1]: *** [stdlib/tests] Error 2
make[1]: *** [stdio-common/tests] Error 2
make[1]: *** [libio/tests] Error 2
make[1]: *** [dlfcn/tests] Error 2
make[1]: *** [malloc/tests] Error 2
make[1]: *** [string/tests] Error 2
make[1]: *** [wcsmbs/tests] Error 2
make[1]: *** [timezone/tests] Error 2
make[1]: *** [time/tests] Error 2
make[1]: *** [dirent/tests] Error 2
make[1]: *** [grp/tests] Error 2
make[1]: *** [pwd/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[1]: *** [posix/tests] Error 2
make[1]: *** [io/tests] Error 2
make[1]: *** [resource/tests] Error 2
make[1]: *** [misc/tests] Error 2
make[1]: *** [gmon/tests] Error 2
make[1]: *** [gnulib/tests] Error 2
make[1]: *** [wctype/tests] Error 2
make[1]: *** [shadow/tests] Error 2
make[1]: *** [gshadow/tests] Error 2
make[1]: *** [argp/tests] Error 2
make[1]: *** [crypt/tests] Error 2
make[1]: *** [nptl/tests] Error 2
make[1]: *** [resolv/tests] Error 2
make[1]: *** [nss/tests] Error 2
make[1]: *** [rt/tests] Error 2
make[1]: *** [debug/tests] Error 2
make[2]: *** [/sources/glibc-build/nptl_db/db-symbols.v.i] Error 1
make[1]: *** [nptl_db/tests] Error 2
make[1]: *** [inet/tests] Error 2
make[1]: *** [sunrpc/tests] Error 2
make[1]: *** [login/tests] Error 2
make[2]: *** [/sources/glibc-build/elf/check-textrel.out] Error 1
make[2]: *** [/sources/glibc-build/elf/check-execstack.out] Error 1
make[1]: *** [elf/tests] Error 2
make: *** [check] Error 2
i don't know what happened...but when i saw the glibc-check-log , probably the error occurs first here.....similar type of error occur repeatedly..as log file is to big am attaching only the part where Error 2 first occured

Quote:
make[2]: Target `tests' not remade because of errors.
make[2]: warning: Clock skew detected. Your build may be incomplete.
rm /sources/glibc-build/csu/test-as-const-tlsdesc.c /sources/glibc-build/csu/test-as-const-tcb-offsets.c
make[2]: Leaving directory `/sources/glibc-2.11.1/csu'
make[1]: *** [csu/tests] Error 2
make subdir=iconv -C iconv ..=../ tests
make[2]: Entering directory `/sources/glibc-2.11.1/iconv'
make[2]: Warning: File `/dev/null' has modification time 1.4e+04 s in the future
.././scripts/mkinstalldirs /sources/glibc-build/iconv
mkdir /sources/glibc-build/iconv
i have highlighted the places i don't understand well....



I am using the SuperOS(ubuntu) 9.10 distribution..


Please,tell me what to do from here....Thanks in advance !!
 
Old 07-13-2010, 09:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
As for your first code block, the errors start above it, so it's really not a great help. It's good to know that glibc in chapter 6 is the first really essential thing you're slapping together, so it's really a test of your work thus far. Now, what follows is my guesses at your errors

Clock skew detected. Your build may be incomplete.
This is a hardware thing where the clock(i.e. the system clock, not a time clock) is not clocking all parts of the m/b together,
Usually this is only something hardware engineers have to worry about. Try ignoring it, and hope it goes away. Stop overclocking. If it remains an issue, we may have to look into it.

Error 2
File or directory not found error

File `/dev/null' has modification time 1.4e+04 s in the future
This mjeans a compile has gone badly wrong and got out and relieved it's overfull bladder on your system :-/. /dev/null is like the famous joke 'write only memory' - the unix dustbin.check it's size - it should be 0 bytes like this one

crw-rw-rw- 1 root root 1, 3 2005-11-21 03:22 /dev/null

As you see, mine dates from 2005. Yours seems way off
 
1 members found this post helpful.
Old 07-14-2010, 01:54 AM   #3
retxed
Member
 
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Original Poster
Rep: Reputation: 9
Hey business_kid !!
Thanks for the reply.....it was informative.
But what do you suggest i do from here....should i start the LFS project from start.
I am using the Ubuntu9.10 , will that create any problems??? and what if the host system requirement as described in LFS-6.6 book are met with a higher package version???



Thanks for your reply again !!
 
Old 07-14-2010, 03:10 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
post the output of ls -l /dev/null - the one in the chroot.
It's long enough since I've done an LFS. I would try to validate the rest of the system by recompiling something that worked(Binutils?). Don't reinstall binutils. If that works, delete the glibc source & explode from tarball again. Otherwise, go back to chapter 5. It will be quicker in the long run. Watch for errors in ch 5 this time.
 
Old 07-14-2010, 08:06 AM   #5
retxed
Member
 
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Original Poster
Rep: Reputation: 9
hello !!!
thanks again....the output as you asked is

Quote:
root:/# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Jul 14 2010 /dev/null

Thanks for help, i'll start again..with chapter 5.
 
Old 07-15-2010, 03:16 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
/dev/null looks good.
How the hell did it work out 'File `/dev/null' has modification time 1.4e+04 s in the future'

You're in ch.6 - chroot so a reboot would fix whatever happened, as /dev is not preserved and udev starts from lists. So it's the glibc build that went screwy. Do it line by line.
 
Old 07-15-2010, 09:39 PM   #7
retxed
Member
 
Registered: Sep 2009
Location: Chennai
Distribution: Ubuntu 11.10 and back track 4
Posts: 45

Original Poster
Rep: Reputation: 9
Thank you again,business_kid !!

yeah! am starting with glibc again.
 
Old 04-27-2011, 11:54 PM   #8
riller
LQ Newbie
 
Registered: Mar 2010
Posts: 13

Rep: Reputation: 0
Have you find the cause or overcome the problem? I'm encountering this as well.
 
Old 04-28-2011, 02:36 AM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
HI you will need to post the errors from the log file. Also what Host distro are you using and what versionof lfs?
 
Old 05-11-2011, 07:42 AM   #10
distant_guy
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Its the same error I am getting. I am new to this linux domain. Please suggest some remedies.

CC lib/string.o
CC lib/vsprintf.o
AR lib/lib.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
LD vmlinux.o
make[1]: Warning: File `vmlinux.o' has modification time 6.3 s in the future
MODPOST vmlinux.o
WARNING: modpost: Found 5 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: warning: Clock skew detected. Your build may be incomplete.
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
make[1]: Warning: File `vmlinux' has modification time 5.9 s in the future
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
make[2]: Warning: File `arch/arm/boot/compressed/../Image' has modification time 6.5 s in the future
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/piggy.gzip.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
make[2]: warning: Clock skew detected. Your build may be incomplete.
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
UIMAGE arch/arm/boot/uImage
Image Name: Linux-2.6.35.7-00057-g41bac15-di
Created: Tue May 10 21:40:31 2011
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3140112 Bytes = 3066.52 kB = 2.99 MB
Load Address: 0x80008000
Entry Point: 0x80008000
Image arch/arm/boot/uImage is ready
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: warning: Clock skew detected. Your build may be incomplete.

I am not sure if this will cause boot issues. I am building for Android and the boot stops specifying that few files in /system/bin is missing. The boot stops init.rc routines, the last message is "CPU1: Shutdown". I am not able to progress any further. A similar post said it could be due to NFS and yes,I am building over the NW and I am looking at NTP org website to see to resolve it.

However, if someone can tell me, if this can boot issues or not (which primarily is due to missing files in /system/bin)
Thanks.
 
Old 05-12-2011, 02:53 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Distant_guy: this thread started off on glibc in lfs. Now I'm seeing kernel errors, and you're mentioning andrid. I'm confused. Better to start a fresh thread and explain yourself fully.

That said, I would ignore time stamp errors, and feel unlucky if they nailed me later. But kernel builds don't go poking around in /system/bin looking for files unless they want to use them as a rule. That I would view as important. I am presuming you are cross compiling? A file in /system/bin would be an _arm_ executable which won't run on an x86 box without pain. Exactly what files does it want? For things like tar, bzip2, gzip, cp, I am sure you could symlink in the gnu x86 versions. Libc stuff I would be very careful about. But I wouldn't even bother trying a kernel unless the message was a warning nag (e.g. can't find bzip2; using gzip instead), as otherwise, a middle finger is implied, but they don't actually put it in.
 
  


Reply



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 newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
In which directory we have to build Glibc in pass2(chapter6.9) luckybtn Linux From Scratch 4 08-12-2008 08:33 PM
glibc 2.3.6 on LFS 5.6 profeta64 Linux From Scratch 5 12-04-2007 01:42 AM
LFS v6-installation of glibc; need help kartheekpn Linux From Scratch 31 04-26-2005 04:13 PM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM

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

All times are GMT -5. The time now is 03:59 AM.

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