[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fglrx, Kernel 2.6.12 and GCC4



Hi Tobias,

El dom, 10-07-2005 a las 14:48 +0200, Tobias Krais escribió:
> Hi together,
> 
> maybe some of you have the same configuration as I have. I use Debian
> Sid, vanilla Kernel 2.6.12.2 with GCC4 and fglrx. But I can't compile
> fglrx. I followed the instructions on:
> http://tux3d.org/viewtopic.php?t=188&start=0&postdays=0&postorder=asc&highlight= and applied also the GGC4 patch. But when I want to compile following error comes up:
> ----%<-----
> tuxbox:/lib/modules/fglrx/build_mod# sh make.sh
> ATI module generator V 2.0
> ==========================
> initializing...
> make.sh: line 522: [: =: unary operator expected
> cleaning...
> patching 'highmem.h'...
> assuming new VMA API since we do have kernel 2.6.x...
> doing Makefile based build for kernel 2.6.x and higher
> make -C /lib/modules/2.6.12.2/build
> SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
> make[1]: Gehe in Verzeichnis »/usr/src/linux-2.6.12«
>   CC [M]  /lib/modules/fglrx/build_mod/2.6.x/agp3.o
>   CC [M]  /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
> /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.c:57: error: static
> declaration of '__fgl_agp_try_unsupported' follows non-static
> declaration
> /lib/modules/fglrx/build_mod/2.6.x/agp_backend.h:92: error: previous
> declaration of '__fgl_agp_try_unsupported' was here
> make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o] Fehler 1
> make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Fehler 2
> make[1]: Verlasse Verzeichnis »/usr/src/linux-2.6.12«
> make: *** [kmod_build] Fehler 2
> build failed with return value 2
> ----%<-----
> 
> Can this issue be solved at the moment? How did you succed?

That is still a GCC4 "issue." Use gcc 3.3/3.4 if you can't fix it. Note
that you'd need to recompile the kernel and all the modules. On the
other hand, ATI only supplies a GCC3 binary library to link with, so
make sure that it's ABI compatible with GCC4 before spending too much
time on it.

Greetings,
-- 
Javier Kohen <jkohen@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: