Re: cvs broken?

[email protected] (Arthur Othieno)
Newsgroups gmane.linux.ports.game-cube.devel
Message-ID <20040518133015.GA320@mars>
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


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.