Search code examples
androidandroid-source

Running AOSP on MAC: stdarg.h error


I have the source code for android-5.0.0_r7.0.1. After doing:

make -j4

I keep getting this:

error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
             from system/core/include/utils/KeyedVector.h:24,
             from frameworks/native/include/input/Input.h:26,
             from frameworks/native/include/input/InputDevice.h:20,
             from frameworks/native/libs/input/InputDevice.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1 
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1

#### make failed to build some targets (01:32 (mm:ss)) ####

I have looked at the google groups and other stack overflow questions, but I cannot seem to figure out what is going wrong.


Solution

  • @Meteorite

    Well, ultimately after googling I discovered the AOSP for some reason did not support the latest version of Xcode tools and OS X. I dualbooted windows 7 with ubuntu, and did the whole process. And when I did the make command on ubuntu I typed: make -k -i -B. That is, I gave it the keep going, ignore make errors and build unconditionally flags.