LinuxQuestions.org
Visit Jeremy's Blog.
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 03-11-2009, 01:11 AM   #1
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Rep: Reputation: 15
glibc going into a loop


Everything has gone pretty good building the lfs 6.3 system so far but when I get to chapter 6:9 I think, it is when having to rebuild Glibc when I go to the ./configure part it just goes into a loop.Can I use a different version of Glibc or is that too much trouble.It is Glibc 2.5.1 or the problem might be with the Glibc-libidn 2.5.1 I don't know.
 
Old 03-11-2009, 06:44 AM   #2
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Ah, you're using 6.3. That explains you referring to the "Changing Ownership" section as 5.31 in your previous thread. LFS 6.4 has a few extra sections in Chapter 5, which is why I thought you meant 5.34.

Anyway... I haven't encountered the problem you mention before. I tried to do some searching around to see if maybe others have experienced it, but I think I need more information. Can you paste the log of what's happening? Or part of the log, at least. And is it actually occurring during the configuration stage, not during make?
 
Old 03-11-2009, 09:07 AM   #3
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
Yeah, it happens when I try to configure it . I couldn't get a good copy of it cause it is scrolling by so fast but here is what I could get

./configure.lineno: line 139: /dev/null: No such file or directory
./configure.lineno: line 139: /dev/null: No such file or directory
./configure.lineno: line 139: /dev/null: No such file or directory
./configure.lineno: line 139: /dev/null: No such file or directory
./configure.libeno: line 24 : /dev/null: No such file or directory
./configure.lineno: line 65: /dev/null: No such file or directory
./configure.lineno: line 73: /dev/null: No such file or directory
./configure.lineno: line 139: /dev/null: No such file or directory
./configure.lineno: line 139: /dev/null: No such file or directory


and it just keeps going over and over.
 
Old 03-11-2009, 09:29 AM   #4
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
I just noticed at section 6.2.2 mounting and populating /dev
mount -v --bind /dev $LFS/dev

this is the response I get

mount -v --bind /dev $LFS/dev
/dev on /dev type none (rw,bind)

is this normal?
 
Old 03-11-2009, 12:58 PM   #5
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
I figured out the problem with the loop it was a corrupt libidn directory in glibc-2.51 I deleted the glibc-build and the libidn directory inside glibc and then reinstalled it, it let me configure and run make but now I get this error on running the test

make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.5.1'
make: *** [check] Error 2
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: *** [/sources/glibc-build/posix/wordexp-test.out] Error 1
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[1]: *** [posix/tests] Error 2
make[2]: *** [/sources/glibc-build/nptl/tst-attr3.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancel1.out] Error 1
make[1]: *** [nptl/tests] Error 2
make[2]: *** [/sources/glibc-build/debug/tst-chk3.out] Error 1
make[2]: *** [/sources/glibc-build/debug/tst-lfschk3.out] Error 1
make[1]: *** [debug/tests] Error 2
make[1]: *** [/sources/glibc-build/c++-types-check.out] Error 1
make: *** [check] Error 2
root:/sources/glibc-build#

can't find anything in the log file
 
Old 03-11-2009, 07:44 PM   #6
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Mounting /dev should have output something like "/dev on /mnt/lfs/dev" for the first part. (That's why you got all those "/dev/null: No such file or directory" messages during configure.) Did you make sure the $LFS environment variable was properly set?

Some of those Glibc issues are to be expected, as it states in 6.9; personally, I would start over with chapter 6, making sure that /dev is correctly mounted as I mentioned above.
 
Old 03-11-2009, 07:49 PM   #7
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
I got past that and have been stuck on section 6.15(e2fsprogs) I have looked for 4 hours on goole trying to figure the thing out
Makefile:361: *** multiple target patterns. Stop
 
Old 03-11-2009, 08:07 PM   #8
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Can you paste line 361 of the Makefile here? And maybe a few lines before and after for context.
 
Old 03-11-2009, 08:22 PM   #9
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
This is all that it shows

root:/sources/e2fsprogs-1.40.2/build# make
make[1]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[1]: `lib/ext2fs/ext2_types.h' is up to date.
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make[1]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[1]: `lib/blkid/blkid_types.h' is up to date.
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make[1]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[1]: `lib/uuid/uuid_types.h' is up to date.
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make libs
make[1]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[2]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[2]: `lib/ext2fs/ext2_types.h' is up to date.
make[2]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make[2]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[2]: `lib/blkid/blkid_types.h' is up to date.
make[2]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make[2]: Entering directory `/sources/e2fsprogs-1.40.2/build'
make[2]: `lib/uuid/uuid_types.h' is up to date.
make[2]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
making all in lib/et
make[2]: Entering directory `/sources/e2fsprogs-1.40.2/build/lib/et'
Makefile:361: *** multiple target patterns. Stop.
make[2]: Leaving directory `/sources/e2fsprogs-1.40.2/build/lib/et'
make[1]: *** [all-libs-recursive] Error 1
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build'
make: *** [all] Error 2
 
Old 03-11-2009, 09:22 PM   #10
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
I meant from the Makefile itself, not the output of make. (Makefile:361 refers to line 361 of the named file.)

What do you get from the following?
Code:
awk 'NR==351,NR==371{print NR,$0}' Makefile
 
Old 03-11-2009, 09:32 PM   #11
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
I can't read the makefile it want let me . Everything went preety much flawless up til now lol. I've deleted it retried several times with the same message I could get into the make .ini file here is line 361-370

all-libs-recursive install-libs-recursive install-strip-libs-recursive \
uninstall-libs-recursive install-shlibs-libs-recursive \
install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
@for subdir in $(LIB_SUBDIRS); do \
if test -d $$subdir ; then \
target=`echo $@|$(SED) 's/-libs-recursive//'`; \
echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) || exit 1; \
fi ; \
done
 
Old 03-12-2009, 12:36 AM   #12
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Sorry, I should have been more specific. I meant the Makefile in the folder where make stopped, in this case "/sources/e2fsprogs-1.40.2/build/lib/et"

Actually, just for the heck of it, do me a favor: delete the e2fsprogs-1.40.2 directory and start with a freshly extracted tarball, then enter "make clean" after the configure step before you run make. Do you still get the same error?

Also, from within the chroot, what's the output of "ls /dev"?
 
Old 03-12-2009, 09:11 AM   #13
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
It seems like I'm going to have to start all over. I turned my pc off lastnight and now I have nothing on my $LFS partition. This time I'm going to use the livecd as a working host.
 
Old 03-12-2009, 09:35 AM   #14
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Nothing? As in, literally nothing? That seems very odd... though considering the errors you were getting, starting over may be the best option anyway. Out of curiosity, what were you using as a host?
 
Old 03-12-2009, 09:41 AM   #15
cluelessme
Member
 
Registered: Mar 2009
Location: USA
Posts: 33

Original Poster
Rep: Reputation: 15
I'm using Linuxmint 6 would rather have Ubuntu but linuxmint runs faster for me. I bought a used computer just so I could mess around with and get used to linux a little more and figured doing lfs was a good place to start learning.
 
  


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
how to loop over text file lines within bash script for loop? johnpaulodonnell Linux - Newbie 9 07-28-2015 03:49 PM
glibc-2.7: make goes into infinite loop rl92694 Linux - Software 4 06-30-2008 10:13 AM
bash loop within a loop for mysql ops br8kwall Programming 10 04-30-2008 03:50 AM
converting shell while loop to for loop farkus888 Programming 8 09-12-2007 02:30 AM
for loop only works properly on first loop symo0009 Programming 1 12-25-2005 05:17 PM

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

All times are GMT -5. The time now is 01:22 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