Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 4.8.4 and error while make menuconfig.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mkp
n00b
n00b


Joined: 27 Oct 2016
Posts: 8

PostPosted: Thu Oct 27, 2016 12:22 pm    Post subject: Kernel 4.8.4 and error while make menuconfig. Reply with quote

Hi,

I have a Gentoo box and i want to install new kernel. Now i use 3.6 and i want to upgrade to 4.8 but i receive error:

make[1]: *** virtual memory exhausted. Stop.
make: *** [menuconfig] Error 2

The machine is a VM Player with 3gb memory and 4gb swap file. I tried kernel 3.19 but the error is:

scripts/Makefile.host:119: *** missing separator. Stop.
make: *** [menuconfig] Error 2

What can i search for? How to resolve the problem?

Thanks.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10012
Location: almost Mile High in the USA

PostPosted: Thu Oct 27, 2016 3:05 pm    Post subject: Reply with quote

Well, the first thing to check is if you're really out of memory or not?
Run 'free' and see how much memory you have left.

If you truly did run out of memory, it could cause both of these issues. Might need to look a few lines upwards on the 3.19 case, the OOM error may have shown up earlier and caused that later error.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mkp
n00b
n00b


Joined: 27 Oct 2016
Posts: 8

PostPosted: Fri Oct 28, 2016 6:36 am    Post subject: Reply with quote

total used free shared buffers cached
Mem: 3131308 1432980 1698328 0 583128 30204
-/+ buffers/cache: 819648 2311660
Swap: 3999996 0 3999996
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3464
Location: Gainesville, Florida

PostPosted: Sun Oct 30, 2016 12:14 pm    Post subject: Reply with quote

Look at the size of /var/tmp/portage. It might be huge if you've never checked it and cleaned it out.

If it is, do:
Code:
rm -rfv /var/tmp/portage/*


If you are using up all your RAM, you'd be going into swap conditions all the time. Not an optimal condition.

In any case, 3gb RAM memory and 4gb swap file are not enough to do very much of anything.

Another option is to weed out anything in your kernel config file you don't need for your specific hardware.
No use in compiling hundreds of items you never have use for.

Also, clean out your distfiles cache with eclean. (read up on it first- you want to set the right flags so as not to remove sources for currently installed files in case you need a reinstall).

Or better yet, put the distfiles directory on another partition and point to it in your make.conf file.

Check the size of log files- they can get huge over time if you don't use any automatic log size management method.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.40-r5, gcc-14
kernel-6.14.2 USE=experimental python3_12.7-final-0


Last edited by wrc1944 on Mon Oct 31, 2016 3:20 pm; edited 2 times in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10012
Location: almost Mile High in the USA

PostPosted: Sun Oct 30, 2016 5:16 pm    Post subject: Reply with quote

something weird going on. I readily can build kernels with 2GB RAM, and less.

If OP was using tmpfs, the utilization should show up in the buffers memory and should show with less memory free. There's 1.4GB free right now and no swap is being used. Ideally should run the 'free' command after the make fails just so that we have a proper picture. What is running on the computer at the same time? Browsing with firefox? DE loaded?

Other than that, perhaps an old buggy gcc? doubt it, but it's a possibility.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Oct 30, 2016 8:37 pm    Post subject: Reply with quote

Been messing with ulimits or vm.overcommit_memory?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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