I just emerge sync'd and emerge updated. This fails when trying to update svgalib, with the following error message: [...] Building modules, stage 2. MODPOST /bin/sh: line 1: scripts/modpost: No such file or directory make[2]: *** [__modpost] Error 127 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.7-gentoo-r13' make: *** [default] Error 2 !!! ERROR: media-libs/svgalib-1.9.19-r1 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! Failed to build kernel module! Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge --update svgalib 3.
have you built your kernel in /usr/src/linux/ ?
That was the problem! /usr/src/linux was pointing to kernel source I hadn't built yet. Thanks.