DRM/DRI Support for ATI Cards
sethbc at sethbc.org
sethbc at sethbc.org
Mon Jan 19 11:53:23 PST 2004
I was wondering if anyone has tried to build the DRM module for the ATI
Radeon's on amd64. The module complains of relocation errors, but cannot
be compiled with -fPIC either.
The errors for the DRM module without -fPIC in CFLAGS are as follows:
<snip the actual compile>
ld -Bshareable -d -warn-common -o radeon.ko radeon.kld
ld: radeon.kld: relocation R_X86_64_32S can not be used when making a
shared object; recompile with -fPIC
radeon.kld: could not read symbols: Bad value
*** Error code 1
the errors when compiled with -fPIC in CFLAGS are as follows:
everest# make
Warning: Object directory not changed from original
/usr/src/sys/modules/drm/radeon
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
touch opt_drm.h
cc -O -fPIC -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I- -I.
-I@ -I@/../include -I/usr/include -finline-limit=20000 -fno-common
-mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -c
/usr/src/sys/modules/drm/radeon/../../../dev/drm/radeon_cp.c
cc1: sorry, unimplemented: code model kernel not supported in PIC mode
cc1: error: code model `kernel' not supported in the 64 bit mode
*** Error code 1
Stop in /usr/src/sys/modules/drm/radeon.
in grepping through the source code it looked fairly portable, but i'm not
familiar enough with the FreeBSD kernel to even hazard a guess at how this
would be fixed. If someone else would take a look at it for me I'd be
eternally grateful (well eternally seems like kind of a long time, but
grateful anyway).
Thanks,
seth
More information about the freebsd-amd64
mailing list