View previous topic :: View next topic |
Author |
Message |
mkp n00b

Joined: 27 Oct 2016 Posts: 8
|
Posted: Thu Oct 27, 2016 12:22 pm Post subject: Kernel 4.8.4 and error while make menuconfig. |
|
|
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 |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 10012 Location: almost Mile High in the USA
|
Posted: Thu Oct 27, 2016 3:05 pm Post subject: |
|
|
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 |
|
 |
mkp n00b

Joined: 27 Oct 2016 Posts: 8
|
Posted: Fri Oct 28, 2016 6:36 am Post subject: |
|
|
total used free shared buffers cached
Mem: 3131308 1432980 1698328 0 583128 30204
-/+ buffers/cache: 819648 2311660
Swap: 3999996 0 3999996 |
|
Back to top |
|
 |
wrc1944 Advocate

Joined: 15 Aug 2002 Posts: 3464 Location: Gainesville, Florida
|
Posted: Sun Oct 30, 2016 12:14 pm Post subject: |
|
|
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 |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 10012 Location: almost Mile High in the USA
|
Posted: Sun Oct 30, 2016 5:16 pm Post subject: |
|
|
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 |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Oct 30, 2016 8:37 pm Post subject: |
|
|
Been messing with ulimits or vm.overcommit_memory? |
|
Back to top |
|
 |
|