Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

nvidia-drivers-100.14.23 - error: too many arguments - kmem

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
kEiNsTeiN
Guru
Guru
User avatar
Posts: 361
Joined: Fri Apr 29, 2005 2:21 am
Location: Germany

nvidia-drivers-100.14.23 - error: too many arguments - kmem

  • Quote

Post by kEiNsTeiN » Tue Jan 15, 2008 4:16 pm

hi!

tried patching the hell out of this, got error: too many arguments to function 'kmem_cache_create'

used this patch (I modified it for .23):

Code: Select all

--- NVIDIA-Linux-x86-100.14.23-pkg1/usr/src/nv/nv-linux.h        2008-01-15 02:25:51.000000000 +0100
+++ NVIDIA-Linux-x86-100.14.23-pkg1-fixed/usr/src/nv/nv-linux.h  2008-01-15 02:25:51.000000000 +0100
@@ -534,7 +534,7 @@
 #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type)            \
     {                                                           \
         kmem_cache = kmem_cache_create(name, sizeof(type),      \
-                        0, 0, NULL, NULL);                      \
+                        0, 0, NULL);                            \
     }
 #elif defined(NV_KMEM_CACHE_CREATE_5_PRESENT)
 #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type)            \


--- NVIDIA-Linux-x86-100.14.23-pkg1/usr/src/nv/nv-linux.h        2008-01-15 02:25:51.000000000 +0100
+++ NVIDIA-Linux-x86-100.14.23-pkg1-fixed/usr/src/nv/nv-linux.h  2008-01-15 02:25:51.000000000 +0100
@@ -547,7 +547,7 @@
 #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type)            \
     {                                                           \
         kmem_cache = kmem_cache_create(name, sizeof(type),      \
-                        0, 0, NULL, NULL);                      \
+                        0, 0, NULL);                            \
     }
 #endif
(yeah, I messed with the patch file, but it still works...)

so far so good. now I'm getting different error:

Code: Select all

In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c:26:
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:546:2: warning: #warning "conftest.sh failed, assuming kmem_cache_create(6)!"
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c: In function 'os_set_mlock_capability':
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c:1339: error: 'struct task_struct' has no member named 'rlim'
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 *
 * ERROR: x11-drivers/nvidia-drivers-100.14.23 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 3496:  Called linux-mod_src_compile
 *             environment, line 2586:  Called die
 * The specific snippet of code:
 *               emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || diefunc "$FUNCNAME" "$LINENO" "$?" "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}.";
 *  The die message:
 *   Unable to make  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.24-rc7-zen2/build clean module.

Code: Select all

localhost nvidia-drivers # uname -a
Linux localhost 2.6.24-rc7-zen2 #4 SMP PREEMPT Tue Jan 15 01:24:16 CET 2008 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
oh, and I applied http://forums.gentoo.org/viewtopic-p-46 ... ml#4644431 at the very beginning, otherwise it wouldn't work at all. damn. super-annoying.

ideas?

ps: just noticed that the patch from this forum (the link 3 lines above this) is vor Xen sources.. but I have Zen sources.... thaught zen-sources were the successor auf kamikaze??? hmmm have been away for too long...

pps:

Code: Select all

# gcc-config -c
i686-pc-linux-gnu-4.3.0-alpha20080111
Top
Post Reply
1 post • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic