LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Modpost Error when Emerging x11-drm (https://www.linuxquestions.org/questions/linux-software-2/modpost-error-when-emerging-x11-drm-521307/)

nisgar2k 01-20-2007 09:18 PM

Modpost Error when Emerging x11-drm
 
Hi,

Im getting errors building the DRM modules. The error appears to be happening due to missing files:

/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [___modpost] Error 127


The stack trace later on is:

!!! ERROR: x11-base/x11-drm-20060609 failed.
Call stack:
ebuild.sh line 1546: Called dyn_compile
ebuild.sh line 937: Called src_compile
x11-drm-20060609.ebuild, line 111: called die_error
x11-drm-20060609.ebuild, line 235: called die

The laptop has a SIS650 integrated graphics card if that is any help. Please help, I don't have a clue how to get around this. Fairly new to gentoo and linux in general, so good explained instructions would be appreciated so I understand what is going on (am always trying to learn more :) )

Cheers
Nick Ford

Matir 01-20-2007 09:24 PM

Does /lib/modules/`uname -r`/build/scripts/mod/modpost exist? Did you maybe "make clean" after building your kernel?

nisgar2k 01-20-2007 09:46 PM

Hi,

In /lib/modules/2.6.18-gentoo-r6/build/scripts/mod I have the following files

Makefile empty.c file2alias.c mk_elfconfig.c modpost.c modpost.h sumversion.c

Im a bit of a noob ... i used genkernel and i assume by default that does a 'make clean' doesn't it. It appears whatever modpost is it isn't built. What is modpost anyhow?

I tried running the make Makefile, but it tells me there is nothing to be done for it.

Any ideas?

Matir 01-20-2007 11:16 PM

go to the top level build directory and try running "make modules", and then try the emerge again. If this fixes things, you may want to submit a bug to bugs.gentoo.org

nisgar2k 01-21-2007 05:27 AM

Thanks that worked. Well it all compiled fine but i do have another couple of questions.

1. At the end it says Updating module dependencies for 2.6.18-gentoo-r6, after this it has a region with *s that are yellow (im guessing they mean a warning has been generated?) but this message states that:

"/lib/modules/2.6.18-gentoo-r6/build/System.map not found
You must manually update the kernel module dependencies using depmod"

Then it states its adding the module to moduledb with a green * next to it which im guessing means it was fine.

So my question is how do I update the kernel module dependencies, quite frankly that looks really scary to me, I dont even know which ones to update, how do i even tell?

2. At the end it states 6 config files need updating in /etc. It doesn't tell me which ones or what to update, so how do I find this sort of information out?

3. How did you identify that was the way to fix it, did you look at the physical make file or is it ebuild (im guessing they are similar things)?


Many thanks for the help
Nick Ford

Oh and you mentioned about logging a bug, where do i log it to?


All times are GMT -5. The time now is 03:56 PM.