Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] emerge gentoo-sources failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
slydini
Tux's lil' helper
Tux's lil' helper


Joined: 30 Oct 2002
Posts: 129
Location: Virginia Beach, VA

PostPosted: Sun May 13, 2012 8:51 pm    Post subject: [SOLVED] emerge gentoo-sources failed Reply with quote

So I'm trying to do an install on a fairly old machine that is available so my wife can surf the net. It has a 1.3Ghz P4 processor and only 512Mb of RAM. Just about all the live cds I tried failed to work except for DSL which is so small it finally was usable. So now I'm trying to put gentoo on a single hard drive using LXDE to save on resourses. I got to the section in the manual to install gentoo-sources and it failes with "OSError: [Errno 12] Cannot allocate memory". So now I'm wondering if this machine is too old for gentoo.

Relevant vars in make.conf:
Code:
CFLAGS="-O2 -march=i686 -pipe
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
USE="-bluetooth -qt4 -qt3support"

_________________
_______________________________________
Oh how I love Linux, especially on gentoo.


Last edited by slydini on Wed May 16, 2012 11:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sun May 13, 2012 9:15 pm    Post subject: Reply with quote

two things you can do:

-add plentiful amounts of swap. This will get past the immediate error. Also, remove -pipe from make.conf
OR
-set up a 32bit chroot on your main gentoo machine. chroot into it. set cflags to be appropriate for the P4 (i.e. NOT -march=native). do your package building, compiling, etc. Then tar up this chroot (see the 'custom stage 4' wiki), and transfer it to the P4 machine
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
slydini
Tux's lil' helper
Tux's lil' helper


Joined: 30 Oct 2002
Posts: 129
Location: Virginia Beach, VA

PostPosted: Sun May 13, 2012 10:03 pm    Post subject: Reply with quote

Well I took the -pipe out of CFLAGS and when I checked the memory using "free" command I noticed that the swap wasn't even turned on. I just turned it on and trying the emerge again. It's painfully slow so I can just imagine how long it will take to emerge X11. I didn't really want to do parallel compiling but I might be force to do so.

Unbelievable, the darn computer just locked up again just like when I used the live cd distro's. I'm now starting to think I have a hardware problem. I already changed the ram out and the power supply checks good so maybe the MB or CPU is at fault.
_________________
_______________________________________
Oh how I love Linux, especially on gentoo.
Back to top
View user's profile Send private message
slydini
Tux's lil' helper
Tux's lil' helper


Joined: 30 Oct 2002
Posts: 129
Location: Virginia Beach, VA

PostPosted: Wed May 16, 2012 11:44 pm    Post subject: All fixed now Reply with quote

So the problem I was having is fixed now. It was mostly due to the CPU fan being frozen up which caused overheating. I put a new fan in and Gentoo is now up and running. :D Just need to get X working.
_________________
_______________________________________
Oh how I love Linux, especially on gentoo.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 649
Location: San Diego, CA

PostPosted: Sun Dec 29, 2013 7:37 pm    Post subject: Reply with quote

As for my case, "-pipe" didn't help, but adding more swap certainly did. I've had no problems so far with 256MB RAM and 512MB swap, but I guess the packages are getting bigger now. Thanks for your help.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum