LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-17-2003, 03:03 PM   #1
stalemate
LQ Newbie
 
Registered: Sep 2003
Location: norway
Distribution: Mandrake 9.1
Posts: 6

Rep: Reputation: 0
Question make-problems


I'm trying to upgrade the videocard-driver, and follows the Nvidia-instructions, but I keep getting this error message when I run the "make" -command:

make install

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1

Any Ideas? Anyone knows how I can get the TV-out up and running btw?
I run a Mandrake 9.1, kernelversion 2.4

As you already probably guessed, I'm a complete newbie, fresh from the grip of Micro$oft

Thanks for any help !

Stalemate
-by default
 
Old 09-17-2003, 03:25 PM   #2
acemics
LQ Newbie
 
Registered: Sep 2003
Location: Connecticut
Distribution: Personal - Red Hat 9 on IBM X22 Laptop running fluxbox WM
Posts: 24

Rep: Reputation: 15
My take on this is that it is a possible issue with the drivers. I did a google search and came up with this thread which seemed similar:

http://lists.suse.com/archive/suse-x...-Aug/0013.html

good luck,
Vince
 
Old 09-20-2003, 04:12 AM   #3
stalemate
LQ Newbie
 
Registered: Sep 2003
Location: norway
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the help!
Now I've managed to run a nvidia installer, but for some reason, no 3d-graphics seems to be too happy about running, so it's probably some error somehwere.

Can't have it all

Stalemate
 
Old 09-20-2003, 04:44 AM   #4
baud
Member
 
Registered: Aug 2003
Location: Versailles
Distribution: Mandrakecooker 10.1
Posts: 67

Rep: Reputation: 15
How come you run a make install command ?
With latest nVidia driver 4496 available here :
http://www.nvidia.com/object/linux.html
http://www.nvidia.com/object/linux_d..._1.0-4496.html

there's an installer which takes care or compilation / installation.

It worked flawlessly with Mandrake 9.1 : there's an available version of driver.
With Mandrake 9.2rc2 it tells me it has got to recompile (adding kernel-source...), which works as well.

Here are my versions :
cat /proc/version
Linux version 2.4.22-6mdk (nplanel@no.mandrakesoft.com) (gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)) #1 Sun Sep 7 18:11:19 EDT 2003

[root@BenAthlux root]# gcc --version
gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)


If your version of gcc used for compiling kernel differs from available gcc, you should either consider to :
- revert to appropriate gcc (recommended, you can always upgrade it later)
- compile kernel with your latest gcc (well, you know what you're doing !)
Please check latest version of nvidia drivers before beginning second option...

Once you get it installed properly, you will want to have a look at http://yanc.sourceforge.net/ to configure twinview easily.

Last edited by baud; 09-20-2003 at 04:46 AM.
 
Old 09-20-2003, 05:51 AM   #5
stalemate
LQ Newbie
 
Registered: Sep 2003
Location: norway
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot baud!

It still won't work however - here's the config who refuses to start X:

START
# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "no"
Option "XkbCompat" ""
Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/usbmouse"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "1600x1200 @ 70 Hz"
HorizSync 31.5-88.0
VertRefresh 50-90

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce3 (generic)"
Driver "nvidia"
Option "DPMS"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection

Subsection "Display"
Depth 15
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection

Subsection "Display"
Depth 16
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection

Subsection "Display"
Depth 24
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubsection
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection


END


Anybody see where the error is?

Stalemate

Last edited by stalemate; 09-20-2003 at 07:04 AM.
 
Old 09-20-2003, 08:27 AM   #6
baud
Member
 
Registered: Aug 2003
Location: Versailles
Distribution: Mandrakecooker 10.1
Posts: 67

Rep: Reputation: 15
what's the error given by X ?
can you copy & paste ?

your XF86Config-4 seems correct.

Perhaps you can revert to Driver "nv" (instead of nvidia) to verify that's it's related to nvidia (otherwise it would be X).
If X does not start at boot and you only get a console, you can type startx (well, to start X and KDE or Gnome depending on your choice...).

Furthermore, could you have a look at /var/log/messages (with vi for example) and search for a line like this (to show that nvidia is correctly loaded by kernel).
Sep 20 11:05:50 BenAthlux kernel: 0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
 
Old 09-20-2003, 08:46 AM   #7
presemt_arms
Member
 
Registered: Sep 2003
Distribution: pclinuxos pre8, dynabolic, knoppix 3.6, k12 ltsp, ubuntu
Posts: 54

Rep: Reputation: 15
ive had a problem in the past that won't start X when using startx.. the workround i use is either use a script called Xtart or use the xinit itself like "xinit /usr/bin/startkde" or of u have kde installed (and want to use it) just type "kde" no quotes... i gave up on startx a long time ago... just a suggestion
 
Old 09-20-2003, 09:04 AM   #8
stalemate
LQ Newbie
 
Registered: Sep 2003
Location: norway
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
I don't get an errormessage from teh X-server, it just flashes and goes black, and I have to reboot. however, when I scroll the log-file, I find :

insmod: Warning: loading /lib/modules/2.4.21-0.13mdk/kernel/drivers/video/nvidia.o will taint the kernel: non-GPL license - NVIDIA

Is this something?

Sorry if I seem completely blank, but I've kinda fallen headfirst into this linux thingy

stalemate
 
Old 09-20-2003, 09:24 AM   #9
baud
Member
 
Registered: Aug 2003
Location: Versailles
Distribution: Mandrakecooker 10.1
Posts: 67

Rep: Reputation: 15
> taint the kernel
that's only for the purist of GPL, it's not really an error, only telling that nVidia may be doing good work, but that they'd better license their work under GPL to contribute to the community (and help us debug this buggy driver).

> flashes and goes black
how long do you wait before rebooting ? maybe the driver is loading ?

have you tried to revert to driver nv ? (just a try)
why have you a newer version of gcc than the one used for your kernel ? (did you install it ?)
are you sure that the kernel-source is the same version as your kernel ? (have a look at /usr/src : ls -l /usr/src/, should give symlink linux pointing to kernel-source used, should be the same as your kernel

> scroll the log-file
you had a look at /var/log/XFree86.0.log as well ?
 
Old 09-20-2003, 09:51 AM   #10
stalemate
LQ Newbie
 
Registered: Sep 2003
Location: norway
Distribution: Mandrake 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
- I reboot the computer entirely, so I don't think that the driver hasn't loaded
- I currently am running with nv, which is what I had installed before it all went wrong, and it's working ok, the 3d graphics are horrible, and I can't configure any twin-view.
The gcc is version 2.96, I've installed it after mandrake (how do I display the kernel version anyways?)
when I look at the XFree86.0.log, I find this line -

(...)
(II) Initializing built-in extension RANDR
(EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
(II) Keyboard "Keyboard1" handled by legacy driver
(...)

Any ideas?

stalemate
 
Old 09-20-2003, 10:49 AM   #11
baud
Member
 
Registered: Aug 2003
Location: Versailles
Distribution: Mandrakecooker 10.1
Posts: 67

Rep: Reputation: 15
> how do I display the kernel version anyways?
cat /proc/version

> The gcc is version 2.96, I've installed it after mandrake
can you revert to 3.2.2 (I think that's the version used by MdK9.1)
why did you choose to install an older version in the first place ?

> (EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
with nv driver or nvidia ?
with nvidia there's the line Load "glx" to have in the XF86Config-4 (which you have), with nv driver I don't know
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make and gcc problems raaste Linux - Software 1 08-10-2005 01:52 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 09:05 PM
Pango make problems vladoboss Linux - Software 6 05-31-2004 06:50 AM
make problems jayakrishnan Linux - General 1 09-13-2003 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration