I also have this problem,so I used this method to solved it

1)sudo port install bison
2)  sudo find / -name bison
3)  sudo rm  /<android_code_path>/prebuilts/misc/darwin-x86/bison/bison
4)   sudo ln -s /usr/local/bin/bison 
/Volumes/android/code/prebuilts/misc/darwin-x86/bison/bison
bless with you
在 2017年11月23日星期四 UTC+8下午10:01:30,吴成云写道:
>
> I have some issue , do you find some way to fix this?
>
> 在 2017年11月13日星期一 UTC+8下午12:58:41,Monil Patel写道:
>>
>> I have tried building but failed too. I get stuck because there is an 
>> issue with libcxx cstdlib.h and other header files clashing with xcode 
>> build tools header files.
>>
>> external/libcxx/include/cstdlib:134:9: note: using declaration
>> using ::abs;
>> ^
>> external/libcxx/include/cstdlib:161:44: error: declaration conflicts with 
>> target of using declaration already in scope
>> inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT 
>> {return llabs(__x);}
>> ^
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:117:44:
>>  
>> note: target of using declaration
>> inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT 
>> {return llabs(__x);}
>> ^
>> external/libcxx/include/cstdlib:134:9: note: using declaration
>> using ::abs;
>> ^
>> external/libcxx/include/cstdlib:164:42: error: declaration conflicts with 
>> target of using declaration already in scope
>> inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) 
>> _NOEXCEPT {return ldiv(__x, __y);}
>>
>>
>>  
>>
>> On Sunday, 15 October 2017 19:52:24 UTC-5, Hunter Aaron wrote:
>>>
>>> There is the log when I built *android-8.0.0_r17* on high sierra:
>>>>
>>>> [ 3% 2279/59686] yacc 
>>>> out/soong/.inte.../system/tools/aidl/aidl_language_y.cpp
>>>>
>>>> FAILED: 
>>>> out/soong/.intermediates/system/tools/aidl/libaidl-common/darwin_x86
>>>> *64*static/gen/yacc/system/tools/aidl/aidl_language_y.cpp 
>>>> out/soong/.intermediates/system/tools/aidl/libaidl-common/darwin_x86
>>>> *64*static/gen/yacc/system/tools/aidl/aidl_language_y.h 
>>>>
>>>> BISON_PKGDATADIR=external/bison/data 
>>>> prebuilts/misc/darwin-x86/bison/bison -d 
>>>> --defines=out/soong/.intermediates/system/tools/aidl/libaidl-common/darwin_x86
>>>> *64*static/gen/yacc/system/tools/aidl/aidl_language_y.h -o 
>>>> out/soong/.intermediates/system/tools/aidl/libaidl-common/darwin_x86
>>>> *64*static/gen/yacc/system/tools/aidl/aidl_language_y.cpp 
>>>> system/tools/aidl/aidl_language_y.yy
>>>>
>>>> [ 3% 2282/59686] lex 
>>>> out/soong/.inter.../system/tools/aidl/aidl_language_l.cpp
>>>>
>>>> ninja: build stopped: subcommand failed.
>>>>
>>>> 14:03:54 ninja failed with: exit status 1
>>>>
>>>> make: *** [run_soong_ui] Error 1
>>>>
>>>
>>> I  google a log,but still can not solve.And I  also had tried to build 
>>> android-7.1.2,it also failed with similar log.
>>>
>>> Has anyone built successfully on Mac OS high sierra?
>>>
>>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to