Bug#640961: iceweasel: FTBFS: error: #error Please add support for your architecture in build/build_config.h

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Mon Oct 24 04:36:42 UTC 2011


Hi,

2011/9/9 Mike Hommey <mh at glandium.org>:
> On Fri, Sep 09, 2011 at 08:39:18AM +0900, Nobuhiro Iwamatsu wrote:
>> I created a patch which support Renesas SH.
>> I attached patch and build log when I applied a patch.
>>
>> Could  you check and apply a patch?
>
> Thanks for the patch. Some comments below.
>
>> Best regards,
>>  Nobuhiro
>>
>> --
>> Nobuhiro Iwamatsu
>>    iwamatsu at {nigauri.org / debian.org}
>>    GPG ID: 40AD1FA6
>
>> diff --git a/ipc/chromium/src/base/third_party/nspr/prcpucfg_linux.h b/ipc/chromium/src/base/third_party/nspr/prcpucfg_linux.h
>> index 776c21e..dd1708e 100644
>> --- a/ipc/chromium/src/base/third_party/nspr/prcpucfg_linux.h
>> +++ b/ipc/chromium/src/base/third_party/nspr/prcpucfg_linux.h
>> @@ -645,6 +645,56 @@
>>  #define PR_BYTES_PER_WORD_LOG2   2
>>  #define PR_BYTES_PER_DWORD_LOG2  3
>>
>> +#elif defined(__sh__)
>> +
>> +#ifdef __LITTLE_ENDIAN__
>> +#define IS_LITTLE_ENDIAN 1
>> +#undef  IS_BIG_ENDIAN
>> +#else
>> +#define IS_BIG_ENDIAN 1
>
> <snip>
>
> I guess we have that in nspr, don't we? I think it would be better to
> address the issue by using the header coming from libnspr4-dev.
>

Right.
Do you have a plan that  you change using nspr4 instead of
ipc/chromium/src/base/third_party/nspr ?

> I'll put fixing https://bugzilla.mozilla.org/show_bug.cgi?id=558313
> on my TODO list.
>
>> +#elif defined(__sh__) && (defined(__SH3__) || defined(__SH4__))
>> +#define ARCH_CPU_SH 1
>> +#define ARCH_CPU_32_BITS 1
>
> Waw, does iceweasel actually build and work on SH3 ?

maybe. However, it will not fully work.
Since sh3 may use each library where this is created from iceweasel, I enable.
If you think what this does not need. please remove.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6





More information about the pkg-mozilla-maintainers mailing list