LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2006, 06:18 AM   #1
flapane
LQ Newbie
 
Registered: Nov 2004
Location: Naples, ITA
Distribution: U-dapper
Posts: 3

Rep: Reputation: 0
latest ati drier and 2.6.16 on amd64 COMPILE ERROR


I ca't manage to compile fglrx module, as I get tons of errors. Any guess?

[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating
kernel module now.
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.16-flap/build
SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.16.14'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function '__fgl_agp_init':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:8175: warning: 'pm_register'
is deprecated (declared at include/linux/pm_legacy.h:16)
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In function
'__fgl_agp_cleanup':
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:8185: warning:
'pm_unregister_all' is deprecated (declared at include/linux/pm_legacy.h:26)
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:6079: warning:
'ati_gart_base' defined but not used
CC [M] /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
In file included from
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:162:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.h:274:5: warning:
"FIREGL_VMA_INFO" is not defined
In file included from /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:41,
from
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:333:
/lib/modules/fglrx/build_mod/2.6.x/drmP.h:561:5: warning: "__HAVE_VBL_IRQ"
is not defined
/lib/modules/fglrx/build_mod/2.6.x/drmP.h:664:5: warning: "__HAVE_VBL_IRQ"
is not defined
/lib/modules/fglrx/build_mod/2.6.x/drmP.h:936:5: warning: "__HAVE_SG" is not
defined
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:407:5: warning:
"FIREGL_VMA_INFO" is not defined
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:426:5: warning:
"FIREGL_VMA_INFO" is not defined
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'firegl_stub_putminor':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:581: warning:
'inter_module_put' is deprecated (declared at include/linux/module.h:575)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:583: warning:
'inter_module_unregister' is deprecated (declared at
include/linux/module.h:572)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'firegl_stub_register':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:603: warning:
'inter_module_register' is deprecated (declared at
include/linux/module.h:571)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:634: warning:
'inter_module_put' is deprecated (declared at include/linux/module.h:575)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'firegl_put_user_ptr':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1317: warning: cast from
pointer to integer of different size
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1317: warning: cast from
pointer to integer of different size
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1317: warning: cast from
pointer to integer of different size
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1317: warning: cast from
pointer to integer of different size
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_no_iommu':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2356: error: 'no_iommu'
undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2356: error: (Each
undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2356: error: for each
function it appears in.)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_unregister_ioctl32_conversion':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2533: warning: 'return'
with a value, in function returning void
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3592: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3593: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3594: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3595: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3596: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3597: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3598: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3599: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3601: warning:
initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3611: warning: function
declaration isn't a prototype
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'test_inter_module_interface':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3677: warning:
'inter_module_put' is deprecated (declared at include/linux/module.h:575)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3683: warning:
'inter_module_put' is deprecated (declared at include/linux/module.h:575)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_agp_allocate_memory_phys_list':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3941: warning: passing
argument 3 of 'im_fglrx_agp_stub->allocate_memory_phys_list' makes integer
from pointer without a cast
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_agp_bind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3980: warning: passing
argument 1 of 'im_fglrx_agp_stub->bind_memory' from incompatible pointer
type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_agp_unbind_memory':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3993: warning: passing
argument 1 of 'im_fglrx_agp_stub->unbind_memory' from incompatible pointer
type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function
'__ke_smp_call_function':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4222: warning: statement
with no effect
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.14'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult
readme.
 
Old 05-11-2006, 06:35 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2356: error: 'no_iommu'
undeclared (first use in this function)

This is your only error - sounds like you are missing a library.

You have a huge swag of warnings: these are usually the result of sloppy or apathetic coding (some just warn of depreciated stuff - showing that the code hasn't been updated to newer standards, but it's OK because there is a legacy header to deal with it. Later on this will be removed. Perhaps you should be compiling with an older version of gcc?)

Did you consult the "readme"?
 
Old 05-12-2006, 05:10 AM   #3
flapane
LQ Newbie
 
Registered: Nov 2004
Location: Naples, ITA
Distribution: U-dapper
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I used gcc4.0.3 and IOMMU is built into the kernel, and the readme can't say anything useful except (type chmod + ati....run, sh ./ati.....run etc etc)
 
  


Reply

Tags
ati, help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ati (8.16.20) : Module Installing | Error After Kernel Compile dfwcomputer Linux - Newbie 2 05-10-2006 08:03 PM
Ati Fglrx amd64 latest drivers + 2.6.13 kernel problem ssobeht Linux - Hardware 3 11-18-2005 06:01 AM
swh plugins compile error on AMD64 cocteau Linux - Software 2 03-31-2005 10:49 AM
amd64 where is the latest iso's barrys Mandriva 1 08-03-2004 12:02 PM
How do I compile the latest kernel for SuSE 9.0? MatthewASmith79 Linux - Newbie 2 08-02-2004 08:04 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration