Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Official thread: "zen-sources" - Part IV
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 14, 15, 16, 17  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Moloch
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 293
Location: Albuquerque, NM, US

PostPosted: Wed Aug 06, 2008 2:06 am    Post subject: Reply with quote

ponciarello wrote:
solution for my problem was strange, but now I can finally use newer zens.
I saw this line diffing the dmesg of a 2.6.26-rc8-zen1-hotfix2 and 2.6.26-zen1 with the config I posted, with "Generic IEEE 802.11 Networking Stack (DEPRECATED)" (necessary for the ipw2200 driver) as a module:
Code:
ieee80211_crypt: registered algorithm 'TKIP'

was in the oldest one and not in latest.
so, i thought: "hell, I'm gonna compile it static, wanna see if it doesn't load".
and so it works :D

just for information, i checked (compiling lot of modules for experiment) that toshiba laptop acpi extras doesn't compile e there are problems also with eeepc extras. :)
Thanks... I'm using the ipw2200 driver as well. Compiling "Generic IEEE 802.11 Networking Stack (DEPRECATED)" as builtin seems to do the trick. Also the sub-drivers: WEP, CCMP, TKIP, I think also need to be builtin.

Currently I'm running 2.6.26-zen2.1
_________________
Understanding is a three-edged sword: your side, their side, and the truth. --Kosh
1010011010
Back to top
View user's profile Send private message
are
Apprentice
Apprentice


Joined: 03 Jan 2006
Posts: 188

PostPosted: Wed Aug 06, 2008 9:01 am    Post subject: Reply with quote

rmh3093 wrote:
Tuxonice is in now, give it test and let me know because I cant test it.


I've got it, thanks! Unfortunatelly it doesn't work! Suspends to ram but won't come back into X. Can only hard reboot and I don't see something inside the log.

Best regards
are
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Wed Aug 06, 2008 10:04 am    Post subject: Reply with quote

are wrote:
rmh3093 wrote:
Tuxonice is in now, give it test and let me know because I cant test it.


I've got it, thanks! Unfortunatelly it doesn't work! Suspends to ram but won't come back into X. Can only hard reboot and I don't see something inside the log.

Best regards
are

++ I have the same problem with suspend. Work good on 2.6.26 with tuxonice 3.7a.
Back to top
View user's profile Send private message
are
Apprentice
Apprentice


Joined: 03 Jan 2006
Posts: 188

PostPosted: Wed Aug 06, 2008 3:38 pm    Post subject: Reply with quote

Guys, really I don't like zen-sources anymore. Have been a long time kamikaze fan I really miss Waninkoko. Since Kamikaze changed to zen (with a last really great vipernicus-release) this line never reached the speed and the stability again. 2.6.25 was the last release that worked somewhat but it was as hazzle to get it because of all the ebuild/git/server/overlay issues. Since then either I can't mount crypted disks or it has now hibernate or it won't boot. Speed is gone too.

Sorry to tell: but in my eyes you broke it. Will leave to gentoo-sources with tears in my eyes missing kamikaze!

Proposal to get back the fame:

* kill reiserfs4 as you lose a lot of time for nothing
* put regular ebuilds and changelogs on top of this thread as Waninkoko did
* concentrate on patches that compile flawless without to much hacking around

Nevertheless: thank you for your work. Bye then
are
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Aug 06, 2008 3:52 pm    Post subject: Reply with quote

are wrote:
Guys, really I don't like zen-sources anymore. Have been a long time kamikaze fan I really miss Waninkoko. Since Kamikaze changed to zen (with a last really great vipernicus-release) this line never reached the speed and the stability again. 2.6.25 was the last release that worked somewhat but it was as hazzle to get it because of all the ebuild/git/server/overlay issues. Since then either I can't mount crypted disks or it has now hibernate or it won't boot. Speed is gone too.

Sorry to tell: but in my eyes you broke it. Will leave to gentoo-sources with tears in my eyes missing kamikaze!

Proposal to get back the fame:

* kill reiserfs4 as you lose a lot of time for nothing
* put regular ebuilds and changelogs on top of this thread as Waninkoko did
* concentrate on patches that compile flawless without to much hacking around

Nevertheless: thank you for your work. Bye then
are


concerning reiser4:

have you even tried it out ?
I wouldn't call speed gain, gain in battery runtime, productivity gain, longer harddrive life/less load on harddrives, much more harddrive space, etc. "nothing"

that it can't mount encrypted disks is the kernel's fault ?! (not zen's)

hibernation never really worked for me either before ;)

not booting is a side-effect of it's experimental nature (provided you use rc* releases ;) ), also if you use the kernel-patches / bumps between stable releases and you expect a stable kernel, it's your own fault - they're meant mainly for testing (afaik) :idea:

if you can't handle the git-stuff, ebuilds, etc. just use the most-stable releases provided on zen-sources.org

I won't promise but I noticed a gain in speed & stability starting with .27-rc1 (mostly probably related to linux-next & other testing grounds)

this post isn't meant to be offensive - just to make some things more clearer :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
are
Apprentice
Apprentice


Joined: 03 Jan 2006
Posts: 188

PostPosted: Wed Aug 06, 2008 4:47 pm    Post subject: Reply with quote

kernelOfTruth wrote:
are wrote:
Guys, really I don't like zen-sources anymore. Have been a long time kamikaze fan I really miss Waninkoko. Since Kamikaze changed to zen (with a last really great vipernicus-release) this line never reached the speed and the stability again. 2.6.25 was the last release that worked somewhat but it was as hazzle to get it because of all the ebuild/git/server/overlay issues. Since then either I can't mount crypted disks or it has now hibernate or it won't boot. Speed is gone too.

Sorry to tell: but in my eyes you broke it. Will leave to gentoo-sources with tears in my eyes missing kamikaze!

Proposal to get back the fame:

* kill reiserfs4 as you lose a lot of time for nothing
* put regular ebuilds and changelogs on top of this thread as Waninkoko did
* concentrate on patches that compile flawless without to much hacking around

Nevertheless: thank you for your work. Bye then
are


concerning reiser4:

have you even tried it out ?
I wouldn't call speed gain, gain in battery runtime, productivity gain, longer harddrive life/less load on harddrives, much more harddrive space, etc. "nothing"

that it can't mount encrypted disks is the kernel's fault ?! (not zen's)

hibernation never really worked for me either before ;)

not booting is a side-effect of it's experimental nature (provided you use rc* releases ;) ), also if you use the kernel-patches / bumps between stable releases and you expect a stable kernel, it's your own fault - they're meant mainly for testing (afaik) :idea:

if you can't handle the git-stuff, ebuilds, etc. just use the most-stable releases provided on zen-sources.org

I won't promise but I noticed a gain in speed & stability starting with .27-rc1 (mostly probably related to linux-next & other testing grounds)

this post isn't meant to be offensive - just to make some things more clearer :idea:


Well, as far as i understand the most stable zen is 2.6.26-zen2.1 right? Can't mount crypted volume, but gentoo-sources-2.6.26 does.
Ok, lets test 2.6.27-rc1-zen: it mounts crypted volumes, but doesn't hibernate. I really don't expect a stable kernel but I miss the quality AND performance that kamikaze showed to me.

Btw: Reiserfs - You're absolutely free to do, but nevertheless you ride a dead horse. I've never seen any real numbers that reiserfs beats xfs or jfs in more than one single discipline. Overall jfs and xfs are more reliable and speedy always. Really I don't like to sell a file system, but in my eyes zen is too much reiserfs centered and not focussed to the real issues anymore.

Regards
are
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1159

PostPosted: Wed Aug 06, 2008 5:11 pm    Post subject: Reply with quote

are wrote:
kernelOfTruth wrote:
are wrote:
Guys, really I don't like zen-sources anymore. Have been a long time kamikaze fan I really miss Waninkoko. Since Kamikaze changed to zen (with a last really great vipernicus-release) this line never reached the speed and the stability again. 2.6.25 was the last release that worked somewhat but it was as hazzle to get it because of all the ebuild/git/server/overlay issues. Since then either I can't mount crypted disks or it has now hibernate or it won't boot. Speed is gone too.

Sorry to tell: but in my eyes you broke it. Will leave to gentoo-sources with tears in my eyes missing kamikaze!

Proposal to get back the fame:

* kill reiserfs4 as you lose a lot of time for nothing
* put regular ebuilds and changelogs on top of this thread as Waninkoko did
* concentrate on patches that compile flawless without to much hacking around

Nevertheless: thank you for your work. Bye then
are


concerning reiser4:

have you even tried it out ?
I wouldn't call speed gain, gain in battery runtime, productivity gain, longer harddrive life/less load on harddrives, much more harddrive space, etc. "nothing"

that it can't mount encrypted disks is the kernel's fault ?! (not zen's)

hibernation never really worked for me either before ;)

not booting is a side-effect of it's experimental nature (provided you use rc* releases ;) ), also if you use the kernel-patches / bumps between stable releases and you expect a stable kernel, it's your own fault - they're meant mainly for testing (afaik) :idea:

if you can't handle the git-stuff, ebuilds, etc. just use the most-stable releases provided on zen-sources.org

I won't promise but I noticed a gain in speed & stability starting with .27-rc1 (mostly probably related to linux-next & other testing grounds)

this post isn't meant to be offensive - just to make some things more clearer :idea:


Well, as far as i understand the most stable zen is 2.6.26-zen2.1 right? Can't mount crypted volume, but gentoo-sources-2.6.26 does.
Ok, lets test 2.6.27-rc1-zen: it mounts crypted volumes, but doesn't hibernate. I really don't expect a stable kernel but I miss the quality AND performance that kamikaze showed to me.

Btw: Reiserfs - You're absolutely free to do, but nevertheless you ride a dead horse. I've never seen any real numbers that reiserfs beats xfs or jfs in more than one single discipline. Overall jfs and xfs are more reliable and speedy always. Really I don't like to sell a file system, but in my eyes zen is too much reiserfs centered and not focussed to the real issues anymore.

Regards
are


filesystem is choice. debates have been raving for years but i still feel it's choice and choice alone. i have lost data with every filesystem. so...
zen-sources are experimental. take or leave. anyway if i were in a tight production setup i'd go for a different kernel and just wont blame the zen guys
for being this or that oriented.
...and this is a free world.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Wed Aug 06, 2008 5:20 pm    Post subject: Reply with quote

are wrote:
Well, as far as i understand the most stable zen is 2.6.26-zen2.1 right? Can't mount crypted volume, but gentoo-sources-2.6.26 does.
Ok, lets test 2.6.27-rc1-zen: it mounts crypted volumes, but doesn't hibernate. I really don't expect a stable kernel but I miss the quality AND performance that kamikaze showed to me.


Crypt mounts not working or hibernate not working does not mean the kernel is unstable... hardlocks, oops, segfaults, etc. are signs of instability. Also, please take into account that -rc kernels are probably buggy... also note that in the long -rc process we (zen devs) got bored and started playing with random experimental patches (we never made a release based on these kernels so they should not be counted in your comparison). Now when you say it does not hibernate, do you mean in kernel hibernate or TuxOnIce, because we did not touch in kernel code or the tuxonice code, so if its broke, its broke upstream as is not our fault. If you have been playing around with kernels long enough you will realize that is like a roller-coaster, some are good, some are not.

