Hi everybody,
I had the same issue as you complained about it here. So for me it was due 
to the fact that I stopped the build process from make by pressing Ctrl+c 
becauses it slowed down my machine and it took almost 20 hours to compile 
and the machine seemed to be frozen. I just retype the make command : make 
-j8 to relaunch the build after stopping it and I got this error:
*prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld:
 
out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/Source/WebKit/android/jni/WebCoreJniOnLoad.o:
 
in function 
gWebCoreRegMethods:WebCoreJniOnLoad.cpp(.data.rel._ZL18gWebCoreRegMethods+0x7c):
 
error: undefined reference to 'android::registerCacheManager(_JNIEnv*)'*
*collect2: ld returned 1 exit status*
*make: *** 
[out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so]
 
Error 1*

The problem was due to some incomplete builds of WebCore libraries files. *Here 
is the solution :*
*#First I cleaned the build files for libwebcore only not to clean all 
builds, otherwise, we will have to redo all build again*
*1. make clean-libwebcore*
*
*
*#Secondly I build only the libwebcore modules to be concerned only about 
it until it gets to success. That way your build error will be easier to 
troubleshooting because you focus only on 1 module*
*2. make -j8 libwebcore*

*#Third, you just have to launch a normal build process with make to go on 
 building the other remaining modules *
*3. make -j8 *
*
*
*#Cross your finger and pray God that this last step leads you to success. 
I was facing this issue by building an update of Jelly Bean 
Branch(android-4.1.2_r1 released in October 9th,2012)*
*
*
*These steps were successful for me after figuring it out after 3 days of 
unsuccessful attemps. My machine was a MacBook Pro with Snow leopard on it 
and Intel Core 7 Processor. So I was inspired by the following link :*
*
http://www.mailinglistarchive.com/html/[email protected]/2009-04/msg00195.html
*


Good Luck
Le mardi 8 novembre 2011 17:14:15 UTC+1, 李晖 a écrit :
>
> hi all, 
> I am porting android to loongson based on the mips android, and the 
> android version is froyo_r8, which can be download from 
> http://developer.mips.com/android/android-source-code/, 
> my workstation is ubuntu 9.10 in the vmware, the memory is 512M, free 
> space of hardware is 20G, 
>
> after some configuration and modification, I typed in "make 
> showcommands", 
> when the compile system compile the webkit module, the following error 
> printed: 
>
> Install: out/target/product/generic/system/lib/libwbxml_jni.so 
> out/host/linux-x86/bin/acp -fpt out/target/product/generic/obj/lib/ 
> libwbxml_jni.so out/target/product/generic/system/lib/libwbxml_jni.so 
> target SharedLib: libwebcore (out/target/product/generic/obj/ 
> SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so) 
> prebuilt/linux-x86/ccache/ccache prebuilt/linux-x86/toolchain/ 
> mips-4.4.3/bin/mips-linux-gnu-g++ -nostdlib -Wl,-soname,libwebcore.so - 
> Wl,-T,build/core/mipself.xsc -Wl,--gc-sections -Wl,-shared,-Bsymbolic - 
> Lout/target/product/generic/obj/lib    out/target/product/generic/obj/ 
> SHARED_LIBRARIES/libwebcore_intermediates/WebKit/android/jni/ 
> WebCoreJniOnLoad.o          -Wl,--whole-archive   -Wl,--no-whole- 
> archive  out/target/product/generic/obj/STATIC_LIBRARIES/ 
> libwebcore_intermediates/libwebcore.a out/target/product/generic/obj/ 
> STATIC_LIBRARIES/libxml2_intermediates/libxml2.a out/target/product/ 
> generic/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a - 
> landroid_runtime -lnativehelper -lsqlite -lskia -lutils -lui -llog - 
> lcutils -licuuc -licudata -licui18n -lmedia -lsurfaceflinger_client - 
> ldl -lstlport -lc -lstdc++ -lm  -o out/target/product/generic/obj/ 
> SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so - 
> fvisibility=hidden  -Wl,--no-undefined  -EL  /home/andy/work/ 
> mips_android_r8/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../lib/gcc/ 
> mips-linux-gnu/4.4.3/el/soft-float/libgcc.a /home/andy/work/ 
> mips_android_r8/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../lib/gcc/ 
> mips-linux-gnu/4.4.3/el/soft-float/libgcc_eh.a 
> /home/andy/work/mips_android_r8/prebuilt/linux-x86/toolchain/ 
> mips-4.4.3/bin/../lib/gcc/mips-linux-gnu/4.4.3/../../../../mips-linux- 
> gnu/bin/ld: final link failed: Bad value 
> collect2: ld returned 1 exit status 
> make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/ 
> libwebcore_intermediates/LINKED/libwebcore.so] Error 1 
>
> did any one encounter this kind error, and how to solve it?

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to