From: <a.o...@bl...> - 2004-05-18 13:31:58
|
On Saturday 15 May 2004 05:08, Groepaz wrote: > after some time i tried to compile a recent version of gclinux tonight > and run into some odd trouble.... i grabbed the 2.6.6 kernel, copied > the cvs stuff over it as usual, copied the gamecube_default config > to .config etc... then when i make vmlinux i get > > drivers/built-in.o(.text+0x39d84): In function `gamecubefb_writel': > : undefined reference to `fb_writel_real' > > putting a #define __powerpc__ on top of gamecubefb.c "fixes" it (as > in, makes it compile atleast) but then i get a console with messed > up colors :/ also the network stuff doesnt seem to work, although > the stuff it prints out looks all perfectly ok. :/ > > i'm really wondering what i am doing wrong....or is the source > really broken at this point? :) On Sat, May 15, 2004 at 05:56:36AM +0200, Groepaz wrote: > mmmh must be.... even after a complete clean recompile...same > problem :/ looks like __powerpc__ isnt defined at all (but it > should be i suppose)... i'd guess that this causes all sorta > funny problems so uhm....how to fix? :) Your compiler is broken. I won't even pretend to know where the exact breakage is; you'll have to resolve that one with the maintainer. That said, the recommended compiler, for both kernel and userspace, is the uClibc one: http://uclibc.org/toolchains.html Although building from source is recommended, a pre-built one is also available: http://gc-linux.org/down/ppc-linux-uclibc-toolchain.tar.bz2 with the only bonus being it comes with a cross-debugger for those who might find it of use. (hint: buildroot) Consequently, the top-level Makefile in CVS is now gone as it's clearly toolchain biased. You'll now have to do something like: $ export ARCH=ppc CROSS_COMPILE=$my-powerpc-toolchain- $ make or: $ make ARCH=ppc CROSS_COMPILE=$my-powerpc-toolchain- or just edit the Makefile to match your setup. Arthur |