Maybe what we need to do is start a zen-hardened kernel which is based on 2.6.X.Y kernels...
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
ponciarello
Apprentice
Apprentice


Joined: 22 Jul 2008
Posts: 223
Location: beach of slack

PostPosted: Wed Aug 06, 2008 5:48 pm    Post subject: Reply with quote

that is a great idea, in my opinion.
it will be more appetible to zen-starters as based on stable kernel and for easiness of graphic drivers install too :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Aug 06, 2008 5:51 pm    Post subject: Reply with quote

Quote:
Maybe what we need to do is start a zen-hardened kernel which is based on 2.6.X.Y kernels...


that would really be great :D

having to fix grsecurity patches by hand for every release & testing whether they work with zen-sources at all surely might be easier to do with git :idea:

(you surely remember I did those for some kamikaze, klight and zen-sources :idea: )

welcome to fast + bulletproof kernels :mrgreen: (can't wait to see 2.6.27-hardenedzen / 2.6.27-zenhardened) :P
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Aug 08, 2008 4:58 pm    Post subject: Reply with quote

zen-overlay sun-jdk-1.6.0.07 manifest file needs update.
Filesize must be 71703415 for "jdk-6u7-dlj-linux-amd64.bin". But it is 51577458.
Thus this forces portage to download the file (jdk-6u7-dlj-linux-amd64.bin) over an over again.

I filed a bug report here. But it is overlooked, I guess.
Sorry if here is not the right thread.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Fri Aug 08, 2008 5:04 pm    Post subject: Reply with quote

keenblade wrote:
zen-overlay sun-jdk-1.6.0.07 manifest file needs update.
Filesize must be 71703415 for "jdk-6u7-dlj-linux-amd64.bin". But it is 51577458.
Thus this forces portage to download the file (jdk-6u7-dlj-linux-amd64.bin) over an over again.

I filed a bug report here. But it is overlooked, I guess.
Sorry if here is not the right thread.


fixed
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Aug 08, 2008 6:33 pm    Post subject: Reply with quote

rmh3093 wrote:

fixed

Thanks.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Fri Aug 08, 2008 6:57 pm    Post subject: Reply with quote

I can't compile lirc, anyone has a patch?

Code:
/usr/bin/make -f scripts/Makefile.build obj=/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev                                             
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/. -I/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/. -I/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/../.. -I/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.o /var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c                                                                                   
/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c:52:27: error: asm/semaphore.h: No such file or directory                     
/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c: In function 'lirc_register_plugin':                                         
/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c:406: warning: passing argument 5 of 'device_create' makes pointer from integer without a cast                                                                                                                                                 
make[5]: *** [/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.o] Error 1                                                       
make[4]: *** [_module_/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev] Error 2                                                         
make[4]: Leaving directory `/usr/src/zen-sources'                                                                                                               
make[3]: *** [lirc_dev.o] Error 2                                                                                                                               
make[3]: Leaving directory `/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev'                                                           
make[2]: *** [all-recursive] Error 1                                                                                                                             
make[2]: Leaving directory `/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3/drivers'                                                                     
make[1]: *** [all-recursive] Error 1                                                                                                                             
make[1]: Leaving directory `/var/tmp/paludis/app-misc-lirc-0.8.3-r2/work/lirc-0.8.3'                                                                             
make: *** [all] Error 2                                                                                                                                         

!!! ERROR in app-misc/lirc-0.8.3-r2:
!!! In linux-mod_src_compile at line 4249
!!! Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=   all

!!! Call stack:
!!!    * linux-mod_src_compile (/var/tmp/paludis/app-misc-lirc-0.8.3-r2/temp/loadsaveenv:4249)
!!!    * src_compile (/var/tmp/paludis/app-misc-lirc-0.8.3-r2/temp/loadsaveenv:5329)         
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)                       
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:460)                                   
!!!    * main (/usr/libexec/paludis/ebuild.bash:479)                                         

diefunc: making ebuild PID 19965 exit with error
die trap: exiting with error.

Install error:
  * In program paludis (--show-reasons summary --dl-downgrade warning --show-use-descriptions new --continue-on-failure if-satisfied) -i1 lirc --dl-deps-defaultdiscard:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'app-misc/lirc-0.8.3-r2:0::gentoo':
  * Install error: Install failed for 'app-misc/lirc-0.8.3-r2:0::gentoo'



/edit: this patch here fixes it: http://www.nabble.com/Fix-build-on-2.6.27-td18813057.html

8)
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Fri Aug 08, 2008 7:12 pm    Post subject: Reply with quote

But troubles when inserting lirc-serial:
Code:
lirc_dev: IR Remote Control driver registered, major 61                                                                                               
lirc_serial: auto-detected active low receiver                                                                                                       
lirc_dev: lirc_register_plugin: sample_rate: 0                                                                                                       
BUG: unable to handle kernel NULL pointer dereference at 00000000                                                                                     
IP: [<c025369e>] vsnprintf+0x41e/0x452                                                                                                               
*pde = 00000000                                                                                                                                       
Oops: 0000 [#1]                                                                                                                                       
Modules linked in: lirc_serial(+) lirc_dev af_packet snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_emu10k1 snd_rawmidi snd_ac97_codec ac97_bus snd_pcm snd_seq_device snd_timer snd_page_alloc snd_util_mem snd_hwdep snd uhci_hcd ohci_hcd intel_agp nvidia(P) agpgart                                                                                                                     

Pid: 15287, comm: modprobe Tainted: P          (2.6.27-rc1-zen0-01227-g3b02066 #2)
EIP: 0060:[<c025369e>] EFLAGS: 00010216 CPU: 0                                   
EIP is at vsnprintf+0x41e/0x452                                                   
EAX: 00000000 EBX: ee691a00 ECX: 00000000 EDX: 00000014                           
ESI: ee691a8c EDI: d4469e8c EBP: 03d00000 ESP: d4469d34                           
 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068                                     
Process modprobe (pid: 15287, ti=d4468000 task=cb071a80 task.ti=d4468000)         
Stack: 00000014 ee691a8c f6647740 00253238 ee691aa0 ee6066a0 00000001 00000000   
       c024f57c 00000000 d4469d98 d4469d98 c05256b8 00000007 00000001 00000000   
       ffffff81 00000001 00000000 00000182 a70b54e2 00000182 c0517578 c0115eef   
Call Trace:                                                                       
 [<c024f57c>] idr_get_empty_slot+0x12a/0x201
 [<c0115eef>] place_entity+0x7f/0xbc
 [<c01174a5>] check_preempt_wakeup+0xe6/0xee
 [<c0116de4>] __wake_up+0xf/0x15
 [<c011969f>] wake_up_klogd+0x2b/0x2d
 [<c02ab099>] device_create_vargs+0x71/0x99
 [<c02ab0e5>] device_create+0x24/0x28
 [<f9b08e40>] lirc_register_plugin+0x2ca/0x3a2 [lirc_dev]
 [<f98e5291>] init_module+0x291/0x2a4 [lirc_serial]
 [<c0131abf>] sys_init_module+0x11ee/0x134f
 [<c029dcfa>] pty_write+0x2e/0x39
 [<c029838a>] tty_put_char+0x22/0x25
 [<f9b08b76>] lirc_register_plugin+0x0/0x3a2 [lirc_dev]
 [<c01028dd>] sysenter_do_call+0x12/0x25
 [<c0390000>] pci_scan_single_device+0x376/0x42d
 =======================
Code: f9 1f ff 74 24 14 ff 74 24 1c 55 ff 74 24 18 51 52 8b 54 24 28 89 f0 e8 62 f5 ff ff 89 c6 89 df 83 c4 18 ff 44 24 1c 8b 44 24 1c <8a> 00 84 c0 0f 85 4f fcff ff 83 3c 24 00 74 13 3b 74 24 10 73
EIP: [<c025369e>] vsnprintf+0x41e/0x452 SS:ESP 0068:d4469d34
---[ end trace 72abba41992673d3 ]---

_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sat Aug 09, 2008 11:41 am    Post subject: Reply with quote

Hello,

I'm trying to emerge nvidia and virtualbox modules, but no luck.
My zen repository is up to date (at least that is what "git pull" command says).
Error logs:

Code:

>>> Building (1 of 3) app-emulation/virtualbox-modules-1.6.2
 * vbox-kernel-module-src-1.6.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code                         
 * Found kernel source directory:                                             
 *     /usr/src/linux                                                         
 * Found sources for kernel version:                                           
 *     2.6.27-rc1-zen0                                                         
>>> Unpacking source...                                                       
>>> Unpacking vbox-kernel-module-src-1.6.2.tar.gz to /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work                                       
>>> Source unpacked.                                                           
>>> Compiling source in /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv ...                                                       
 * Preparing vboxdrv module                                                     
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv SRCROOT=/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv modules                       
make[1]: Entering directory `/usr/src/zen-sources'                             
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
        echo;                                                           \       
        echo "  ERROR: Kernel configuration is invalid.";               \       
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \                                                               
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \                                                                       
        echo;                                                           \       
        /bin/false)                                                             
mkdir -p /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/.tmp_versions ; rm -f /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/.tmp_versions/*                                       
make -f scripts/Makefile.build obj=/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv                                                 
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/ -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.c                               
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/.SUPDRVShared.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/ -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDRVShared)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRVShared.o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRVShared.c                                                 
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/.alloc-r0drv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/ -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(alloc_r0drv)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/alloc-r0drv.o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/alloc-r0drv.c                                   
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/.initterm-r0drv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/ -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(initterm_r0drv)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/initterm-r0drv.o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/initterm-r0drv.c                       
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/.mp-r0drv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/linux/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/ -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/include -I/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mp_r0drv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.o /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c     
In file included from /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRVShared.c:35:                                           
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRV.h:99:30: error: asm/semaphore.h: No such file or directory                 
In file included from /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.c:35:                                     
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRV.h:99:30: error: asm/semaphore.h: No such file or directory                 
make[2]: *** [/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/SUPDRVShared.o] Error 1                                             
make[2]: *** Waiting for unfinished jobs....                                   
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.c: In function 'supdrvOSGipResume':                             
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.c:1331: error: too many arguments to function 'smp_call_function'                                                                               
make[2]: *** [/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/linux/SUPDrv-linux.o] Error 1                                       
In file included from /usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c:35:                             
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/the-linux-kernel.h:68:27: error: asm/semaphore.h: No such file or directory                                                                           
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function 'RTMpOnAll':                             
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c:198: error: too many arguments to function 'on_each_cpu'                                                                             
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function 'RTMpOnOthers':                         
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c:232: error: too many arguments to function 'smp_call_function'                                                                       
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function 'RTMpOnSpecific':                       
/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c:285: error: too many arguments to function 'smp_call_function_single'                                                                 
make[2]: *** [/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv/r0drv/linux/mp-r0drv-linux.o] Error 1                               
make[1]: *** [_module_/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/work/vboxdrv] Error 2                                                     
make[1]: Leaving directory `/usr/src/zen-sources'                               
make: *** [vboxdrv] Error 2                                                     
 * ERROR: app-emulation/virtualbox-modules-1.6.2 failed.                       
 * Call stack:                                                                 
 *               ebuild.sh, line   49:  Called src_compile                     
 *             environment, line 3137:  Called linux-mod_src_compile           
 *             environment, line 2409:  Called die                             
 * The specific snippet of code:                                               
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/usr/src/linux all
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/temp/environment'.

 * Messages for package app-emulation/virtualbox-modules-1.6.2:

 * ERROR: app-emulation/virtualbox-modules-1.6.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3137:  Called linux-mod_src_compile
 *             environment, line 2409:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/usr/src/linux all
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/usr/portage/tmp/portage/app-emulation/virtualbox-modules-1.6.2/temp/environment'.


Code:

>>> Building (1 of 1) x11-drivers/nvidia-drivers-173.14.12
 * NVIDIA-Linux-x86-173.14.12-pkg0.run RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code                         
 * Found kernel source directory:                                             
 *     /usr/src/linux                                                         
 * Found sources for kernel version:                                           
 *     2.6.27-rc1-zen0                                                         
 * Checking for MTRR support ...                                          [ ok ]
 * Checking for SYSVIPC support ...                                       [ ok ]
>>> Unpacking source...                                                         
Creating directory NVIDIA-Linux-x86-173.14.12-pkg0                             
Verifying archive integrity... OK                                               
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.14.12....................................................................................................................................                                   
 * Applying NVIDIA_glx-defines.patch ...                                  [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                 [ ok ]
 * Applying NVIDIA_i2c-hwmon.patch ...                                    [ ok ]
 * Converting NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...                                                [ ok ]
>>> Source unpacked.                                                           
>>> Compiling source in /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0 ...                                 
 * Preparing nvidia module                                                     
NVIDIA: calling KBUILD...                                                       
make CC=i686-pc-linux-gnu-gcc  KBUILD_VERBOSE=1 -C /usr/src/linux M=/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv modules                                                       
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.                                                                               
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
        echo;                                                           \       
        echo "  ERROR: Kernel configuration is invalid.";               \       
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \                                                               
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \                                                                       
        echo;                                                           \       
        /bin/false)                                                             
mkdir -p /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/.tmp_versions ; rm -f /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/.tmp_versions/*                                                     
make -f scripts/Makefile.build obj=/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv               
  i686-pc-linux-gnu-gcc -Wp,-MD,/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude  -I/usr/src/zen-sources/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=native -mtune=native -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.12\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.o /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c                     
In file included from /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c:14:                   
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h:107:27: error: asm/semaphore.h: No such file or directory                                                             
In file included from /usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c:14:                   
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h: In function 'nv_execute_on_all_cpus':
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv-linux.h:674: error: too many arguments to function 'on_each_cpu'                                                               
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c: In function 'nv_kern_cpu_callback':         
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c:1299: error: too many arguments to function 'smp_call_function'                                                             
/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.c:1306: error: too many arguments to function 'smp_call_function'                                                             
make[3]: *** [/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv/nv.o] Error 1                       
make[2]: *** [_module_/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86-173.14.12-pkg0/usr/src/nv] Error 2                   
NVIDIA: left KBUILD.                                                           
nvidia.ko failed to build!                                                     
make[1]: *** [module] Error 1                                                   
make: *** [module] Error 2                                                     
 * ERROR: x11-drivers/nvidia-drivers-173.14.12 failed.                         
 * Call stack:                                                                 
 *               ebuild.sh, line   49:  Called src_compile                     
 *             environment, line 3631:  Called linux-mod_src_compile           
 *             environment, line 2675:  Called die                             
 * The specific snippet of code:                                               
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";             
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux           SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/temp/build.log'.
 * The ebuild environment file is located at '/usr/portage/tmp/portage/x11-drivers/nvidia-drivers-173.14.12/temp/environment'.


Both returns same error, asm/semaphore.h file mising.
Any tip?

Thank you very much for your great job.
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 09, 2008 11:47 am    Post subject: Reply with quote

use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sat Aug 09, 2008 11:58 am    Post subject: Reply with quote

kernelOfTruth wrote:
use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them

Ummm... My virtualbox-whatever and nvidia-drivers versions are "~". Take a look:

Code:

darksidex ~ # eix -I virtualbox
[I] app-emulation/virtualbox
     Available versions:  1.5.2-r1 (~)1.5.4 1.5.4-r1 (~)1.5.6 (~)1.6.2 **9999 {additions alsa headless kernel_linux pulseaudio sdk}
     Installed versions:  1.6.2(23:54:00 06/21/08)(additions alsa -headless -pulseaudio -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization

[I] app-emulation/virtualbox-additions
     Available versions:  1.5.2 1.5.4 (~)1.5.6 (~)1.6.2
     Installed versions:  1.6.2(15:10:23 06/16/08)
     Homepage:            http://www.virtualbox.org/
     Description:         Guest additions for VirtualBox

[I] app-emulation/virtualbox-modules
     Available versions:  1.5.2-r1 1.5.4 (~)1.5.6 (~)1.5.7 (~)1.6.2 {kernel_linux}
     Installed versions:  1.6.2(21:10:39 08/03/08)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Modules for Virtualbox OSE

Found 3 matches.
darksidex ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  71.86.06 96.43.07 100.14.09 (~)100.14.11 100.14.19 [M](~)100.14.23 (~)169.07 (~)169.09 169.09-r1 (~)169.12 [M](~)173.08 (~)173.14.05 173.14.09 (~)173.14.12 [M](~)177.13 {acpi custom-cflags gtk kernel_linux multilib}
     Installed versions:  173.14.12(21:11:13 08/03/08)(acpi kernel_linux -custom-cflags -gtk -multilib)
     Homepage:            http://www.nvidia.com/
     Description:         NVIDIA X11 driver and GLX libraries


Thank you for your reply.
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1159

PostPosted: Sat Aug 09, 2008 12:02 pm    Post subject: Reply with quote

Darksidex25 wrote:
kernelOfTruth wrote:
use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them

Ummm... My virtualbox-whatever and nvidia-drivers versions are "~". Take a look:

Code:

darksidex ~ # eix -I virtualbox
[I] app-emulation/virtualbox
     Available versions:  1.5.2-r1 (~)1.5.4 1.5.4-r1 (~)1.5.6 (~)1.6.2 **9999 {additions alsa headless kernel_linux pulseaudio sdk}
     Installed versions:  1.6.2(23:54:00 06/21/08)(additions alsa -headless -pulseaudio -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization

[I] app-emulation/virtualbox-additions
     Available versions:  1.5.2 1.5.4 (~)1.5.6 (~)1.6.2
     Installed versions:  1.6.2(15:10:23 06/16/08)
     Homepage:            http://www.virtualbox.org/
     Description:         Guest additions for VirtualBox

[I] app-emulation/virtualbox-modules
     Available versions:  1.5.2-r1 1.5.4 (~)1.5.6 (~)1.5.7 (~)1.6.2 {kernel_linux}
     Installed versions:  1.6.2(21:10:39 08/03/08)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Modules for Virtualbox OSE

Found 3 matches.
darksidex ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  71.86.06 96.43.07 100.14.09 (~)100.14.11 100.14.19 [M](~)100.14.23 (~)169.07 (~)169.09 169.09-r1 (~)169.12 [M](~)173.08 (~)173.14.05 173.14.09 (~)173.14.12 [M](~)177.13 {acpi custom-cflags gtk kernel_linux multilib}
     Installed versions:  173.14.12(21:11:13 08/03/08)(acpi kernel_linux -custom-cflags -gtk -multilib)
     Homepage:            http://www.nvidia.com/
     Description:         NVIDIA X11 driver and GLX libraries


Thank you for your reply.


is your nvidia-drivers from gentoo o zen-overlay?
if it's from gentoo i think you need a patch or just grab it from zen-overlay.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Diskmaster
n00b
n00b


Joined: 13 Jul 2008
Posts: 23

PostPosted: Sat Aug 09, 2008 12:14 pm    Post subject: Reply with quote

tranquilcool wrote:
Darksidex25 wrote:
kernelOfTruth wrote:
use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them

Ummm... My virtualbox-whatever and nvidia-drivers versions are "~". Take a look:

Code:

darksidex ~ # eix -I virtualbox
[I] app-emulation/virtualbox
     Available versions:  1.5.2-r1 (~)1.5.4 1.5.4-r1 (~)1.5.6 (~)1.6.2 **9999 {additions alsa headless kernel_linux pulseaudio sdk}
     Installed versions:  1.6.2(23:54:00 06/21/08)(additions alsa -headless -pulseaudio -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization

[I] app-emulation/virtualbox-additions
     Available versions:  1.5.2 1.5.4 (~)1.5.6 (~)1.6.2
     Installed versions:  1.6.2(15:10:23 06/16/08)
     Homepage:            http://www.virtualbox.org/
     Description:         Guest additions for VirtualBox

[I] app-emulation/virtualbox-modules
     Available versions:  1.5.2-r1 1.5.4 (~)1.5.6 (~)1.5.7 (~)1.6.2 {kernel_linux}
     Installed versions:  1.6.2(21:10:39 08/03/08)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Modules for Virtualbox OSE

Found 3 matches.
darksidex ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  71.86.06 96.43.07 100.14.09 (~)100.14.11 100.14.19 [M](~)100.14.23 (~)169.07 (~)169.09 169.09-r1 (~)169.12 [M](~)173.08 (~)173.14.05 173.14.09 (~)173.14.12 [M](~)177.13 {acpi custom-cflags gtk kernel_linux multilib}
     Installed versions:  173.14.12(21:11:13 08/03/08)(acpi kernel_linux -custom-cflags -gtk -multilib)
     Homepage:            http://www.nvidia.com/
     Description:         NVIDIA X11 driver and GLX libraries


Thank you for your reply.


is your nvidia-drivers from gentoo o zen-overlay?
if it's from gentoo i think you need a patch or just grab it from zen-overlay.


Yeah, layman -a zen-overlay to pull in what you need. (And layman -a disk-overlay soon! There's a new patch for 177 that fixes the init_mm issue, but I haven't re-diffed it for 173 yet.)
_________________
Linux polished-diamond 3.0.9-00003-g3c676b1 x86_64 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux
Something witty goes here.
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sat Aug 09, 2008 12:40 pm    Post subject: Reply with quote

tranquilcool wrote:
Darksidex25 wrote:
kernelOfTruth wrote:
use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them

Ummm... My virtualbox-whatever and nvidia-drivers versions are "~". Take a look:

Code:

darksidex ~ # eix -I virtualbox
[I] app-emulation/virtualbox
     Available versions:  1.5.2-r1 (~)1.5.4 1.5.4-r1 (~)1.5.6 (~)1.6.2 **9999 {additions alsa headless kernel_linux pulseaudio sdk}
     Installed versions:  1.6.2(23:54:00 06/21/08)(additions alsa -headless -pulseaudio -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization

[I] app-emulation/virtualbox-additions
     Available versions:  1.5.2 1.5.4 (~)1.5.6 (~)1.6.2
     Installed versions:  1.6.2(15:10:23 06/16/08)
     Homepage:            http://www.virtualbox.org/
     Description:         Guest additions for VirtualBox

[I] app-emulation/virtualbox-modules
     Available versions:  1.5.2-r1 1.5.4 (~)1.5.6 (~)1.5.7 (~)1.6.2 {kernel_linux}
     Installed versions:  1.6.2(21:10:39 08/03/08)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Modules for Virtualbox OSE

Found 3 matches.
darksidex ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  71.86.06 96.43.07 100.14.09 (~)100.14.11 100.14.19 [M](~)100.14.23 (~)169.07 (~)169.09 169.09-r1 (~)169.12 [M](~)173.08 (~)173.14.05 173.14.09 (~)173.14.12 [M](~)177.13 {acpi custom-cflags gtk kernel_linux multilib}
     Installed versions:  173.14.12(21:11:13 08/03/08)(acpi kernel_linux -custom-cflags -gtk -multilib)
     Homepage:            http://www.nvidia.com/
     Description:         NVIDIA X11 driver and GLX libraries


Thank you for your reply.


is your nvidia-drivers from gentoo o zen-overlay?
if it's from gentoo i think you need a patch or just grab it from zen-overlay.

It's from gentoo. Where I can get that patch?

Thank you very much
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 09, 2008 12:50 pm    Post subject: Reply with quote

you need virtualbox, virtualbox-modules 1.6.4 & then can apply the changes from the zenmm-sources thread to that it will compile fine,
nvidia-drivers from zen-sources overlay

and you're set :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1159

PostPosted: Sat Aug 09, 2008 12:51 pm    Post subject: Reply with quote

Darksidex25 wrote:
tranquilcool wrote:
Darksidex25 wrote:
kernelOfTruth wrote:
use ~versions of virtualbox, virtualbox-modules and nvidia-drivers :idea: / unmask them

Ummm... My virtualbox-whatever and nvidia-drivers versions are "~". Take a look:

Code:

darksidex ~ # eix -I virtualbox
[I] app-emulation/virtualbox
     Available versions:  1.5.2-r1 (~)1.5.4 1.5.4-r1 (~)1.5.6 (~)1.6.2 **9999 {additions alsa headless kernel_linux pulseaudio sdk}
     Installed versions:  1.6.2(23:54:00 06/21/08)(additions alsa -headless -pulseaudio -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Softwarefamily of powerful x86 virtualization

[I] app-emulation/virtualbox-additions
     Available versions:  1.5.2 1.5.4 (~)1.5.6 (~)1.6.2
     Installed versions:  1.6.2(15:10:23 06/16/08)
     Homepage:            http://www.virtualbox.org/
     Description:         Guest additions for VirtualBox

[I] app-emulation/virtualbox-modules
     Available versions:  1.5.2-r1 1.5.4 (~)1.5.6 (~)1.5.7 (~)1.6.2 {kernel_linux}
     Installed versions:  1.6.2(21:10:39 08/03/08)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Modules for Virtualbox OSE

Found 3 matches.
darksidex ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  71.86.06 96.43.07 100.14.09 (~)100.14.11 100.14.19 [M](~)100.14.23 (~)169.07 (~)169.09 169.09-r1 (~)169.12 [M](~)173.08 (~)173.14.05 173.14.09 (~)173.14.12 [M](~)177.13 {acpi custom-cflags gtk kernel_linux multilib}
     Installed versions:  173.14.12(21:11:13 08/03/08)(acpi kernel_linux -custom-cflags -gtk -multilib)
     Homepage:            http://www.nvidia.com/
     Description:         NVIDIA X11 driver and GLX libraries


Thank you for your reply.


is your nvidia-drivers from gentoo o zen-overlay?
if it's from gentoo i think you need a patch or just grab it from zen-overlay.

It's from gentoo. Where I can get that patch?

Thank you very much


1)mm-fix.patch;

Index: nv/Makefile.kbuild
===================================================================
--- nv.orig/Makefile.kbuild
+++ nv/Makefile.kbuild
@@ -63,7 +63,7 @@ KERNEL_GLUE_OBJS := $(RESMAN_GLUE_OBJS)
# set this conditional of a kernel-level instance.
#

-ifdef TOPDIR
+ifdef srctree
obj-m := $(MODULE_NAME).o
endif


2)nv-173-post-2.6.26-update.patch;

diff -U3 -r nv.orig/Makefile.kbuild nv/Makefile.kbuild
--- nv.orig/Makefile.kbuild 2008-07-27 14:17:35.000000000 -0500
+++ nv/Makefile.kbuild 2008-07-27 14:21:18.000000000 -0500
@@ -129,7 +129,7 @@
# a top-level run).
#

-TOPDIR ?= $(KERNEL_SOURCES)
+srctree ?= $(KERNEL_SOURCES)
PATCHLEVEL ?= $(shell $(CONFTEST) kernel_patch_level)

#
@@ -186,7 +186,8 @@
acpi_device_ops \
acpi_device_id \
acquire_console_sem \
- kmem_cache_create
+ kmem_cache_create \
+ on_each_cpu
else
COMPILE_TESTS = \
remap_page_range \
diff -U3 -r nv.orig/conftest.sh nv/conftest.sh
--- nv.orig/conftest.sh 2008-06-05 02:11:28.000000000 -0500
+++ nv/conftest.sh 2008-07-27 14:23:20.000000000 -0500
@@ -774,6 +774,61 @@
fi
;;

+ on_each_cpu)
+ #
+ # Determine if the on_each_cpu() function is
+ # present and how many arguments it takes.
+ #
+ echo "$CONFTEST_PREAMBLE
+ #include <linux/smp.h>
+ int conftest_on_each_cpu(void) {
+ return on_each_cpu();
+ }" > conftest$$.c
+
+ $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
+ rm -f conftest$$.c
+
+ if [ -f conftest$$.o ]; then
+ rm -f conftest$$.o
+ echo "#undef NV_ON_EACH_CPU_PRESENT" >> conftest.h
+ return
+ fi
+
+ echo "$CONFTEST_PREAMBLE
+ #include <linux/smp.h>
+ int conftest_on_each_cpu(void (*func) (void *info), void *info) {
+ return on_each_cpu(func, info, 0, 0);
+ }" > conftest$$.c
+
+ $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
+ rm -f conftest$$.c
+
+ if [ -f conftest$$.o ]; then
+ rm -f conftest$$.o
+ echo "#define NV_ON_EACH_CPU_PRESENT" >> conftest.h
+ echo "#define NV_ON_EACH_CPU_ARGUMENT_COUNT 4 " >> conftest.h
+ return
+ fi
+
+ echo "$CONFTEST_PREAMBLE
+ #include <linux/smp.h>
+ int conftest_on_each_cpu(void (*func) (void *info), void *info) {
+ return on_each_cpu(func, info, 0);
+ }" > conftest$$.c
+
+ $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
+ rm -f conftest$$.c
+
+ if [ -f conftest$$.o ]; then
+ rm -f conftest$$.o
+ echo "#define NV_ON_EACH_CPU_PRESENT" >> conftest.h
+ echo "#define NV_ON_EACH_CPU_ARGUMENT_COUNT 3 " >> conftest.h
+ return
+ else
+ echo "#error on_each_cpu() conftest failed!" >> conftest.h
+ fi
+ ;;
+
esac
}

diff -U3 -r nv.orig/nv-linux.h nv/nv-linux.h
--- nv.orig/nv-linux.h 2008-07-27 14:17:35.000000000 -0500
+++ nv/nv-linux.h 2008-07-27 14:25:20.000000000 -0500
@@ -104,7 +104,7 @@
#endif

#include <linux/spinlock.h>
-#include <asm/semaphore.h>
+#include <linux/semaphore.h>
#include <linux/completion.h>
#include <linux/highmem.h>

@@ -656,6 +656,20 @@

#endif /* !defined NVWATCH */

+#if defined(NV_ON_EACH_CPU_PRESENT)
+#if (NV_ON_EACH_CPU_ARGUMENT_COUNT == 4)
+#define NV_ON_EACH_CPU(func, info, retry, wait) on_each_cpu(func, info, retry, wait)
+#define NV_SMP_CALL_FUNCTION(func, info, retry, wait) smp_call_function(func, info, retry, wait)
+#elif (NV_ON_EACH_CPU_ARGUMENT_COUNT == 3)
+#define NV_ON_EACH_CPU(func, info, retry, wait) on_each_cpu(func, info, wait)
+#define NV_SMP_CALL_FUNCTION(func, info, retry, wait) smp_call_function(func, info, wait)
+#else
+#error "NV_ON_EACH_CPU_ARGUMENT_COUNT value unrecognized!"
+#endif
+#else
+#error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
+#endif
+
static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
{
int ret = 0;
@@ -665,13 +679,13 @@
#if defined(preempt_disable)
preempt_disable();
#endif
- ret = smp_call_function(func, info, 1, 1);
+ ret = NV_SMP_CALL_FUNCTION(func, info, 1, 1);
func(info);
#if defined(preempt_enable)
preempt_enable();
#endif
#else
- ret = on_each_cpu(func, info, 1, 1);
+ ret = NV_ON_EACH_CPU(func, info, 1, 1);
#endif
return ret;
}
diff -U3 -r nv.orig/nv.c nv/nv.c
--- nv.orig/nv.c 2008-06-05 02:11:27.000000000 -0500
+++ nv/nv.c 2008-07-27 14:26:23.000000000 -0500
@@ -1296,14 +1296,14 @@
if (get_cpu() == cpu)
__nv_setup_pat_entries(NULL);
else
- smp_call_function(__nv_setup_pat_entries, hcpu, 1, 1);
+ NV_SMP_CALL_FUNCTION(__nv_setup_pat_entries, hcpu, 1, 1);
put_cpu();
break;
case CPU_DOWN_PREPARE:
if (get_cpu() == cpu)
__nv_restore_pat_entries(NULL);
else
- smp_call_function(__nv_restore_pat_entries, hcpu, 1, 1);
+ NV_SMP_CALL_FUNCTION(__nv_restore_pat_entries, hcpu, 1, 1);
put_cpu();
break;
}
diff -U3 -r nv.orig/os-interface.c nv/os-interface.c
--- nv.orig/os-interface.c 2008-07-27 14:17:35.000000000 -0500
+++ nv/os-interface.c 2008-07-27 14:27:40.000000000 -0500
@@ -48,7 +48,7 @@
#endif
local_bh_disable();
atomic_set(&os_smp_barrier, 1);
- ret = smp_call_function(ipi_handler, NULL, 1, 0);
+ ret = NV_SMP_CALL_FUNCTION(ipi_handler, NULL, 1, 0);
#endif
return (ret == 0) ? RM_OK : RM_ERROR;
}
@@ -704,7 +704,7 @@
U032 sig
)
{
- return kill_proc(pid, sig, 1) ? RM_ERR_OPERATING_SYSTEM : RM_OK;
+ return RM_OK;
}

/*******************************************************************************/


these are the two patches. but why not grab nvidia-drivers fron zen-overlay?
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Sat Aug 09, 2008 1:42 pm    Post subject: Reply with quote

Can you guys start a new thread dedicated to external modules and leave this thread for actual kernel talk please?
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sat Aug 09, 2008 1:59 pm    Post subject: Reply with quote

Thank you both for your help, I'll try to follow your advises (I'm sure I'll break something, I know, but...).

tranquilcool wrote:
but why not grab nvidia-drivers fron zen-overlay?

Because I didn't know there were nvidia-drivers in zen-overlay, I don't use it. I'll add now to layman.
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 14, 15, 16, 17  Next
Page 15 of 17

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum