PDA

View Full Version : Can't compile kernel module (ATI FireGL X1)


watchdog
05-18-04, 06:53 AM
I can't compile the the kernel module on a zx6000-Workstation.
The Info of my System:

Linux zx6000 2.4.18-e.12smp #1 SMP Thu Oct 17 15:13:01 EDT 2002 ia64 unknown, XFree86-xfs-4.1.0-38, gcc-2.96-112.7.2, gcc-g77-2.96-112.7.2
gcc-objc-2.96-112.7.2, gcc-c++-2.96-112.7.2, kernel-utils-2.4-6ia64,
kernel-source-2.4.18-e.12, kernel-2.4.18-e.12.

/lib/modules/fglrx/build_mod ./make.sh

I get the error linking failed - kernel module was not generated

the make.log has the fallowing lines:

ATI module generator V 2.0
==========================
initializing...
build_date =Die Mai 18 09:25:25 CEST 2004
uname -a =Linux demo-zx6000-rh 2.4.18-e.12smp #1 SMP Thu Oct 17 15:13:01 EDT 2002 ia64 unknown
uname -s =Linux
uname -m =ia64
uname -r =2.4.18-e.12smp
uname -v =#1 SMP Thu Oct 17 15:13:01 EDT 2002
uid=0(root) gid=0(root) Gruppen=0(root),1(bin),2(daemon),3(sys),4(adm),6(d isk),10(wheel)
In file included from /lib/modules/2.4.18-e.12smp/build/include/linux/net.h:22,
from /lib/modules/2.4.18-e.12smp/build/include/linux/fs.h:15,
from /lib/modules/2.4.18-e.12smp/build/include/linux/capability.h:17,
from /lib/modules/2.4.18-e.12smp/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.18-e.12smp/build/include/linux/sched.h:9,
from /lib/modules/2.4.18-e.12smp/build/include/linux/mm.h:4,
from /lib/modules/2.4.18-e.12smp/build/include/linux/slab.h:14,
from /lib/modules/2.4.18-e.12smp/build/include/asm/pci.h:4,
from /lib/modules/2.4.18-e.12smp/build/include/linux/pci.h:617,
from ./nvidia-agp.c:10:
/lib/modules/2.4.18-e.12smp/build/include/linux/socket.h: In function `__cmsg_nxthdr':
/lib/modules/2.4.18-e.12smp/build/include/linux/socket.h:107: warning: cast increases required alignment of target type
compiling './firegl_public.c'...
gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -DATI_AGP_HOOK -DATI -DFGL -DFGL_RX -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=0 -ffixed-r13 -mfixed-range=f12-f15,f32-f127 -Dfglrx -DFGL_LINUX240_VMA_API -D__SMP__ -DMODVERSIONS -include /lib/modules/2.4.18-e.12smp/build/include/linux/modversions.h -D__AGP__ -Ipatch/include -I/lib/modules/2.4.18-e.12smp/build/include -I/lib/modules/2.4.18-e.12smp/build/include/../drivers/char/drm -DFIREGL_410 -c ./firegl_public.c -o firegl_public.o
In file included from /lib/modules/2.4.18-e.12smp/build/include/asm/processor.h:19,
from /lib/modules/2.4.18-e.12smp/build/include/linux/prefetch.h:13,
from /lib/modules/2.4.18-e.12smp/build/include/linux/list.h:6,
from /lib/modules/2.4.18-e.12smp/build/include/linux/module.h:12,
from ./firegl_public.c:72:
/lib/modules/2.4.18-e.12smp/build/include/asm/ptrace.h: In function `force_successful_syscall_return':
/lib/modules/2.4.18-e.12smp/build/include/asm/ptrace.h:245: warning: cast increases required alignment of target type
In file included from /lib/modules/2.4.18-e.12smp/build/include/linux/net.h:22,
from /lib/modules/2.4.18-e.12smp/build/include/linux/fs.h:15,
from ./firegl_public.c:76:
/lib/modules/2.4.18-e.12smp/build/include/linux/socket.h: In function `__cmsg_nxthdr':
/lib/modules/2.4.18-e.12smp/build/include/linux/socket.h:107: warning: cast increases required alignment of target type
In file included from ./firegl_public.c:123:
firegl_public.h: At top level:
firegl_public.h:108: warning: `regparm' attribute directive ignored
firegl_public.h:109: warning: `regparm' attribute directive ignored
firegl_public.h:110: warning: `regparm' attribute directive ignored
firegl_public.h:111: warning: `regparm' attribute directive ignored
firegl_public.h:115: warning: `regparm' attribute directive ignored
firegl_public.h:119: warning: `regparm' attribute directive ignored
firegl_public.h:120: warning: `regparm' attribute directive ignored
firegl_public.h:121: warning: `regparm' attribute directive ignored
firegl_public.h:125: warning: `regparm' attribute directive ignored
firegl_public.h:129: warning: `regparm' attribute directive ignored
firegl_public.h:130: warning: `regparm' attribute directive ignored
firegl_public.h:407: warning: `regparm' attribute directive ignored
firegl_public.h:409: warning: `regparm' attribute directive ignored
firegl_public.h:410: warning: `regparm' attribute directive ignored
firegl_public.h:411: warning: `regparm' attribute directive ignored
firegl_public.h:412: warning: `regparm' attribute directive ignored
firegl_public.h:413: warning: `regparm' attribute directive ignored
firegl_public.h:414: warning: `regparm' attribute directive ignored
firegl_public.h:415: warning: `regparm' attribute directive ignored
firegl_public.h:416: warning: `regparm' attribute directive ignored
firegl_public.h:417: warning: `regparm' attribute directive ignored
firegl_public.h:418: warning: `regparm' attribute directive ignored
firegl_public.h:419: warning: `regparm' attribute directive ignored
firegl_public.h:420: warning: `regparm' attribute directive ignored
./firegl_public.c: In function `mlock':
./firegl_public.c:163: warning: `dummy3' might be used uninitialized in this function
./firegl_public.c:163: warning: `dummy4' might be used uninitialized in this function
./firegl_public.c:163: warning: `dummy5' might be used uninitialized in this function
./firegl_public.c: In function `munlock':
./firegl_public.c:165: warning: `dummy3' might be used uninitialized in this function
./firegl_public.c:165: warning: `dummy4' might be used uninitialized in this function
./firegl_public.c:165: warning: `dummy5' might be used uninitialized in this function
./firegl_public.c: In function `__ke_pci_get_irq':
./firegl_public.c:1376: warning: cast increases required alignment of target type
linking of fglrx kernel module...
ld -r firegl_public.o agpgart_be.o agp3.o i7505-agp.o nvidia-agp.o ./libfglrx_ip.a -o fglrx.o
ld: vm.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(vm.o)
ld: firegl_drv.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_drv.o)
ld: firegl_ioctl.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_ioctl.o)
ld: firegl_lock.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_lock.o)
ld: firegl_mutex.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_mutex.o)
ld: firegl_bufs.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_bufs.o)
ld: firegl_texture.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_texture.o)
ld: firegl_mem.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_mem.o)
ld: firegl_aperture.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_aperture.o)
ld: firegl_agpgart.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_agpgart.o)
ld: firegl_context.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_context.o)
ld: firegl_cp.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_cp.o)
ld: firegl_umm.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(firegl_umm.o)
ld: R200_context.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(R200_context.o)
ld: R200_hw.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(R200_hw.o)
ld: R200_irq.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(R200_irq.o)
ld: init.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(init.o)
ld: memory.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(memory.o)
ld: proc.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(proc.o)
ld: auth.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(auth.o)
ld: drawable.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(drawable.o)
ld: bufs.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(bufs.o)
ld: ioctl.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(ioctl.o)
ld: fops.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(fops.o)
ld: agpsupport.o: linking 64-bit files with 32-bit files
Bad value: failed to merge target specific data of file ./libfglrx_ip.a(agpsupport.o)
ld: bfd assertion fail elflink.h:2669
ld: vm.o: unknown relocation type 204
ld: vm.o: unknown relocation type 224
ld: vm.o: unknown relocation type 257
ld: vm.o: unknown relocation type 314
ld: vm.o: unknown relocation type 349
ld: vm.o: unknown relocation type 398
ld: vm.o: unknown relocation type 437
ld: vm.o: unknown relocation type 456
ld: vm.o: unknown relocation type 527
ld: vm.o: unknown relocation type 576
ld: vm.o: unknown relocation type 596
ld: vm.o: unknown relocation type 627
ld: vm.o: unknown relocation type 720
ld: vm.o: unknown relocation type 746
ld: vm.o: unknown relocation type 803
ld: vm.o: unknown relocation type 848
ld: vm.o: unknown relocation type 873
ld: vm.o: unknown relocation type 899
ld: vm.o: unknown relocation type 966
ld: vm.o: unknown relocation type 1008
ld: vm.o: unknown relocation type 1038
ld: vm.o: unknown relocation type 1092
ld: vm.o: unknown relocation type 1139
ld: vm.o: unknown relocation type 1167
ld: vm.o: unknown relocation type 1199
ld: vm.o: unknown relocation type 1231
ld: vm.o: unknown relocation type 1263
ld: vm.o: unknown relocation type 1295
ld: vm.o: unknown relocation type 1323
ld: vm.o: unknown relocation type 1351
ld: vm.o: unknown relocation type 1379
ld: vm.o: unknown relocation type 1407
ld: vm.o: unknown relocation type 1460
ld: vm.o: unknown relocation type 1527
ld: vm.o: unknown relocation type 1641
ld: vm.o: unknown relocation type 1690
ld: vm.o: unknown relocation type 1716
ld: vm.o: unknown relocation type 1758
ld: vm.o: unknown relocation type 1784
ld: vm.o: unknown relocation type 1833
ld: vm.o: unknown relocation type 1858
ld: vm.o: unknown relocation type 1960
ld: vm.o: unknown relocation type 2013
ld: vm.o: unknown relocation type 2111
ld: vm.o: unknown relocation type 2199
ld: vm.o: unknown relocation type 2220
ld: vm.o: unknown relocation type 2327
ld: vm.o: unknown relocation type 2374
ld: vm.o: unknown relocation type 2413
ld: vm.o: unknown relocation type 2442
ld: final link failed: Bad value
linking failed - kernel module was not generated

How can I solve this problem?
any idea?

thanks for your help!
watchdog

wilson
05-18-04, 05:07 PM
You may have more luck asking your question in an ATI forum

Kamel
07-08-04, 01:06 AM
or in the linux forums...

i feel i know what the problem is though, i think that's a problem you had with regparm. get the newest drivers and it should be fixed. if that's a no-go, you can go into your kernel configuration and turn it off, then recompile. should be good to go. good luck, i guess this is a bit old, but better late than never.