|
楼主 |
发表于 2002-8-21 21:48:35
|
显示全部楼层
[root@localhost NVIDIA_kernel-1.0-2960]# make
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.
If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
[root@localhost NVIDIA_kernel-1.0-2960]#
------------------------------------
make了以后就是这个样子,如果rebuild src.rpm包的话是下面的样子:
---------------------------------------
[root@localhost VideoCard]# rpm --rebuild NVIDIA_kernel-1.0-2960.src.rpm
Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf NVIDIA_kernel-1.0-2960
+ /bin/gzip -dc /usr/src/RPM/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.0
++ echo 4.0
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.0
++ awk -F . '{print $2;}'
+ RPMMINOR=0
++ echo 4.0
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 0 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.53579: [: too many arguments
+ make NVdriver
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.
If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.3-20mdk
+ TARGET_KERNEL=2.4.3-20mdk
+ '[' -d /lib/modules/2.4.3-20mdk/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.3-20mdk/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.3-20mdk/kernel/drivers/video
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.3-20mdk/kernel/drivers/video
install: NVdriver: No such file or directory
Bad exit status from /var/tmp/rpm-tmp.53579 (%install)
[root@localhost VideoCard]#
----------------------------------------
rebuild NVIDIA_GLX-1.0-2960.src.rpm的时候,都没有这个情况,很顺利的就好了!
NVIDIA_GLX-1.0-2960.i686.rpm |
|