Сбой для исходного кода ОС Android

Я пытаюсь создать собственный ROM для Android. В настоящее время я настроил среду сборки и загрузил исходный код.

Я следую инструкциям на https://source.android.com/source/building

Все работает во время выполнения source build/envsetup.sh а также lunch, но ошибки возникают при выполнении make:

external/libcxx/include/cmath:679:9: note: using declaration
using ::acos;
        ^
external/libcxx/include/cmath:684:46: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);}
                                             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:708:46: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                             ^
external/libcxx/include/cmath:679:9: note: using declaration
using ::acos;
        ^
external/libcxx/include/cmath:690:1: error: declaration conflicts with target of using declaration already in scope
acos(_A1 __lcpp_x) _NOEXCEPT {return acos((double)__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:714:1: note: target of using declaration
acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[  0% 163/43987] host C++: libprotobuf-cpp-full_32 <= external/protobuf/src/google/protobuf/descriptor.cc
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (27 seconds) ####

1 ответ

Похоже, что это вызвано Xcode 9. См. https://forums.developer.apple.com/thread/87814. Я включил эту проблему тоже. Я планирую перейти на xcode 8.3. Я скомпилировал Android 7.1.2 с Xcode 8.3 и SDK 10.11, это было нормально, никаких проблем.

Другие вопросы по тегам