Topic Title: linux driver (12.104.2) - unable to build on ubuntu 13.10 - worked on 13.04
Topic Summary: After upgrade from ubuntu 13.04 -> 13.10 I'm not able to build the module for my firepro V5900
Created On: 10/31/2013 09:03 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10/31/2013 09:03 AM
User is offline View Users Profile Print this message

Author Icon
oddbeck
Peon

Posts: 4
Joined: 10/31/2013

This is the error i get when I try to make the driver (to locate the error).

Usually I just run the installer, but when it failed I had to try to find out what's wrong I had to run the build myself:

oddb@nbr-oddb:~/fglrx/build_mod$ sudo ./make.sh 

AMD kernel module generator version 2.1

doing Makefile based build for kernel 2.6.x and higher

rm -rf *.c *.h *.o *.ko *.a .??* *.symvers

make -C /lib/modules/3.11.0-12-generic/build SUBDIRS=/home/oddb/fglrx/build_mod/2.6.x modules

make[1]: Entering directory `/usr/src/linux-headers-3.11.0-12-generic'

  CC [M]  /home/oddb/fglrx/build_mod/2.6.x/firegl_public.o

In file included from /home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:476:0:

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h: In function ‘FGLDRM_proc_init’:

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:98:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]

  if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);

  ^

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:98:19: warning: assignment makes pointer from integer without a cast [enabled by default]

  if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);

                   ^

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:105:12: warning: assignment makes pointer from integer without a cast [enabled by default]

  *dev_root = create_proc_entry(name, S_IFDIR, root);

            ^

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:112:7: warning: assignment makes pointer from integer without a cast [enabled by default]

   ent = create_proc_entry(DRM(proc_list).name,

       ^

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:124:6: error: dereferencing pointer to incomplete type

   ent->read_proc = DRM(proc_list).f;

      ^

/home/oddb/fglrx/build_mod/2.6.x/drm_proc.h:125:6: error: dereferencing pointer to incomplete type

   ent->data      = dev;

      ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘firegl_proc_init’:

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:598:14: warning: assignment makes pointer from integer without a cast [enabled by default]

         root = create_proc_entry("ati", S_IFDIR, NULL);

              ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:610:13: warning: assignment makes pointer from integer without a cast [enabled by default]

         ent = create_proc_entry("major", S_IFREG|S_IRUGO, root);

             ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:617:12: error: dereferencing pointer to incomplete type

         ent->read_proc = (read_proc_t*)firegl_major_proc_read;

            ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:617:27: error: ‘read_proc_t’ undeclared (first use in this function)

         ent->read_proc = (read_proc_t*)firegl_major_proc_read;

                           ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:617:27: note: each undeclared identifier is reported only once for each function it appears in

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:617:39: error: expected expression before &lsquo’ token

         ent->read_proc = (read_proc_t*)firegl_major_proc_read;

                                       ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:621:15: warning: assignment makes pointer from integer without a cast [enabled by default]

     *dev_root = create_proc_entry(name, S_IFDIR, root);

               ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:631:13: warning: assignment makes pointer from integer without a cast [enabled by default]

         ent = create_proc_entry(list->name, S_IFREG|S_IRUGO, *dev_root);

             ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:651:16: error: dereferencing pointer to incomplete type

             ent->read_proc = (read_proc_t*)list->f;

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:651:43: error: expected expression before &lsquo’ token

             ent->read_proc = (read_proc_t*)list->f;

                                           ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:656:16: error: dereferencing pointer to incomplete type

             ent->proc_fops = (struct file_operations*)list->fops;

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:660:16: error: dereferencing pointer to incomplete type

             ent->data = (dev->pubdev.signature == FGL_DEVICE_SIGNATURE)? firegl_find_device(minor) : (dev);

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:669:13: warning: assignment makes pointer from integer without a cast [enabled by default]

         ent = create_proc_entry("debug", S_IFREG|S_IRUGO, root);

             ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:672:16: error: dereferencing pointer to incomplete type

             ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;     

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:672:43: error: expected expression before &lsquo’ token

             ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;     

                                           ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:673:16: error: dereferencing pointer to incomplete type

             ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;  

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:673:32: error: ‘write_proc_t’ undeclared (first use in this function)

             ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;  

                                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:673:45: error: expected expression before &lsquo’ token

             ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap;  

                                             ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:674:16: error: dereferencing pointer to incomplete type

             ent->data = dev;

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_EFI_IS_ENABLED’:

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:3091:5: warning: return makes integer from pointer without a cast [enabled by default]

     return efi_enabled;

     ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c: At top level:

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:523:16: warning: ‘firegl_debug_proc_read_wrap’ defined but not used [-Wunused-function]

 READ_PROC_WRAP(firegl_debug_proc_read)

                ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:508:12: note: in definition of macro ‘READ_PROC_WRAP’

 static int func##_wrap(char *buf, char **start, kcl_off_t offset,      \

            ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:528:12: warning: ‘firegl_debug_proc_write_wrap’ defined but not used [-Wunused-function]

 static int firegl_debug_proc_write_wrap(void* file, const char *buffer, unsigned long count, void *data)

            ^

/home/oddb/fglrx/build_mod/2.6.x/firegl_public.c:546:12: warning: ‘firegl_major_proc_read’ defined but not used [-Wunused-function]

 static int firegl_major_proc_read(char *buf, char **start, kcl_off_t offset,

            ^

cc1: some warnings being treated as errors

make[2]: *** [/home/oddb/fglrx/build_mod/2.6.x/firegl_public.o] Error 1

make[1]: *** [_module_/home/oddb/fglrx/build_mod/2.6.x] Error 2

make[1]: Leaving directory `/usr/src/linux-headers-3.11.0-12-generic'

