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: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to