Actually, there are a few more updates to make this actually work.  I'm going 
to outline the rough steps here:

Note: Perform these steps after running the Mac OS bootstrap script.

1. Make sure /usr/local/bin is on your PATH.  You can do this temporarily at 
the command prompt with: |export PATH=/usr/local/bin:$PATH|.  You can make this 
change permanent by adding it to your ~/.bash_profile

2. Uninstall gcc-4.6: brew uninstall gcc-4.6

3. Reinstall gcc-4.6 with multilib and c++ support: brew install --enable-cxx 
https://gist.github.com/artlogic/6988658/raw/aeb9d1ea098274ad3f3fe2637b9df7f308a8a120/gcc-4.6.rb

4. Check to make sure you can run both |gcc-4.6 -v| and |g++-4.6 -v|.  If 
either fails, you may need to run the following command: |brew link --overwrite 
gcc-4.6|

5. It's possible /usr/bin/c++ is not pointing at clang++ (as it should be if 
Xcode 5 is installed).  You can determine this by typing the following: |ls -l 
/usr/bin/c++|.  It should return something that looks like this: |lrwxr-xr-x  1 
root  admin  7 Sep 19 11:40 /usr/bin/c++ -> clang++|.  If c++ is pointing at 
something other than clang++, update it with the following commands: |sudo rm 
/usr/bin/c++| and then |sudo ln -s /usr/bin/clang++ /usr/bin/c++|.

It's worth saying that the modifications to the makefile and the bootstrap 
should probably be rolled into the default Mac OS install process.  I'm not 
sure who to talk to about that, however.

On Friday, October 18, 2013 9:28:47 AM UTC-4, Chris Mills wrote:
> Oh yeah - I obviously wasn't very awake when I checked this earlier ;-)
> 
> 
> 
> Many thanks!
> 
> 
> 
> Chris Mills
> 
>    Senior tech writer || Mozilla
> 
> developer.mozilla.org || MDN
> 
>    [email protected] || @chrisdavidmills
> 
> 
> 
> 
> 
> 
> 
> On 18 Oct 2013, at 14:26, Christopher De Cairos <[email protected]> 
> wrote:
> 
> 
> 
> > You'll be delighted to hear that I updated the article yesterday! I had 
> > meant to give you some notification of that, but I got distracted by a 
> > hockey game >.>
> 
> > 
> 
> > Regards,
> 
> > 
> 
> > Christopher De Cairos
> 
> > Integration Engineer - Webmaker
> 
> > Mozilla Foundation
> 
> > 
> 
> > On 2013-10-18 2:02 AM, Chris Mills wrote:
> 
> >> This is great news!
> 
> >> 
> 
> >> Can you help me update
> 
> >> 
> 
> >> https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#clang_errors_when_building_with_XCode_5_on_Mac
> 
> >> 
> 
> >> appropriately?
> 
> >> 
> 
> >> I'm getting a bit lost in the back and forth of it all ;-)
> 
> >> 
> 
> >> On 18 Oct 2013, at 02:46, Christopher De Cairos 
> >> <[email protected]> wrote:
> 
> >> 
> 
> >>> Hey James,
> 
> >>> 
> 
> >>> I can confirm that I was able to successfully flash the build onto my ZTE 
> >>> Open!
> 
> >>> 
> 
> >>> Regards,
> 
> >>> 
> 
> >>> Christopher De Cairos
> 
> >>> Integration Engineer - Webmaker
> 
> >>> Mozilla Foundation
> 
> >>> 
> 
> >>> On 2013-10-17 2:42 PM, James Kruth wrote:
> 
> >>>> That's great news!  Does it flash correctly on your device?
> 
> >>>> 
> 
> >>>> On Thursday, October 17, 2013 2:28:12 PM UTC-4, Christopher De Cairos 
> >>>> wrote:
> 
> >>>>> Yes, something funky is going on with c++
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> I've manually pointed c++ at clang++ and now everything's looking great!
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> Regards,
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> Christopher De Cairos
> 
> >>>>> 
> 
> >>>>> Integration Engineer - Webmaker
> 
> >>>>> 
> 
> >>>>> Mozilla Foundation
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> 
> 
> >>>>> On 2013-10-16 10:12 PM, James Kruth wrote:
> 
> >>>>> 
> 
> >>>>>> I'd go so far as to say that's incorrect if Xcode 5 is installed.  Is 
> >>>>>> there a new version of the Xcode command line tools available for you? 
> >>>>>>  I'm wondering if that's the difference?
> 
> >>>>>> On Wednesday, October 16, 2013 9:34:24 PM UTC-4, Christopher De Cairos 
> >>>>>> wrote:
> 
> >>>>>>> hmm yeah, my output is slightly different:
> 
> >>>>>>> B2G git:(master) which -a c++
> 
> >>>>>>> /usr/bin/c++
> 
> >>>>>>> /usr/bin/c++
> 
> >>>>>>> B2G git:(master) ls -l `which -a c++`
> 
> >>>>>>> lrwxr-xr-x  1 root  wheel  21 11 Oct 22:43 /usr/bin/c++ ->
> 
> >>>>>>> /usr/bin/llvm-g++-4.2
> 
> >>>>>>> lrwxr-xr-x  1 root  wheel  21 11 Oct 22:43 /usr/bin/c++ ->
> 
> >>>>>>> /usr/bin/llvm-g++-4.2
> 
> >>>>>>> Regards,
> 
> >>>>>>> Christopher De Cairos
> 
> >>>>>>> Integration Engineer - Webmaker
> 
> >>>>>>> Mozilla Foundation
> 
> >>>>>>> On 2013-10-16 9:16 PM, James Kruth wrote:
> 
> >>>>>>>> which -a c++
> 
> >>>>>> _______________________________________________
> 
> >>>>>> dev-b2g mailing list
> 
> >>>>>> [email protected]
> 
> >>>>>> https://lists.mozilla.org/listinfo/dev-b2g
> 
> >>>> _______________________________________________
> 
> >>>> dev-b2g mailing list
> 
> >>>> [email protected]
> 
> >>>> https://lists.mozilla.org/listinfo/dev-b2g
> 
> >>> _______________________________________________
> 
> >>> dev-b2g mailing list
> 
> >>> [email protected]
> 
> >>> https://lists.mozilla.org/listinfo/dev-b2g
> 
> >
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to