[ydl-gen] Building Firefox 4.0 under YDL 6.2 PPC

Pat Wall pjwall at mac.com
Thu Jul 29 01:49:32 JST 2010


On Tue, 27 Jul 2010 09:00:21 -0400
Derick Centeno <dcenteno at ydl.net> wrote:

> On Mon, 26 Jul 2010 20:34:48 +0100
> Pat Wall <pjwall at mac.com> wrote:
> 
> > Hi All
> > 
> > I was wondering if anyone has tried building Firefox 4.0 beta or
> > from the latest source tree?
> > 
> > For me the build fails with an architecture support error for ycbcr
> > which has been added to Firefox from Chromium code:
> > 
> > "/home/pjwall/src/mozilla-central/gfx/ycbcr/chromium_types.h:76:2:
> > error: #error Please add support for your architecture in
> > chromium_types.h"
> > 

Hi Derick!

> > 
> 
> Hi Pat:
> 
> The fastest and least time consuming option you may have is to comment
> out the offending code.

It turns out that a bug has already been filed in relation to the error.
https://bugzilla.mozilla.org/show_bug.cgi?id=576764#c1

chromium_types.h defines "_ppc_" as lowercase when in fact it should be
uppercase "_PPC_" or "_powerpc_" I changed the #define in the file to
read "_PPC_" and it buit successfully as described by the submitter -

Happy Days :-)

> 
> The other possibility is to rewrite chromium_types.h so that it
> references PPC recognized commands which also means that you may have
> to become (or be) very familiar with PPC assembler and/or the PPC
> command architecture controlling various aspects of the PPC cpu. The
> problem with that is that you could make the new file so specific to
> the PPC you own that the code may not function on other PPC systems
> differently designed.

I'm afraid PPC assembler is way beyond my reach :-) Thankfully it
appears to be small bug as such with a simple fix.

Thanks again


Pat


More information about the yellowdog-general mailing list