Hello, I've just come to Fedora from Debian a few days ago and find myself in a bit of trouble with building a kernel module for the ATI Catalyst driver (for HD 5800). Various posts suggest that akmods (similar to Debian's DKMS) is the best way to go so that's where I started. After installing akmod-catalyst and realizing that no module was generated, I tried:
Code:
% sudo akmods --force
/usr/sbin/akmods: line 145: ulimit: core file size: cannot modify limit: Invalid argument
Checking kmods exist for 3.2.9-2.fc16.x86_64 [ OK ]
Building and installing catalyst-kmod [FAILED]
Building rpms failed; see /var/cache/akmods/catalyst/12.1-1-for-3.2.9-2.fc16.x86_64.failed.log for details
Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
Checking the specified log file, the highlights seem to be:
Code:
12 Mar 20:59:06 akmods: Building RPM using the command '/usr/bin/akmodsbuild --target x86_64 --kernels 3.2.9-2.fc16.x86_64 /usr/src/akmods/catalyst-kmod.latest'
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:162:16: warning: 'module_log_map' defined but not used [-Wunused-variable]
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:175:19: warning: 'module_type_map' defined but not used [-Wunused-variable]
CC [M] /tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
In file included from /tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:33:0:
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
In file included from /usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/uaccess.h:575:0,
from include/asm-generic/termios.h:51,
from /usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/termios.h:1,
from include/linux/termios.h:5,
from include/linux/tty.h:41,
from include/linux/vt_kern.h:11,
from /tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:35:
/usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
/usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/uaccess_64.h:57:7: error: called object '2' is not a function
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: At top level:
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:162:16: warning: 'module_log_map' defined but not used [-Wunused-variable]
/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.h:175:19: warning: 'module_type_map' defined but not used [-Wunused-variable]
make[2]: *** [/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
make[1]: *** [_module_/tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.2.9-2.fc16.x86_64'
make: *** [kmod_build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.hKSYWC (%build)
...
...
...
12 Mar 20:59:10 akmodsbuild: from /tmp/akmodsbuild.0JR0K814/BUILD/catalyst-kmod-12.1/_kmod_build_3.2.9-2.fc16.x86_64/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:35:
12 Mar 20:59:10 akmodsbuild: /usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/uaccess_64.h: In function 'copy_from_user':
12 Mar 20:59:10 akmodsbuild: /usr/src/kernels/3.2.9-2.fc16.x86_64/arch/x86/include/asm/uaccess_64.h:57:7: error: called object '2' is not a function
...
Poking around the internet, I don't find much reference to the same problem aside from a few build.log files that look similar (with no background or resolution nearby). I then tried to install the Catalyst drivers directly from AMD and was notified of an error in building the module with a log dumped in /usr/share/ati/fglrx-install.log. In this file was the exact same error...
Does anyone have any idea what may be going on here?
Thanks,
bnahill