Hi Jovan,

Did you have newer SDK installed? If not, just do it.

Then try to run bootstrap script and install everything except gcc-4.6.

> curl -fsSL 
> https://raw.github.com/mozilla-b2g/B2G/master/scripts/bootstrap-mac.sh | bash
>
> Manually install gcc-4.9, and add following lines to your .userconfig

> export CC=gcc-4.9
> export CXX=g++-4.9
>
> That's all what I did. I hope it helps.

Gary

On Tue, May 19, 2015 at 11:14 PM, Jovan Gerodetti <titannanom...@gmail.com>
wrote:

> Hello Gary,
>
> Thank you for your help. I removed the gcc 4.6 and installed gcc 4.7.
> I also removed the 10.6 SDK.
>
> The result after running build.sh now I get a lot of warnings that I don't
> have the 10.6 SDK. After a few seconds the build failed with the same error
> again.
>
> Jovan
>
> 2015-05-19 14:37 GMT+02:00 Gary Chen <xeonc...@mozilla.com>:
>
>> Hi Jovan,
>>
>> You can try:
>>
>>    1. use gcc-4.7 or higher.
>>    2. remove 10.6 SDK if it's installed.
>>
>> Gary
>>
>> On Tue, May 19, 2015 at 8:06 PM, Jovan Gerodetti <titannanom...@gmail.com
>> > wrote:
>>
>>> Hello,
>>>
>>> I recently started to try to build 2.2 for my peak on OS X Yosemite.
>>> I ran the osx bootstrap script and also made sure gcc-4.6 is installed
>>> properly. I adjusted some file to point at g++-4.6 like it was mentioned in
>>> MDN.
>>>
>>> The build process ran for some minutes but now stopped at this point:
>>>
>>> host C: adb <= system/core/adb/get_my_path_darwin.c
>>>> system/core/adb/get_my_path_darwin.c:17:2: warning: #import is a
>>>> deprecated GCC extension [-Wdeprecated]
>>>> In file included from /usr/include/dispatch/dispatch.h:51:0,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
>>>>                  from
>>>> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
>>>>                  from
>>>> /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
>>>>                  from system/core/adb/get_my_path_darwin.c:17:
>>>> /usr/include/dispatch/object.h:143:15: error: expected identifier or
>>>> '(' before '^' token
>>>> In file included from /usr/include/dispatch/dispatch.h:51:0,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
>>>>                  from
>>>> /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
>>>>                  from
>>>> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
>>>>                  from
>>>> /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
>>>>                  from system/core/adb/get_my_path_darwin.c:17:
>>>> /usr/include/dispatch/object.h:362:3: error: unknown type name
>>>> 'dispatch_block_t'
>>>> system/core/adb/get_my_path_darwin.c: In function 'get_my_path':
>>>> system/core/adb/get_my_path_darwin.c:23:5: warning: 'GetCurrentProcess'
>>>> is deprecated (declared at
>>>> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:415)
>>>> [-Wdeprecated-declarations]
>>>> system/core/adb/get_my_path_darwin.c:25:5: warning:
>>>> 'ProcessInformationCopyDictionary' is deprecated (declared at
>>>> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:579)
>>>> [-Wdeprecated-declarations]
>>>> make: ***
>>>> [out/host/darwin-x86/obj/EXECUTABLES/adb_intermediates/get_my_path_darwin.o]
>>>> Error 1
>>>>
>>>
>>> As I said I'm using gcc-4.6 but it seems to me that it's still not
>>> compatibly with the android / b2g source??
>>>
>>> Does anyone build on Yosemite and can tell me what I need to fix in my
>>> build environment?
>>>
>>> Regards,
>>> Jovan
>>>
>>> _______________________________________________
>>> dev-b2g mailing list
>>> dev-b2g@lists.mozilla.org
>>> https://lists.mozilla.org/listinfo/dev-b2g
>>>
>>>
>>
>
_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to