Matti, I tried to build icecat-5.0 on Loongson 2F under gNewSense metad, I think my experience could help you so here is what I did.
The patches I used come from the IceWeasel-5.0 package from debian. I attached them to this mail so that you can use them. I first commented out the following line in .mozconfig as this line prevents some images to be displayed in 3.6.x: ac_add_options --enable-optimize="-pipe -O3" Then: ./configure && make gives me the first error: ./assembler/jit/ExecutableAllocator.h:398:6: error: #error "The cacheFlush support is missing on this platform." I fixed this problem with: patch -Np1 <Bug-638056-Avoid-The-cacheFlush-support-is-missing-o.patch cd js/src ./configure cd ../.. make Then, another error message: ../../dist/include/nsIVariant.h:134:21: error: jspubtd.h: No such file or directory ../../dist/include/nsIVariant.h:222: error: ‘jsval’ has not been declared I ran `make` once again and went through this problem. Then, still: ../../ipc/chromium/src/build/build_config.h:64:2: error: #error Please add support for your architecture in build/build_config.h So I did: patch -Np1 <Add-mips-hppa-ia64-s390-and-sparc-defines-in-ipc-chr.patch Some time later, issuing `make` gives: xptcinvoke_mips64.cpp:44:2: error: #error "This code is for MIPS N32 only" Here I am stuck. If your operating system is built for MIPS n32, you may go through this, otherwise you most probably will have the same problem. Christophe
From: Mike Hommey <m...@glandium.org> Date: Mon, 25 Apr 2011 11:32:45 +0200 Subject: Add mips, hppa, ia64, s390 and sparc defines in ipc/chromium/src/build/build_config.h --- ipc/chromium/src/build/build_config.h | 15 +++++++++++++++ ipc/chromium/src/chrome/common/ipc_message_utils.h | 2 +- 2 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ipc/chromium/src/build/build_config.h b/ipc/chromium/src/build/build_config.h index f7293d9..3536d1c 100644 --- a/ipc/chromium/src/build/build_config.h +++ b/ipc/chromium/src/build/build_config.h @@ -60,6 +60,21 @@ #elif defined(__ppc__) || defined(__powerpc__) #define ARCH_CPU_PPC 1 #define ARCH_CPU_32_BITS 1 +#elif defined(__mips__) +#define ARCH_CPU_MIPS 1 +#define ARCH_CPU_32_BITS 1 +#elif defined(__hppa__) +#define ARCH_CPU_HPPA 1 +#define ARCH_CPU_32_BITS 1 +#elif defined(__ia64__) +#define ARCH_CPU_IA64 1 +#define ARCH_CPU_64_BITS 1 +#elif defined(__s390__) +#define ARCH_CPU_S390 1 +#define ARCH_CPU_32_BITS 1 +#elif defined(__sparc__) +#define ARCH_CPU_SPARC 1 +#define ARCH_CPU_32_BITS 1 #else #error Please add support for your architecture in build/build_config.h #endif diff --git a/ipc/chromium/src/chrome/common/ipc_message_utils.h b/ipc/chromium/src/chrome/common/ipc_message_utils.h index 3c50df9..1486cb3 100644 --- a/ipc/chromium/src/chrome/common/ipc_message_utils.h +++ b/ipc/chromium/src/chrome/common/ipc_message_utils.h @@ -219,7 +219,7 @@ struct ParamTraits<unsigned long> { } }; -#if !(defined(OS_MACOSX) || defined(OS_WIN) || (defined(CHROMIUM_MOZILLA_BUILD) && defined(OS_LINUX) && defined(ARCH_CPU_64_BITS))) +#if !(defined(OS_MACOSX) || defined(OS_WIN) || (defined(CHROMIUM_MOZILLA_BUILD) && defined(OS_LINUX) && defined(ARCH_CPU_64_BITS)) || defined(ARCH_CPU_S390)) // There size_t is a synonym for |unsigned long| ... template <> struct ParamTraits<size_t> {
From: Mike Hommey <m...@glandium.org> Date: Fri, 18 Mar 2011 09:25:57 +0100 Subject: Bug 638056 - Avoid "The cacheFlush support is missing on this platform" error on exotic platforms --- js/src/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/js/src/Makefile.in b/js/src/Makefile.in index afb2f30..7faf1a8 100644 --- a/js/src/Makefile.in +++ b/js/src/Makefile.in @@ -391,7 +391,7 @@ CPPSRCS += checks.cc \ # END enclude sources for V8 dtoa ############################################# -ifeq (,$(filter-out powerpc sparc,$(TARGET_CPU))) +ifeq (,$(filter arm %86 x86_64,$(TARGET_CPU))) VPATH += $(srcdir)/assembler \ $(srcdir)/assembler/wtf \
-- http://gnuzilla.gnu.org