From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-119257-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1PhmNJ-0006c0-54
	for garchives@archives.gentoo.org; Tue, 25 Jan 2011 17:08:13 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4917CE0B52;
	Tue, 25 Jan 2011 17:05:44 +0000 (UTC)
Received: from mail-pv0-f181.google.com (mail-pv0-f181.google.com [74.125.83.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 0B153E0B81
	for <gentoo-user@lists.gentoo.org>; Tue, 25 Jan 2011 17:05:43 +0000 (UTC)
Received: by pvg12 with SMTP id 12so2156691pvg.40
        for <gentoo-user@lists.gentoo.org>; Tue, 25 Jan 2011 09:05:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
         :subject:references:in-reply-to:x-enigmail-version:content-type
         :content-transfer-encoding;
        bh=zMPAjjO6L3M6W0r/V6DVNMBAPfF/oBlw0BFBaBSciwc=;
        b=GxywkNQFE7xtdUF6tPIre+tZL22NDeNxbiniGLOYdYnqcaJhDBaym+8x1mv3xnf3Hj
         E6z4jyrqYV/3pmIPiugsQ25k5NBEt+zEJI+0huZKq3zFKGLO/nn6y/UtPxGD/YmMHLNe
         K729/mcxT8dIh6ma+09goxgCeML4j0NVvov9w=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:x-enigmail-version:content-type
         :content-transfer-encoding;
        b=oPNtMUp1Ut9mIe/Ee9ny6b9gnA0ABZ57DQ204XLCNr50yCLpDtdvVaPrIJKLxq5yIh
         KoI97yaSNp92kNMo6/qS48DXY2srLFNdHhgAwU1oXxpH7+sTeFgX6WJME0St/5IwyZ8B
         QSmHjyLl8PGpdFWF93mEvKxBQSqDcSAQRUMN8=
Received: by 10.142.139.3 with SMTP id m3mr5471886wfd.355.1295975143250;
        Tue, 25 Jan 2011 09:05:43 -0800 (PST)
Received: from [192.168.25.20] (173-8-195-225-Oregon.hfc.comcastbusiness.net [173.8.195.225])
        by mx.google.com with ESMTPS id b11sm19072550wff.9.2011.01.25.09.05.42
        (version=SSLv3 cipher=RC4-MD5);
        Tue, 25 Jan 2011 09:05:42 -0800 (PST)
Message-ID: <4D3F02E5.6040905@gmail.com>
Date: Tue, 25 Jan 2011 09:05:41 -0800
From: Bill Longman <bill.longman@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110119 Lightning/1.0b3pre Lanikai/3.1.7
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] invalid argument when trying to modprobe nvidia
 module
References: <5309.1295145276@ccs.covici.com> <AANLkTinvLMNUXkdYqNwNWJgoz3_LfaS5pmemmvO7BPRt@mail.gmail.com> <6203.1295148341@ccs.covici.com> <201101160918.06073.peter@humphrey.ukfsn.org>
In-Reply-To: <201101160918.06073.peter@humphrey.ukfsn.org>
X-Enigmail-Version: 1.1.2
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 
X-Archives-Hash: fb94f84c9d31cbf8eed07df7cb1b7f45

On 01/16/2011 01:18 AM, Peter Humphrey wrote:
> On Sunday 16 January 2011 03:25:41 covici@ccs.covici.com wrote:
>> Adam Carter <adamcarter3@gmail.com> wrote:
>>> Did you remember to repoint the /usr/src/linux link? IIRC the
>>> module is built to suit whatever kernel that is pointing to. If
>>> its not set correctly you'll need to re-emerge nvidia-drivers.
>>
>> linux is pointing correctly and it was after I emerged the
>> nvidia-drivers that I got the invalid argument.
> 
> You can't emerge nvidia-drivers if /usr/src/linux points to a kernel 
> version other than the currently running one - it complains it can't find 
> a valid kernel config. This means that, after emerging a new kernel 
> version, it's necessary to reboot with the new kernel (and fail to start 
> X) before it's possible to remerge nvidia-drivers to suit the new kernel 
> - you can't do it in advance.
> 
> On this ~amd64 multilib box, 260.19.29 has run trouble-free with gentoo-
> sources 2.6.36-r5, 2.6.36-r6 and 2.6.37. Perhaps your -multilib USE flag 
> is causing trouble.

You can *always* compile any package against your choice of kernel. Just
use "KERNEL_DIR=/usr/src/mykerneldir emerge package". It doesn't have to
be the running kernel or the current kernel.