On Wednesday 18 April 2007 16:39 pm, you wrote: > > Is there any reason that a "make modules_install" has to modify files in > > the source tree? > > This should not happen. (I do not know the root_squash option but that > should not matter). > Can you please try: > make V=1 modules_install > and post the output.
Oops, it turns out the problem was actually occurring during "make modules" not "make modules_install". I'm calling kbuild through some autoconf generated Makefiles, and autoconf always wants the "install" target to depend on the "all" target. This results in the kernel's "make modules" getting re-run as root before "make modules_install". This fails due to the .tmp_versions and similar getting unconditionally rebuilt during "make modules" (output attached). I've worked around it by having the autoconf make all target ignore errors from the invocation of the kernel's "make modules". -- Frank
make: Entering directory `/usr/src/linux-headers-2.6.18-4-686' test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions rm -f /home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/* rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/agilent_82350b.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/agilent_82357a.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/cb7210.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/cec_gpib.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/gpib_common.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/hp82335.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/hp_82341.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/ines_gpib.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/nec7210.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/ni_usb_gpib.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/pc2_gpib.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/tms9914.mod': Permission denied rm: cannot remove `/home/fhess/svn/linux-gpib/linux-gpib/drivers/gpib/.tmp_versions/tnt4882.mod': Permission denied make: *** [crmodverdir] Error 1 make: Leaving directory `/usr/src/linux-headers-2.6.18-4-686'
pgpG5JBMUDyRh.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel