swap has been included twoce. It is there in standard stl libs. This problem is visible with gcc4.3.x.
open /$ANDROID_SOURCE_ROOT/external/webkit/WebKit/android/stl/ algorithm in editor and comment lines 76 -83 //template<typename _Tp> //inline void //swap(_Tp& __a, _Tp& __b) //{ // _Tp __tmp = __a; //__a = __b; // __b = __tmp; //} On Dec 11 2008, 9:53 pm, squix <dani.eichh...@squix.ch> wrote: > Hi group > > Does anyone have an idea why I get this error? > ============================================ > TARGET_PRODUCT=generic > TARGET_SIMULATOR= > TARGET_BUILD_TYPE=release > TARGET_ARCH=x86 > TARGET_OS=linux > HOST_ARCH=x86 > HOST_OS=linux > HOST_BUILD_TYPE=release > BUILD_ID=TC3 > ============================================ > host C++: simulator <= development/simulator/app/DeviceManager.cpp > In file included from /usr/include/wx-2.6/wx/memory.h:20, > from /usr/include/wx-2.6/wx/object.h:25, > from /usr/include/wx-2.6/wx/wx.h:16, > from development/simulator/app/DeviceManager.cpp:12: > /usr/include/wx-2.6/wx/string.h:771: error: âwxChar& wxString::operator > [](unsigned int)â cannot be overloaded > /usr/include/wx-2.6/wx/string.h:768: error: with âwxChar& > wxString::operator[](size_t)â > In file included from /usr/include/wx-2.6/wx/stream.h:26, > from /usr/include/wx-2.6/wx/image.h:24, > from /usr/include/wx-2.6/wx/gtk/cursor.h:23, > from /usr/include/wx-2.6/wx/cursor.h:24, > from /usr/include/wx-2.6/wx/event.h:32, > from /usr/include/wx-2.6/wx/wx.h:23, > from development/simulator/app/DeviceManager.cpp:12: > /usr/include/wx-2.6/wx/filefn.h:322: error: zero width for bit-field > âwxAssert_323::BadFileSizeTypeâ > In file included from /usr/include/wx-2.6/wx/utils.h:38, > from /usr/include/wx-2.6/wx/cursor.h:37, > from /usr/include/wx-2.6/wx/event.h:32, > from /usr/include/wx-2.6/wx/wx.h:23, > from development/simulator/app/DeviceManager.cpp:12: > /usr/include/wx-2.6/wx/longlong.h: In constructor > âwxLongLongNative::wxLongLongNative(long int, long unsigned int)â: > /usr/include/wx-2.6/wx/longlong.h:115: warning: left shift count >= > width of type > /usr/include/wx-2.6/wx/longlong.h: In member function âlong int > wxLongLongNative::GetHi() constâ: > pe > /usr/include/wx-2.6/wx/longlong.h: In constructor > âwxULongLongNative::wxULongLongNative(long unsigned int, long unsigned > int)â: > /usr/include/wx-2.6/wx/longlong.h:333: warning: left shift count >= > width of type > /usr/include/wx-2.6/wx/longlong.h: In member function âlong unsigned > int wxULongLongNative::GetHi() constâ: > /usr/include/wx-2.6/wx/longlong.h:351: warning: right shift count >= > width of type > In file included from development/simulator/app/LogWindow.h:13, > from development/simulator/app/MainFrame.h:11, > from development/simulator/app/MyApp.h:12, > from development/simulator/app/DeviceManager.cpp:17: > development/simulator/app/LogPrefsDialog.h: At global scope: > development/simulator/app/LogPrefsDialog.h:28: warning: âtypedefâ was > ignored in this declaration > make: *** [out/host/linux-x86/obj/EXECUTABLES/simulator_intermediates/ > DeviceManager.o] Error 1 > > Is this maybe a x86_64 specific problem? I followed the description > for x86_64 and could do the "normal" build. But if I try to do the x86 > "application-like" build I get that error... I'm trying this on a > Ubuntu 8.10 system... > > Thanks, for any help > > On Dec 6, 12:49 am, Lucky-dog <honglian...@gmail.com> wrote:> I got it. it > located in out/host/linux-x86/bin. Thanks. > > > On Dec 4, 10:28 am, Lucky-dog <honglian...@gmail.com> wrote: > > > > hi all > > > I fixed it with renaming swap to swapab. But now I have another > > > question needed your help. I can't let the following command get to be > > > run. > > > dx --dex --output=foo.jar Foo.class > > > What is the dx command and where is it? Would you like to help me > > > out? Thank you very much. > > > > On Dec 3, 10:12 pm, Lucky-dog <honglian...@gmail.com> wrote: > > > > > hi all > > > > when i try to compile the source on DEBUGx86. A error is reported > > > > out as below. Would you like to let me know how to fix it? Thank you > > > > very much. > > > > thom...@ubuntu:~/mydroid$ make > > > > build/core/product_config.mk:229: WARNING: adding test OTA key > > > > build/core/main.mk:177: implicitly installing apns-conf_sdk.xml > > > > ============================================ > > > > TARGET_PRODUCT=sim > > > > TARGET_SIMULATOR=true > > > > TARGET_BUILD_TYPE=debug > > > > TARGET_ARCH=x86 > > > > TARGET_OS=linux > > > > HOST_ARCH=x86 > > > > HOST_OS=linux > > > > HOST_BUILD_TYPE=release > > > > BUILD_ID=TC3 > > > > ============================================ > > > > target thumb C++: libkjs <= external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp > > > > In file included from /usr/include/c++/4.3/bits/stl_pair.h:65, > > > > from /usr/include/c++/4.3/utility:68, > > > > from external/webkit/JavaScriptCore/wtf/ > > > > VectorTraits.h:27, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > LocalStorage.h:29, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSVariableObject.h:32, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSGlobalObject.h:26, > > > > from external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp:32: > > > > /usr/include/c++/4.3/bits/stl_move.h:80: error: redefinition of > > > > ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > external/webkit/JavaScriptCore/../WebCore/platform/android/stl/ > > > > algorithm:65: error: ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > previously declared here > > > > make: *** [out/debug/host/linux-x86/product/sim/obj/STATIC_LIBRARIES/ > > > > libkjs_intermediates/bindings/NP_jsobject.o] Error 1 > > > > thom...@ubuntu:~/mydroid$ > > > > > thom...@ubuntu:~/mydroid$ make > > > > build/core/product_config.mk:229: WARNING: adding test OTA key > > > > build/core/main.mk:177: implicitly installing apns-conf_sdk.xml > > > > ============================================ > > > > TARGET_PRODUCT=sim > > > > TARGET_SIMULATOR=true > > > > TARGET_BUILD_TYPE=debug > > > > TARGET_ARCH=x86 > > > > TARGET_OS=linux > > > > HOST_ARCH=x86 > > > > HOST_OS=linux > > > > HOST_BUILD_TYPE=release > > > > BUILD_ID=TC3 > > > > ============================================ > > > > target thumb C++: libkjs <= external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp > > > > In file included from /usr/include/c++/4.3/bits/stl_pair.h:65, > > > > from /usr/include/c++/4.3/utility:68, > > > > from external/webkit/JavaScriptCore/wtf/ > > > > VectorTraits.h:27, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > LocalStorage.h:29, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSVariableObject.h:32, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSGlobalObject.h:26, > > > > from external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp:32: > > > > /usr/include/c++/4.3/bits/stl_move.h:80: error: redefinition of > > > > ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > external/webkit/JavaScriptCore/../WebCore/platform/android/stl/ > > > > algorithm:65: error: ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > previously declared here > > > > make: *** [out/debug/host/linux-x86/product/sim/obj/STATIC_LIBRARIES/ > > > > libkjs_intermediates/bindings/NP_jsobject.o] Error 1 > > > > thom...@ubuntu:~/mydroid$ > > > > > thom...@ubuntu:~/mydroid$ make > > > > build/core/product_config.mk:229: WARNING: adding test OTA key > > > > build/core/main.mk:177: implicitly installing apns-conf_sdk.xml > > > > ============================================ > > > > TARGET_PRODUCT=sim > > > > TARGET_SIMULATOR=true > > > > TARGET_BUILD_TYPE=debug > > > > TARGET_ARCH=x86 > > > > TARGET_OS=linux > > > > HOST_ARCH=x86 > > > > HOST_OS=linux > > > > HOST_BUILD_TYPE=release > > > > BUILD_ID=TC3 > > > > ============================================ > > > > target thumb C++: libkjs <= external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp > > > > In file included from /usr/include/c++/4.3/bits/stl_pair.h:65, > > > > from /usr/include/c++/4.3/utility:68, > > > > from external/webkit/JavaScriptCore/wtf/ > > > > VectorTraits.h:27, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > LocalStorage.h:29, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSVariableObject.h:32, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSGlobalObject.h:26, > > > > from external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp:32: > > > > /usr/include/c++/4.3/bits/stl_move.h:80: error: redefinition of > > > > ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > external/webkit/JavaScriptCore/../WebCore/platform/android/stl/ > > > > algorithm:65: error: ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > previously declared here > > > > make: *** [out/debug/host/linux-x86/product/sim/obj/STATIC_LIBRARIES/ > > > > libkjs_intermediates/bindings/NP_jsobject.o] Error 1 > > > > thom...@ubuntu:~/mydroid$ > > > > > thom...@ubuntu:~/mydroid$ make > > > > build/core/product_config.mk:229: WARNING: adding test OTA key > > > > build/core/main.mk:177: implicitly installing apns-conf_sdk.xml > > > > ============================================ > > > > TARGET_PRODUCT=sim > > > > TARGET_SIMULATOR=true > > > > TARGET_BUILD_TYPE=debug > > > > TARGET_ARCH=x86 > > > > TARGET_OS=linux > > > > HOST_ARCH=x86 > > > > HOST_OS=linux > > > > HOST_BUILD_TYPE=release > > > > BUILD_ID=TC3 > > > > ============================================ > > > > target thumb C++: libkjs <= external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp > > > > In file included from /usr/include/c++/4.3/bits/stl_pair.h:65, > > > > from /usr/include/c++/4.3/utility:68, > > > > from external/webkit/JavaScriptCore/wtf/ > > > > VectorTraits.h:27, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > LocalStorage.h:29, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSVariableObject.h:32, > > > > from external/webkit/JavaScriptCore/kjs/ > > > > JSGlobalObject.h:26, > > > > from external/webkit/JavaScriptCore/bindings/ > > > > NP_jsobject.cpp:32: > > > > /usr/include/c++/4.3/bits/stl_move.h:80: error: redefinition of > > > > ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > external/webkit/JavaScriptCore/../WebCore/platform/android/stl/ > > > > algorithm:65: error: ‘template<class _Tp> void std::swap(_Tp&, _Tp&)’ > > > > previously declared here > > > > make: *** [out/debug/host/linux-x86/product/sim/obj/STATIC_LIBRARIES/ > > > > libkjs_intermediates/bindings/NP_jsobject.o] Error 1 > > > > thom...@ubuntu:~/mydroid$ --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---