linux驱动学习(兼容安卓)|android编译错误(2)

external/libcxx/include/__config:1058:20: note: expanded from macro '_LIBCPP_DIAGNOSE_WARNING' __attribute__((diagnose_if(__VA_ARGS__, "warning"))) ^~~~~~~~~~~~ 1 warning generated. [ 16% 6711/41716] //system/core/libcutils:libcutils gcc threads.c [windows x86_64] FAILED: out/soong/.intermediates/system/core/libcutils/libcutils/windows_x86_64_static/obj/system/core/libcutils/threads.o PWD=/proc/self/cwd prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/bin/x86_64-w64-mingw32-gcc -c -Isystem/core/libcutils/include -Isystem/core/libcutils-fno-exceptions -Wno-multichar -DUSE_MINGW -DWIN32_LEAN_AND_MEAN -Wno-unused-parameter -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D__USE_MINGW_ANSI_STDIO=1 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_FILE_OFFSET_BITS=64 --sysroot prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32 -O2 -g -fno-strict-aliasing -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd=-Isystem/core/libcutils/include -Isystem/core/libutils/include -Isystem/core/liblog/include -Isystem/core/libsystem/include -Isystem/core/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Ilibnativehelper/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -isystem prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include -isystem prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/lib/gcc/x86_64-w64-mingw32/4.8.3/include -Ilibnativehelper/include_deprecated -Werror -Wall -Wextra -D_GNU_SOURCE -DANDROID_STRICT -std=gnu99-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -MD -MF out/soong/.intermediates/system/core/libcutils/libcutils/windows_x86_64_static/obj/system/core/libcutils/threads.o.d -o out/soong/.intermediates/system/core/libcutils/libcutils/windows_x86_64_static/obj/system/core/libcutils/threads.o system/core/libcutils/threads.c

【linux驱动学习(兼容安卓)|android编译错误(2)】编译之前先执行:
这个报错是说 system/core/libcutils:libcutils 有问题,所以我们可以先编译一次system/core目录
或者直接整编

    推荐阅读