LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2008, 01:37 AM   #1
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Rep: Reputation: 15
Question There is a infinite loop, when i run "make"...!!!


Hi,


Dear Friends, i'm compiling the binutils-2.17 in LFS (linux From Scratch), and when i enter the command "make", it goeas to infinite loop...

i know the make command is used for compilation,, but currently it takes 2:30 hours, which is the enough time... so please tell me, that is it the error or what is it,,,

why it is taking so much time...????

from
Lucky
email: ajaonchat@yahoo.com
 
Old 07-30-2008, 11:38 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
What does it say after you run the make command? How fast is the machine you are building on?

Though even a very slow machine shouldn't take 2 and a half hours to build binutils.
 
Old 07-30-2008, 10:52 PM   #3
tanushreevk
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
Post make

hi

provide the steps you performed?




Quote:
Originally Posted by luckybtn View Post
Hi,


Dear Friends, i'm compiling the binutils-2.17 in LFS (linux From Scratch), and when i enter the command "make", it goeas to infinite loop...

i know the make command is used for compilation,, but currently it takes 2:30 hours, which is the enough time... so please tell me, that is it the error or what is it,,,

why it is taking so much time...????

from
Lucky
email: ajaonchat@yahoo.com
 
Old 07-31-2008, 02:44 AM   #4
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Question My Machine Specs...!!!

Hi,
Dear MS3FGX bellow is the machine on which I'm trying...

CPU: 1.8 Ghz
RAM: 1 GB
and i think it is the enough specs for compiling the binutils.

and have'nt got any error before and/or during the compilation...

Now please tell me what i have to do, is this any error, that it take so much time...???

and
 
Old 07-31-2008, 04:04 AM   #5
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Arrow The Steps i have performed to compile the binutils-2.17

Hi,

Dear tanushreevk i have performed the following steps...

1. first i have copy the binutils-2.17.tar.bz2 package to my source folder.
2. extract the files "tar xf binutils-2.17.tar.bz2"
3. cd binutils-2.17
4. make


after the above step # 4, the compilation starts, but its seems like a infinite loops, because it takes more the 2 Hrs...

Now please suggest any suitable solution for this issue...

Thanx!!!

from
Lucky
email: ajaonchat@yahoo.com
 
Old 07-31-2008, 04:22 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Did you run the configure step, before running make? Can you post some lines of the make output, in particular at the point it loops. Thanks.
 
Old 07-31-2008, 06:47 AM   #7
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Unhappy i got the Following Loop

Dear colucix i have run the ./configure before running the make.

but the "make" takes very long time more then 5 Hrs, its seems like a infinite loop...

i have stopped the loop by applying CTRL+C

and i have copied the part from my terminal, following is the part that i have copied from my Terminal...


==========================================================

creating Makefile
make: Warning: File `../binutils-2.17/Makefile.in' has modification time 2e+08 s in the future
CONFIG_SHELL="/bin/sh" /bin/sh ./config.status --recheck
running /bin/sh ../binutils-2.17/configure --prefix=/tools--disable-nls --disable-werror --no-create --no-recursion
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc -B/usr/bin/
checking whether the C compiler (gcc -B/usr/bin/ ) works... yes
checking whether the C compiler (gcc -B/usr/bin/ ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc -B/usr/bin/ accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for expect... no
checking for runtest... no
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) /usr/bin/ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... no
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for ar... no
checking for as... no
checking for dlltool... no
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for ld... no
checking for lipo... no
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for nm... no
checking for objdump... no
checking for ranlib... no
checking for strip... no
checking for windres... no
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... just compiled
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target ld... just compiled
checking where to find the target lipo... host tool
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status

creating Makefile
make: Warning: File `../binutils-2.17/Makefile.in' has modification time 2e+08 s in the future
CONFIG_SHELL="/bin/sh" /bin/sh ./config.status --recheck
running /bin/sh ../binutils-2.17/configure --prefix=/tools--disable-nls --disable-werror --no-create --no-recursion
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc -B/usr/bin/
checking whether the C compiler (gcc -B/usr/bin/ ) works... yes
checking whether the C compiler (gcc -B/usr/bin/ ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc -B/usr/bin/ accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for expect... no
checking for runtest... no
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) /usr/bin/ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... no
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for ar... no
checking for as... no
checking for dlltool... no
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for ld... no
checking for lipo... no
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for nm... no
checking for objdump... no
checking for ranlib... no
checking for strip... no
checking for windres... no
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... just compiled
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target ld... just compiled
checking where to find the target lipo... host tool
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating Makefile
make: *** Deleting file `Makefile'
make: *** [Makefile] Error 1


==========================================================
 
Old 07-31-2008, 06:57 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
make: Warning: File `../binutils-2.17/Makefile.in' has modification time 2e+08 s in the future
This is the problem which triggers the "infinite loop". Look at the timestamp of the installation files if one or more (or all) of them are in the future you can touch them and try to compile again. Unless it is a problem with your system clock: does it display the correct time and date?
 
Old 09-12-2008, 07:00 AM   #9
willz06jw
LQ Newbie
 
Registered: Apr 2007
Distribution: Bodhi Linux
Posts: 13

Rep: Reputation: 2
I am having the same problem -- I think because my CMOS battery is dead -- do i need to change the battery to continue with the installation?

Thanks,
Will
 
Old 09-13-2008, 01:19 AM   #10
luckybtn
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Lightbulb CMOS bettery problem!!!

Yes,

you are ri8 that this is the CMOS bettery problem, and i have the same problem, and i have changed my CMOS bettery and now i have successfuly compiled the kernel.

and Congrats to me that i have successfuly created my own Linux from scratch. and i have names it LMLinux.

so i suggest you to change ur CMOS bettery, because time stamp this compiling have the great role. so,


HAVE A NICE TIME with your LFS.


from

~*Lucky*~
 
  


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
glibc-2.7: make goes into infinite loop rl92694 Linux - Software 4 06-30-2008 10:13 AM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 07:38 AM
How do I make a cron job run "every two weeks"? Seventh Linux - Newbie 12 01-13-2006 11:55 AM
Error messages show up after run "make all" cynth33_2000 Linux - Networking 0 12-13-2003 08:56 AM
Infinite "HANG" during CD burn fixation process! ethereal Linux - Software 2 11-12-2003 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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