Re: compiler seems to hang during compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David writes:
 > 
 >   I am trying to build gcc 4.1.1 on an OLD laptop that I have.
 > It's been taking days for this to work (I need it so I can build
 > the driver wrapper for my wireless card).  it seems to hang when it
 > tries to build insn-attrtab.o during the stage 2 build.  it's been
 > taking a relatively long time.  But it doesn't exactly freeze, I
 > can easily hit ^C and it interrupts cleanly and ps reports that
 > it's running.  Is this file known to take a long time to compile?

Yes.

 > am I missing something?

How long did you wait?  On my box, compiling insn-attrtab.o takes 90s
of CPU and 450 Mbytes of memory.  This is on a AMD 64 X2 4800+, which
is by any standards a very fast desktop computer.  I'm not sure of the
exact numbers, but I guess it's about 50 times as fast as a desktop
computer ten years ago.

Also, you might be running out of memory.  

 > 
 > I  am running Linux 2.6.18, and I bui9lt it using:
 > make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
 > -fno-implicit-templates' bootstrap-lean
 > 
 > anyone have any ideas?

run 'top -i' during the build.  See what it says about CPU load.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux