Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Oct 2011 16:53:39 -0700
From:      Ali Mashtizadeh <mashtizadeh@gmail.com>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: x11/nvidia-driver / Compilation has failed
Message-ID:  <CAFL8=tggOy02ot-3FsQM4TfPhPAerz3XikNk_bcqyNvbE=goLg@mail.gmail.com>
In-Reply-To: <CACdU%2Bf9AHmJvTmk=B5D9QLaSwpCc7=58uou8xTo%2BwWkAs5QThw@mail.gmail.com>
References:  <4e4ab684.0c4c970a.68e8.6846SMTPIN_ADDED@mx.google.com> <9A6F7C9D-32D8-4387-BB03-B11CB0A91BFA@gmail.com> <CAGH67wS=KgH19CaQMFKaDxN%2BFB4n-05fwyZo_mTdt-o5vSsK-A@mail.gmail.com> <20110829.214640.1568838937885804931.ken@tydfam.jp> <CABzXLYORe5HpJQq%2BUCtZ3OfSQpBAuWTeLUX0yXvAVzk5QXp6jw@mail.gmail.com> <20110831124126.GB82908@FreeBSD.org> <CAFL8=tjnhGjg%2BUh4TCx65nLtqjHzhUzg4deqdF5ei-Gf6u6GOg@mail.gmail.com> <CACdU%2Bf_8V7geBq3mjgN3Ak4vJjqz0dC6X08Lpaxy9om%2BwxC-Zg@mail.gmail.com> <CAFL8=thKpYkbhWJJgOqvS%2B-fdb0jNQo2LysQghWZf1ASLTFF4g@mail.gmail.com> <CACdU%2Bf9AHmJvTmk=B5D9QLaSwpCc7=58uou8xTo%2BwWkAs5QThw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hmm it seemed to be reading from a random other source tree because I
had deleted /usr/src, but /usr/src-8 and /usr/src-9 where present.
When I moved src-9 to src the build worked perfectly. I think that
took care of the linux issue as well. Sorry for the spam. All these
flags you mentioned will come in handy from now on so I can use those
to avoid this issue.

Thanks,
~ Ali

On Wed, Oct 5, 2011 at 5:47 PM, Scot Hetzel <swhetzel@gmail.com> wrote:
> On Wed, Oct 5, 2011 at 4:43 PM, Ali Mashtizadeh <mashtizadeh@gmail.com> w=
rote:
>> On Wed, Oct 5, 2011 at 2:27 PM, Scot Hetzel <swhetzel@gmail.com> wrote:
>>> On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh <mashtizadeh@gmail.com>=
 wrote:
>>>> Is there any reason I should still be hitting this bug when building
>>>> on 9-STABLE? With Linux compatibility disabled I can build the driver,
>>>> but the kernel refuses to load it saying it's incompatible with my
>>>> kernel version.
>>>>
>>> Was your kernel built from the same version of /usr/src, or have you
>>> updated the source (/usr/src) since you last rebuilt the kernel.
>>>
>>> If you updated the source, then you need to rebuild the kernel from
>>> those updated sources (should also build/installworld).
>>>
>
>> Yes, I did that just before. I'll try buildkernel and installkernel
>> again but I know havn't updated the tree. Could there be an issue
>> since I built it from the directory /usr/src-9?
>>
>
> Do you also have a /usr/src directory?
>
> If you do, then the port is using the wrong kernel source. =C2=A0You'll
> need to set SRC_BASE to /usr/src-9 when building the port.
>
> cd /usr/ports/x11/nvida-driver
> make deinstall ; make clean ; make install -DSRC_BASE=3D/usr/src-9
>
> Then you should be able to load the kernel module.
>
> Scot
>



--=20
Ali Mashtizadeh
=D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFL8=tggOy02ot-3FsQM4TfPhPAerz3XikNk_bcqyNvbE=goLg>