make: *** [kmod_build] Error 2

build failed with return value 2

 

 10/31/2013 10:18 AM
User is offline View Users Profile Print this message

Author Icon
oddbeck
Peon

Posts: 4
Joined: 10/31/2013

I tried to do some digging and it seems to be related to the fact that the linux kernel 3.10 has some changes in "proc"-related stuff.

I.E "create_proc_entry" has been deprecated and one is supposed to use "proc_create", but after this it get's a bit advanced for me...

 11/03/2013 04:02 PM
User is offline View Users Profile Print this message

Author Icon
Eydee
Ninja Zombie Killer

Posts: 4878
Joined: 12/27/2008

The bug was fixed in 13.11. Try it.



-------------------------

CPU: AMD Phenom II X4 810 @ 3120MHz | RAM: Kingmax 2x2GB DDR2 800 @ 833MHz| MoBo: MSI K9A2 CF v1.0 (BIOS: 1.D)| GPU: Asus HD 6850 1024MB (DirectCu) @ 835/1135MHz | Display: L24FHD | PSU: PC Power & Cooling Silencer 750 Quad | OS: MS Windows 3.11 Pro x64

 11/04/2013 06:53 AM
User is offline View Users Profile Print this message

Author Icon
oddbeck
Peon

Posts: 4
Joined: 10/31/2013

I have already tried that driver version before I posted this problem at the forum. That driver claims "Your graphics adapter is not supported by this driver", which made me try the older driver.

What driver supports kernel >= 3.10.x AND a FirePro V5900 ?

/usr/share/ati/fglrx-install.log says:

"./amd_dcm64: No supported adapters detected" 

 

"lspci -v" says:

 03:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cayman LE GL [FirePro V5900] (prog-if 00 [VGA controller])

Subsystem: Dell Device 2b06

Flags: bus master, fast devsel, latency 0, IRQ 93

Memory at e0000000 (64-bit, prefetchable) [size=256M]

Memory at f7de0000 (64-bit, non-prefetchable) [size=128K]

I/O ports at dc00 [size=256]

Expansion ROM at f7e00000 [disabled] [size=128K]

Capabilities: <access denied>

Kernel driver in use: radeon



Edited: 11/04/2013 at 07:44 AM by oddbeck
 11/05/2013 03:31 PM
User is offline View Users Profile Print this message

Author Icon
Eydee
Ninja Zombie Killer

Posts: 4878
Joined: 12/27/2008

 

Originally posted by: oddbeck What driver supports kernel >= 3.10.x AND a FirePro V5900 ?

The real question is: Why ask the gaming community about Firepro issues? We usually use Radeons. I suggest you contact AMD instead.



-------------------------

CPU: AMD Phenom II X4 810 @ 3120MHz | RAM: Kingmax 2x2GB DDR2 800 @ 833MHz| MoBo: MSI K9A2 CF v1.0 (BIOS: 1.D)| GPU: Asus HD 6850 1024MB (DirectCu) @ 835/1135MHz | Display: L24FHD | PSU: PC Power & Cooling Silencer 750 Quad | OS: MS Windows 3.11 Pro x64

 11/15/2013 03:31 AM
User is offline View Users Profile Print this message

Author Icon
oddbeck
Peon

Posts: 4
Joined: 10/31/2013

Mainly because I had no way of knowing that "AMD Support and Game » Linux Support & Troubleshooting " actually meant "Gaming community and Gaming issues only"

 

Solution was to get myself an NVIDIA card.



Edited: 11/15/2013 at 03:50 AM by oddbeck
Statistics
84902 users are registered to the AMD Support and Game forum.
There are currently 1 users logged in.

FuseTalk Hosting Executive Plan v3.2 - © 1999-2014 FuseTalk Inc. All rights reserved.