You should select 1 (Device); the simulator is something different than the emulator, and I'm not sure it's supported anymore anyway.
hope this helps On Sat, Aug 28, 2010 at 4:13 PM, Tung Dang <tung...@gmail.com> wrote: > Hi all , > > I build the Android system image (Froyo) for emulator mode and get error, > the configuration is as follow : > > t...@ubuntu:/media/ANDROID/Froyo$ choosecombo > Build for the simulator or the device? > 1. Device > 2. Simulator > > Which would you like? [1] 2 > > > Build type choices are: > 1. release > 2. debug > > Which would you like? [2] > > > Which product would you like? [sim] > > > Variant choices are: > 1. user > 2. userdebug > 3. eng > Which would you like? [eng] > > ============================================ > PLATFORM_VERSION_CODENAME=REL > PLATFORM_VERSION=2.2 > TARGET_PRODUCT=sim > TARGET_BUILD_VARIANT=eng > TARGET_SIMULATOR=true > TARGET_BUILD_TYPE=debug > TARGET_BUILD_APPS= > TARGET_ARCH=x86 > HOST_ARCH=x86 > HOST_OS=linux > HOST_BUILD_TYPE=release > BUILD_ID=MASTER > ============================================ > > The errors is this : > target thumb C++: libandroid_runtime <= > frameworks/base/core/jni/android_server_BluetoothA2dpService.cpp > target thumb C++: libandroid_runtime <= > frameworks/base/core/jni/android_server_Watchdog.cpp > frameworks/base/core/jni/android_server_Watchdog.cpp: In function ‘void > dumpOneStack(int, int)’: > frameworks/base/core/jni/android_server_Watchdog.cpp:38: warning: ignoring > return value of ‘ssize_t write(int, const void*, size_t)’, declared with > attribute warn_unused_result > frameworks/base/core/jni/android_server_Watchdog.cpp:43: warning: ignoring > return value of ‘ssize_t write(int, const void*, size_t)’, declared with > attribute warn_unused_result > frameworks/base/core/jni/android_server_Watchdog.cpp:47: warning: ignoring > return value of ‘ssize_t write(int, const void*, size_t)’, declared with > attribute warn_unused_result > frameworks/base/core/jni/android_server_Watchdog.cpp: In function ‘void > dumpKernelStacks(JNIEnv*, _jobject*, _jstring*)’: > frameworks/base/core/jni/android_server_Watchdog.cpp:73: warning: ignoring > return value of ‘ssize_t write(int, const void*, size_t)’, declared with > attribute warn_unused_result > frameworks/base/core/jni/android_server_Watchdog.cpp:91: warning: ignoring > return value of ‘ssize_t write(int, const void*, size_t)’, declared with > attribute warn_unused_result > In function ‘int open(const char*, int, ...)’, > inlined from ‘void dumpKernelStacks(JNIEnv*, _jobject*, _jstring*)’ at > frameworks/base/core/jni/android_server_Watchdog.cpp:66: > /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ > declared with attribute error: open with O_CREAT in second argument needs 3 > arguments > make: *** > [out/debug/host/linux-x86/pr/sim/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_server_Watchdog.o] > Error 1 > t...@ubuntu:/media/ANDROID/Froyo$ > > Any body know how to fix this bug ? > > Thanks > > -- > unsubscribe: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting