[pkg-nvidia-devel] Bug#582748: nvidia-kernel-dkms: fails to build module due to missing files
Alexander Heinlein
alexander.heinlein at web.de
Sat May 29 14:35:47 UTC 2010
Hi Andreas,
good news, I found the reason: ccache
So far I don't know why it breaks the installation process. The source
compiles nevertheless, some of the created object files just have the wrong
name. Interestingly, this does not happen on any other source code here.
Also, I have ccache running for a very long time and haven't had problems in
the past, even with the nvidia installer. Maybe you spot the reason in the
given information below, otherwise maybe ccache should be disabled by
setting CCACHE_DISABLE=1 before compiling the source.
> After the failed build, what is the content of /usr/src/modules/nvidia?
> ls -la /usr/src/modules/nvidia
>
I guess you mean /usr/src/modules/nvidia-kernel
ls -la /usr/src/modules/nvidia-kernel
total 24424
drwxr-xr-x 5 root src 4096 May 29 16:07 .
drwxr-xr-x 3 root src 4096 May 23 04:32 ..
-rw-r--r-- 1 root root 0 May 29 16:07 configure-stamp
-rw-r--r-- 1 root src 7317 May 8 05:31 conftest.h
-rwxr-xr-x 1 root src 245 May 8 05:28 conftest.sh
-rw-r--r-- 1 root src 8582 Apr 22 20:49 cpuopsys.h
drwxr-xr-x 4 root src 4096 May 29 16:07 debian
-rw-r--r-- 1 root src 9077 Apr 22 20:49 gcc-version-check.c
-rw-r--r-- 1 root src 4023 May 8 05:28 Makefile
-rw-r--r-- 1 root src 7999 May 29 16:07 Makefile.kbuild
-rw-r--r-- 1 root src 35890 Apr 22 20:49 nvacpi.c
-rw-r--r-- 1 root src 821 Apr 22 20:49 nvacpitypes.h
-rw-r--r-- 1 root src 147669 May 29 16:07 nv.c
-rw-r--r-- 1 root root 58 May 29 16:07 nv_compiler.h
-rw-r--r-- 1 root src 3440 Apr 22 20:49 nv_gvi.c
-rw-r--r-- 1 root root 108660 May 29 16:07 nv_gvi.o
-rw-r--r-- 1 root root 1493 May 29 16:07 .nv_gvi.o.tmp
-rw-r--r-- 1 root src 24805 Apr 22 20:49 nv.h
-rw-r--r-- 1 root src 10168 Apr 22 20:49 nv-i2c.c
-rw-r--r-- 1 root src 75469 Apr 22 20:49 NVIDIA_Changelog
-rw-r--r-- 1 root src 10707596 Apr 22 20:49 nv-kernel.o.i386
-rw-r--r-- 1 root src 13137568 Apr 23 05:40 nv-kernel.o.x86_64
-rw-r--r-- 1 root src 55029 May 29 16:07 nv-linux.h
-rw-r--r-- 1 root src 2974 Apr 22 20:49 nv-memdbg.h
-rw-r--r-- 1 root src 715 Apr 22 20:49 nv-misc.h
-rw-r--r-- 1 root root 299198 May 29 16:07 nv.o
-rw-r--r-- 1 root root 45317 May 29 16:07 .nv.o.cmd
-rw-r--r-- 1 root src 5098 Apr 22 20:49 nvreadme.h
-rw-r--r-- 1 root src 19833 Apr 22 20:49 nv-reg.h
-rw-r--r-- 1 root src 14765 Apr 22 20:49 nvtypes.h
-rw-r--r-- 1 root src 23429 Apr 22 20:49 nv-vm.c
-rw-r--r-- 1 root src 768 Apr 22 20:49 nv-vm.h
-rw-r--r-- 1 root src 6023 Apr 22 20:49 nv-xen.h
-rw-r--r-- 1 root src 9358 Apr 22 20:49 os-agp.c
-rw-r--r-- 1 root src 807 Apr 22 20:49 os-agp.h
-rw-r--r-- 1 root src 32776 Apr 22 20:49 os-interface.c
-rw-r--r-- 1 root src 8836 Apr 22 20:49 os-interface.h
-rw-r--r-- 1 root src 2395 Apr 22 20:49 os-registry.c
-rw-r--r-- 1 root src 113 May 8 05:28 patches.h
drwxr-xr-x 5 root root 4096 May 29 16:07 .pc
-rw-r--r-- 1 root src 1803 Apr 22 20:49 README
-rw-r--r-- 1 root src 1426 Apr 22 20:49 rmil.h
-rw-r--r-- 1 root src 4632 Apr 22 20:49 rmretval.h
-rw-r--r-- 1 root root 26725 May 29 16:07 .tmp_nv.d
-rw-r--r-- 1 root root 26639 May 29 16:07 .tmp_nv_gvi.d
drwxr-xr-x 2 root root 4096 May 29 16:07 .tmp_versions
-rw-r--r-- 1 root src 5105 Apr 22 20:49 xapi-sdk.h
> Now let's try to compile the offending file manually and collect some
> more information (gcc version, environment variables, ...). A small
> shell script is attached, it worked successfully in a pbuilder
> environment similar to your setup:
>
> sh 582748-1.sh
>
Log is attached.
> The following might be interesting, too:
>
> which gcc-4.3
> ls -la /usr/bin/gcc*
$ which gcc-4.3
/usr/lib/ccache/gcc-4.3
$ which gcc-4.3 (ccache removed from $PATH)
/usr/bin/gcc-4.3
$ ls -la /usr/bin/gcc*
lrwxrwxrwx 1 root root 7 Mar 14 11:23 /usr/bin/gcc -> gcc-4.4
-rwxr-xr-x 1 root root 84752 Jun 19 2009 /usr/bin/gcc-3.4
-rwxr-xr-x 1 root root 194052 Apr 11 17:31 /usr/bin/gcc-4.1
-rwxr-xr-x 1 root root 192284 Jan 18 2009 /usr/bin/gcc-4.2
-rwxr-xr-x 1 root root 209980 May 23 16:56 /usr/bin/gcc-4.3
-rwxr-xr-x 1 root root 216544 May 27 10:47 /usr/bin/gcc-4.4
-rwxr-xr-x 1 root root 16023 Jun 19 2009 /usr/bin/gccbug-3.4
-rwxr-xr-x 1 root root 16280 Apr 11 17:31 /usr/bin/gccbug-4.1
Thanks for your help :)
Regards,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 582748-1.log.gz
Type: application/octet-stream
Size: 4881 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20100529/5a0b17cd/attachment.obj>
More information about the Pkg-nvidia-devel
mailing list