On 4/10/2012 10:03 PM, Richard Miles wrote:
> I have attempted to install firefox and got This:
> fink.build/firefox8-8.0.1-2/mozilla-release/obj-x86_64-apple-darwin11.3.0/dist/include/nss
>  -I/sw/lib/libjpeg8-turbo/include      -fPIC -I/sw/include 
> -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wpointer-arith 
> -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor 
> -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type 
> -fno-strict-aliasing -fno-common -std=gnu++0x -pthread -pipe  -DNDEBUG 
> -DTRIMMED -g -O3 -fomit-frame-pointer  -I/sw/include -I/usr/X11R6/include 
> -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF 
> .deps/dom_quickstubs.pp 
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/obj-x86_64-apple-darwin11.3.0/js/src/xpconnect/src/dom_quickstubs.cpp
> In file included from 
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/obj-x86_64-apple-darwin11.3.0/js/src/xpconnect/src/dom_quickstubs.cpp:7:
> In file included from 
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/js/src/nanojit/nanojit.h:366:
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/js/src/nanojit/RegAlloc.h:183:24:
>  error: non-constant-expression cannot be narrowed from type 'int' to 
> 'Register' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
>          Register r = { (sizeof(RegisterMask) == 4) ? lsbSet32(mask) : 
> lsbSet64(mask) };
>                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/js/src/nanojit/RegAlloc.h:183:24:
>  note: override this message by inserting an explicit cast
>          Register r = { (sizeof(RegisterMask) == 4) ? lsbSet32(mask) : 
> lsbSet64(mask) };
>                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                         static_cast<Register>(                                
>        )
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/js/src/nanojit/RegAlloc.h:191:24:
>  error: non-constant-expression cannot be narrowed from type 'int' to 
> 'Register' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
>          Register r = { (sizeof(RegisterMask) == 4) ? msbSet32(mask) : 
> msbSet64(mask) };
>                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /sw/src/fink.build/firefox8-8.0.1-2/mozilla-release/js/src/nanojit/RegAlloc.h:191:24:
>  note: override this message by inserting an explicit cast
>          Register r = { (sizeof(RegisterMask) == 4) ? msbSet32(mask) : 
> msbSet64(mask) };
>                         
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                         static_cast<Register>(                                
>        )

Unfortunately, this is a known failure with Xcode 4.3 and firefox8. And 
more unfortunately, firefox8 is probably the last version of firefox-x11 
that's buildable on OS X without some *major* effort. Mozilla did a lot 
of changes after version 8 that broke any OS X build that's not native.

A previous user had reported this about a month ago and tried some 
fixes, but there was no resolution.

There are 2 possibilities to try that I can think of...

Add these two lines to the very end of the PatchScript field (before the 
closing << in line 82) in 
/sw/fink/dists/stable/main/finkinfo/crypto/firefox8.info

perl -pi -e 's|gcc-4.2|gcc-4|g' js/src/configure.in configure.in
perl -pi -e 's|g++-4.2|g++-4|g' js/src/configure.in configure.in

and then install the gcc46 package and try rebuilding firefox8.

If that doesn't work, remove those lines and instead add these at line 
87 (before the UseMaxBuildJobs: true line)

SetCC: clang
SetCXX: clang++

Unfortunately, I don't have high hopes for either one working.

Hanspeter

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to