PDA

View Full Version : Build of fglrx.ko failed on smp_call_function


smaring
09-28-2008, 11:16 PM
I am running on Ubuntu intrepid 8.10 with kernel 2.6.27-4-generic

just running ./ati-driver-installer-8-9-x86.x86_64.run results in ...

Error: ./default_policy.sh does not support version
default:v2:i686:lib::none:2.6.27-4-generic; make sure that the version is being
correctly set by --iscurrentdistro


so I run ...

./ati-driver-installer-8-9-x86.x86_64.run --buildpkg Ubuntu/intrepid


which seems to be successful ...

Package /usr/src/xorg-driver-fglrx_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-kernel-source_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-amdcccle_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-modaliases_8.532-0ubuntu1_i386.deb has been successfully generated


then I try to install ...

# dpkg -i *.deb
(Reading database ... 189664 files and directories currently installed.)
Preparing to replace fglrx-amdcccle 2:8.532-0ubuntu1 (using fglrx-amdcccle_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement fglrx-amdcccle ...
Preparing to replace fglrx-kernel-source 2:8.532-0ubuntu1 (using fglrx-kernel-source_8.532-0ubuntu1_i386.deb) ...
Removing all DKMS Modules
Done.
Unpacking replacement fglrx-kernel-source ...
Preparing to replace fglrx-modaliases 2:8.532-0ubuntu1 (using fglrx-modaliases_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement fglrx-modaliases ...
Preparing to replace xorg-driver-fglrx 2:8.532-0ubuntu1 (using xorg-driver-fglrx_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement xorg-driver-fglrx ...
Preparing to replace xorg-driver-fglrx-dev 2:8.532-0ubuntu1 (using xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement xorg-driver-fglrx-dev ...
Setting up fglrx-kernel-source (2:8.532-0ubuntu1) ...
Adding Module to DKMS build system
Doing initial module build

Error! Build of fglrx.ko failed for: 2.6.27-4-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/fglrx/8.532/build/ for more information.
Installing initial module

Error! Could not locate fglrx.ko for module fglrx in the DKMS tree.
You must run a dkms build for kernel 2.6.27-4-generic (i686) first.
Done.

Setting up fglrx-modaliases (2:8.532-0ubuntu1) ...
Setting up xorg-driver-fglrx (2:8.532-0ubuntu1) ...

Processing triggers for man-db ...
Setting up xorg-driver-fglrx-dev (2:8.532-0ubuntu1) ...
Setting up fglrx-amdcccle (2:8.532-0ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place


trying to see what the error is ...

# cat make.sh.log
ATI module generator V 2.0
==========================
initializing...
build_date =Sun Sep 28 22:52:20 EDT 2008
uname -a =Linux christa-desktop 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.27-4-generic
uname -v =#1 SMP Wed Sep 24 01:30:51 UTC 2008
uid=0(root) gid=0(root) groups=0(root)
.
drwxr-xr-x 52 root root 12288 2008-09-28 22:40 /usr/include
.
total 137252
-rwxr-xr-x 1 christa christa 53989404 2008-07-13 21:00 ati-driver-installer-8.28.8.run
-rwxr-xr-x 1 root src 66269347 2008-09-28 20:27 ati-driver-installer-8-9-x86.x86_64.run
drwxr-xr-x 2 root root 4096 2008-09-28 22:52 fglrx-8.532
-rw-r--r-- 1 root root 6605328 2008-09-28 22:51 fglrx-amdcccle_8.532-0ubuntu1_i386.deb
-rw-rw-r-- 1 root root 2478 2008-09-28 22:51 fglrx-installer_8.532-0ubuntu1_i386.changes
-rw-r--r-- 1 root root 1350468 2008-09-28 22:51 fglrx-kernel-source_8.532-0ubuntu1_i386.deb
-rw-r--r-- 1 root root 9328 2008-09-28 22:51 fglrx-modaliases_8.532-0ubuntu1_i386.deb
drwxr-xr-x 4 root root 4096 2008-09-07 20:04 gcc-4.2
drwxr-xr-x 20 root root 4096 2008-04-22 13:54 linux-headers-2.6.24-16
drwxr-xr-x 6 root root 4096 2008-04-22 13:54 linux-headers-2.6.24-16-generic
drwxr-xr-x 20 root root 4096 2008-08-30 14:51 linux-headers-2.6.24-19
drwxr-xr-x 6 root root 4096 2008-08-30 14:51 linux-headers-2.6.24-19-generic
drwxr-xr-x 22 root root 4096 2008-09-07 19:40 linux-headers-2.6.27-2
drwxr-xr-x 7 root root 4096 2008-09-07 19:40 linux-headers-2.6.27-2-generic
drwxr-xr-x 22 root root 4096 2008-09-15 05:20 linux-headers-2.6.27-3
drwxr-xr-x 7 root root 4096 2008-09-15 05:20 linux-headers-2.6.27-3-generic
drwxr-xr-x 22 root root 4096 2008-09-27 08:13 linux-headers-2.6.27-4
drwxr-xr-x 7 root root 4096 2008-09-27 08:13 linux-headers-2.6.27-4-generic
-rw-r--r-- 1 root root 12012180 2008-09-28 22:51 xorg-driver-fglrx_8.532-0ubuntu1_i386.deb
-rw-r--r-- 1 root root 76592 2008-09-28 22:51 xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb
.
file /lib/modules/2.6.27-4-generic/build/include/linux/agp_backend.h says: AGP=1
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.27-4-generic/build/include/linux/autoconf.h says: SMP=1
file /lib/modules/2.6.27-4-generic/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 18 2008-09-28 22:52 ./libfglrx_ip.a -> libfglrx_ip.a.GCC4
.
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
Assuming default VMAP API
Assuming default munmap API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.27-4-generic/build SUBDIRS=/var/lib/dkms/fglrx/8.532/build modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-4-generic'
CC [M] /var/lib/dkms/fglrx/8.532/build/firegl_public.o
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_printk’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:2044: warning: format not a string literal and no format arguments
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_flush_cache’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:2927: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_vm_phys_addr_str’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3749: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3750: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3751: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3753: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘KCL_enable_pat’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:4657: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘KCL_disable_pat’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:4676: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: At top level:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:6368: warning: initialization from incompatible pointer type
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:6394: warning: initialization from incompatible pointer type
make[2]: *** [/var/lib/dkms/fglrx/8.532/build/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.532/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-4-generic'
make: *** [kmod_build] Error 2
build failed with return value 2


I see this patch: http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg558751.html

... but I don't know how to figure out the manual steps of the dpkg install to apply the patch and try installing it ... requires someone smarter than me for that

Vitaliy Yakovchuk
10-11-2008, 08:47 AM
I am running on Ubuntu intrepid 8.10 with kernel 2.6.27-4-generic

just running ./ati-driver-installer-8-9-x86.x86_64.run results in ...

Error: ./default_policy.sh does not support version
default:v2:i686:lib::none:2.6.27-4-generic; make sure that the version is being
correctly set by --iscurrentdistro


so I run ...

./ati-driver-installer-8-9-x86.x86_64.run --buildpkg Ubuntu/intrepid


which seems to be successful ...

Package /usr/src/xorg-driver-fglrx_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-kernel-source_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-amdcccle_8.532-0ubuntu1_i386.deb has been successfully generated
Package /usr/src/fglrx-modaliases_8.532-0ubuntu1_i386.deb has been successfully generated


then I try to install ...

# dpkg -i *.deb
(Reading database ... 189664 files and directories currently installed.)
Preparing to replace fglrx-amdcccle 2:8.532-0ubuntu1 (using fglrx-amdcccle_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement fglrx-amdcccle ...
Preparing to replace fglrx-kernel-source 2:8.532-0ubuntu1 (using fglrx-kernel-source_8.532-0ubuntu1_i386.deb) ...
Removing all DKMS Modules
Done.
Unpacking replacement fglrx-kernel-source ...
Preparing to replace fglrx-modaliases 2:8.532-0ubuntu1 (using fglrx-modaliases_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement fglrx-modaliases ...
Preparing to replace xorg-driver-fglrx 2:8.532-0ubuntu1 (using xorg-driver-fglrx_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement xorg-driver-fglrx ...
Preparing to replace xorg-driver-fglrx-dev 2:8.532-0ubuntu1 (using xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb) ...
Unpacking replacement xorg-driver-fglrx-dev ...
Setting up fglrx-kernel-source (2:8.532-0ubuntu1) ...
Adding Module to DKMS build system
Doing initial module build

Error! Build of fglrx.ko failed for: 2.6.27-4-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/fglrx/8.532/build/ for more information.
Installing initial module

Error! Could not locate fglrx.ko for module fglrx in the DKMS tree.
You must run a dkms build for kernel 2.6.27-4-generic (i686) first.
Done.

Setting up fglrx-modaliases (2:8.532-0ubuntu1) ...
Setting up xorg-driver-fglrx (2:8.532-0ubuntu1) ...

Processing triggers for man-db ...
Setting up xorg-driver-fglrx-dev (2:8.532-0ubuntu1) ...
Setting up fglrx-amdcccle (2:8.532-0ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place


trying to see what the error is ...

# cat make.sh.log
ATI module generator V 2.0
==========================
initializing...
build_date =Sun Sep 28 22:52:20 EDT 2008
uname -a =Linux christa-desktop 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.27-4-generic
uname -v =#1 SMP Wed Sep 24 01:30:51 UTC 2008
uid=0(root) gid=0(root) groups=0(root)
.
drwxr-xr-x 52 root root 12288 2008-09-28 22:40 /usr/include
.
total 137252
-rwxr-xr-x 1 christa christa 53989404 2008-07-13 21:00 ati-driver-installer-8.28.8.run
-rwxr-xr-x 1 root src 66269347 2008-09-28 20:27 ati-driver-installer-8-9-x86.x86_64.run
drwxr-xr-x 2 root root 4096 2008-09-28 22:52 fglrx-8.532
-rw-r--r-- 1 root root 6605328 2008-09-28 22:51 fglrx-amdcccle_8.532-0ubuntu1_i386.deb
-rw-rw-r-- 1 root root 2478 2008-09-28 22:51 fglrx-installer_8.532-0ubuntu1_i386.changes
-rw-r--r-- 1 root root 1350468 2008-09-28 22:51 fglrx-kernel-source_8.532-0ubuntu1_i386.deb
-rw-r--r-- 1 root root 9328 2008-09-28 22:51 fglrx-modaliases_8.532-0ubuntu1_i386.deb
drwxr-xr-x 4 root root 4096 2008-09-07 20:04 gcc-4.2
drwxr-xr-x 20 root root 4096 2008-04-22 13:54 linux-headers-2.6.24-16
drwxr-xr-x 6 root root 4096 2008-04-22 13:54 linux-headers-2.6.24-16-generic
drwxr-xr-x 20 root root 4096 2008-08-30 14:51 linux-headers-2.6.24-19
drwxr-xr-x 6 root root 4096 2008-08-30 14:51 linux-headers-2.6.24-19-generic
drwxr-xr-x 22 root root 4096 2008-09-07 19:40 linux-headers-2.6.27-2
drwxr-xr-x 7 root root 4096 2008-09-07 19:40 linux-headers-2.6.27-2-generic
drwxr-xr-x 22 root root 4096 2008-09-15 05:20 linux-headers-2.6.27-3
drwxr-xr-x 7 root root 4096 2008-09-15 05:20 linux-headers-2.6.27-3-generic
drwxr-xr-x 22 root root 4096 2008-09-27 08:13 linux-headers-2.6.27-4
drwxr-xr-x 7 root root 4096 2008-09-27 08:13 linux-headers-2.6.27-4-generic
-rw-r--r-- 1 root root 12012180 2008-09-28 22:51 xorg-driver-fglrx_8.532-0ubuntu1_i386.deb
-rw-r--r-- 1 root root 76592 2008-09-28 22:51 xorg-driver-fglrx-dev_8.532-0ubuntu1_i386.deb
.
file /lib/modules/2.6.27-4-generic/build/include/linux/agp_backend.h says: AGP=1
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.27-4-generic/build/include/linux/autoconf.h says: SMP=1
file /lib/modules/2.6.27-4-generic/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 18 2008-09-28 22:52 ./libfglrx_ip.a -> libfglrx_ip.a.GCC4
.
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
Assuming default VMAP API
Assuming default munmap API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.27-4-generic/build SUBDIRS=/var/lib/dkms/fglrx/8.532/build modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-4-generic'
CC [M] /var/lib/dkms/fglrx/8.532/build/firegl_public.o
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_printk’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:2044: warning: format not a string literal and no format arguments
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_flush_cache’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:2927: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘__ke_vm_phys_addr_str’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3749: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3750: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3751: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:3753: warning: return makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘KCL_enable_pat’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:4657: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: In function ‘KCL_disable_pat’:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:4676: error: too many arguments to function ‘smp_call_function’
/var/lib/dkms/fglrx/8.532/build/firegl_public.c: At top level:
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:6368: warning: initialization from incompatible pointer type
/var/lib/dkms/fglrx/8.532/build/firegl_public.c:6394: warning: initialization from incompatible pointer type
make[2]: *** [/var/lib/dkms/fglrx/8.532/build/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.532/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-4-generic'
make: *** [kmod_build] Error 2
build failed with return value 2


I see this patch: http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg558751.html

... but I don't know how to figure out the manual steps of the dpkg install to apply the patch and try installing it ... requires someone smarter than me for that
Hi, Yesterday I've install Mandriva 2009 and had the same problem. I prepared patched driver installer. I had no original header file to create installer, so I've changed start type of this installer, any commands of driver will not work, you should just run this installer, by typing "./ati-driver-installer-8.532-x86.x86_64-patched.run" (with no parameters). If you want to create rpms, debs, etc, you should unpack this installer (by typing "./ati-driver-installer-8.532-x86.x86_64-patched.run --target Unpack-directory") and use ati-installer.sh command by yourself. It uses two parameters, where first is driver version. For example "./ati-installer.sh 8.532 --install" instead "./ati-installer.sh --install"

Here is the download link for the patched version:
http://webfile.ukrwest.net/download.php?file=536ati-driver-installer-8.532-x86.x86_64-patched.run

Press "Завантажити файл" button on the download page (its "Download file" by Ukrainian) after few seconds of reservation.

Vitaliy Yakovchuk
10-11-2008, 08:55 AM
Hi, Yesterday I've install Mandriva 2009 and had the same problem. I prepared patched driver installer. I had no original header file to create installer, so I've changed start type of this installer, any commands of driver will not work, you should just run this installer, by typing "./ati-driver-installer-8.532-x86.x86_64-patched.run" (with no parameters). If you want to create rpms, debs, etc, you should unpack this installer (by typing "./ati-driver-installer-8.532-x86.x86_64-patched.run --target Unpack-directory") and use ati-installer.sh command by yourself. It uses two parameters, where first is driver version. For example "./ati-installer.sh 8.532 --install" instead "./ati-installer.sh --install"

Here is the download link for the patched version:
http://webfile.ukrwest.net/download.php?file=536ati-driver-installer-8.532-x86.x86_64-patched.run

Press "Завантажити файл" button on the download page (its "Download file" by Ukrainian) after few seconds of reservation.

Kano
10-11-2008, 11:31 AM
For Debian or Ubuntu with 2.6.27 you can use:

http://kanotix.com/files/install-fglrx-debian.sh

sh install-fglrx-debian.sh -v 8-9

But don't try it with Xserver 1.5 - Ubuntu 8.10 is not supported!