Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-16-03, 02:57 AM   #1
ychai4
Registered User
 
Join Date: Feb 2003
Posts: 6
Post unable to compile nforce driver under Slackware 8.1

Hello:

When I try to compile the nforce driver as stated in the readme files, it gives me an error as follows:

make -C nvnet
make[1]: Entering directory `/home/mohr/nforce/nvnet'
cc -c -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.4.18/build/include -DMODVERSIONS -include /lib/modules/2.4.18/build/include/linux/modversions.h nvnet.c
cc1: Invalid option `-falign-functions=4'
make[1]: *** [nvnet.o] Error 1
make[1]: Leaving directory `/home/mohr/nforce/nvnet'
make: *** [nvnet_make] Error 2


I'm at a loss as to what to do. I'm no purist... while I do not like the idea of closed source, I can understand nvidia's needs... but these needs cause a direct conflict with my need for a driver that works on my system :) Here are my specs:

Distro: Slackware 8.1
Kernel: 2.4.18
GCC: 2.95.3

Could this be an unfixable problem with the binary portion of the package? I also tried to manually patch the diff included for the sound card, which fails miserably. This, however, is not as much of an issue because I got it working with OSS. But I would really like to have that second ethernet card working....

Any ideas?
Attached Files
File Type: txt error.txt (557 Bytes, 158 views)
ychai4 is offline   Reply With Quote
Old 02-16-03, 08:32 AM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default Re: unable to compile nforce driver under Slackware 8.1

Quote:
Originally posted by ychai4
cc1: Invalid option `-falign-functions=4'
Edit the Makefile and change -falign-functions=4 to -malign-functions=2, re-make, and see if that helps.

In gcc 3.2, it's an -f option, and the argument is a number of bytes to align the start of the function to. But in gcc 2.95.3, it's an -m option, and you use the logarithm base 2 of the required alignment as the argument. In other words, gcc 2 takes the argument you give it, raises 2 to that power, and uses what it ends up with.

Now, this is assuming that the Makefile is actually wanting a 4-byte alignment. If it's just confused (and using an f instead of an m), then keep the 4. I'm not sure how to find that out, though, other than looking through the mess of a system that is kbuild...
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 02-16-03, 02:59 PM   #3
ychai4
Registered User
 
Join Date: Feb 2003
Posts: 6
Default it works!

Thank you very much for the information. After editing the makefile, the error disappeared. Thereafter, a simple insmod nvnet.o && ifconfig eth1 up causes the new interface to be recognized and brought online. Thank you!
ychai4 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia Problems in Slackware 8.1 xtreme NVIDIA Linux 3 10-01-02 12:03 PM
Unable to load 3d driver rebol NVIDIA Linux 3 09-29-02 04:58 PM
Nvidia drivers won't compile with Slackware 8.0 z28Power NVIDIA Linux 6 09-18-02 06:20 PM
Cannot load nvaudio driver (NVidia nforce) thahn01 NVIDIA Linux 4 09-13-02 01:28 AM
new nforce driver!! 1.12!! frenchy2k1 CPUs, Motherboards And Memory 9 08-27-02 01:09 AM

All times are GMT -5. The time now is 04:57 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.