Gentoo Archives: gentoo-amd64

From: Miguel Filipe <miguel.filipe@×××××.com>
To: gentoo-amd64@l.g.o
Cc: Richard Fish <bigfish@××××××××××.org>
Subject: Re: [gentoo-amd64] nvidia-kernel doesn't emerge: thinks I have rivafb on my kernel.
Date: Wed, 08 Mar 2006 01:38:38
Message-Id: f058a9c30603071736v37af7dc9xda0b43aedb9e12fa@mail.gmail.com
In Reply to: Re: [gentoo-amd64] nvidia-kernel doesn't emerge: thinks I have rivafb on my kernel. by Richard Fish
1 Hi richard, sorry for the big delay... I just came around to this problem now...
2
3 Sorry for mailing you directly, but since you were really helpfull I'm
4 trying once again a helpfull hand of yours :D
5
6 On 2/7/06, Richard Fish <bigfish@××××××××××.org> wrote:
7 > On 1/4/06, Miguel Filipe <miguel.filipe@×××××.com> wrote:
8 > > Hi ppl,
9 > >
10 > > I cannot emerge nvidia-kernel because it thinks:
11 > > "Your kernel was configured to include rivafb support!"
12 > > this is what emerge complains about:
13 >
14 > <snip>
15 >
16 > > I think its thinking IPV6_PRIVACY which contains the string RIVA, is FB_RIVA.
17 >
18 > The detection in 8178 is not so simple to be confused by IPV6_PRIVACY.
19 > The code that does the detection is:
20 >
21 > rivafb_sanity_check)
22 > #
23 > # Check if the kernel was compiled with rivafb support. If so, then
24 > # exit, since our driver no longer works with rivafb.
25 > #
26 > RET=1
27 > VERBOSE=$6
28 > FILE="linux/autoconf.h"
29 >
30 > if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then
31 > #
32 > # We are looking at a configured source tree; verify
33 > # that its configuration doesn't include rivafb using
34 > # a compile check.
35 > #
36 > echo "#include <linux/autoconf.h>
37 > #ifdef CONFIG_FB_RIVA
38 > #error CONFIG_FB_RIVA defined!!
39 > #endif
40 > " > conftest$$.c
41 >
42 > $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
43 > rm -f conftest$$.c
44 >
45 > if [ -f conftest$$.o ]; then
46 > rm -f conftest$$.o
47 > RET=0
48 > fi
49 > else
50 > CONFIG=$HEADERS/../.config
51 > if [ -f $CONFIG ]; then
52 > if [ -z "$(grep "^CONFIG_FB_RIVA=y" $CONFIG)" ]; then
53 > RET=0
54 > fi
55 > fi
56 > fi
57 >
58 > What this code does is:
59 >
60 > if /usr/src/linux/include/linux/autoconf.h exists, it tries to compile
61 > a small program to detect if CONFIG_FB_RIVA is defined there. If it
62 > is defined there, the detection fails.
63 >
64 > If /usr/include/linux/autoconf.h does not exist, it greps the
65 > /usr/src/linux/.config file for CONFIG_FB_RIVA.
66 >
67 > So it looks initially like your .config and autoconf.h files do not
68 > agree. I'm not sure how that happens, since the autoconf.h file
69 > should be created by saving the configuration from make
70 > menuconfig/xconfig/et al. It would not be updated if you edited your
71 > .config by hand though!
72 >
73
74 I had the IPV6 privacy thing removed by hand.. but I now ran make
75 oldconfig and disabled all the possible problematic settings..
76
77 I just tried emerge nvidia-kernel once again.. the problem persists:
78 -----
79 " * Preparing nvidia module
80 Your kernel was configured to include rivafb support!"
81 -----
82
83 > Maybe you can do an "ls -l /usr/src/linux/.config
84 > /usr/src/linux/include/linux/autoconf.h" and post the results?
85 >
86
87 here are the results:
88 feynman linux # ls -l /usr/src/linux/.config
89 -rw-rw---- 1 root root 39049 Mar 8 01:31 /usr/src/linux/.config
90 feynman linux # ll /usr/src/linux/include/linux/autoconf.h
91 -rw-rw---- 1 root root 43082 Mar 8 01:31
92 /usr/src/linux/include/linux/autoconf.h
93
94 I do not know wha you are looking for, but I have allready disabled
95 ipv6 privacy and certified that nvidiafb and riva_fb aren't enabled.
96 for instance:
97 feynman linux # fgrep RIVA /usr/src/linux/include/linux/autoconf.h
98 #undef CONFIG_IPV6_PRIVACY
99 #undef CONFIG_FB_RIVA
100 feynman linux # fgrep NVIDIA /usr/src/linux/include/linux/autoconf.h
101 #undef CONFIG_FB_NVIDIA
102
103
104 please help :D
105
106 > -Richard
107 >
108 > --
109 > gentoo-amd64@g.o mailing list
110 >
111 >
112
113
114 --
115 Miguel Sousa Filipe
116
117 --
118 gentoo-amd64@g.o mailing list