Normally it is a toolchain bug, try to update your toolchains. I've seem
the same error when trying to build android froyo for loongson, change
the toolchain can solve it.

BTW:
for Loongson2, default mips android toolchain is not suitable, because
it defaults to mips32, some library & code has mips32 instructions that
are not available in Loongson2. Some time ago I've put a patch package
to http://www.lemote.com/upfiles/android-loongson.tar.gz. If I recalled
correctly, it should contains a modified toolchain(based on mips
provided 4.4.3, but change some libs&tools.)

Regards

于 2011-11-9 21:42, 李晖 写道:
> today i try build it in another machine, whose memory is 1.75G, swap
> is 2G, hardware free space is 10G, the build system report the same
> error!
>
> On 11月9日, 下午1时56分, good bai <bf.w...@gmail.com> wrote:
>> Please retry after enable swap, maybe 512M  not enough.
>>
>> 2011/11/9 David Kuehling <dvdkh...@gmx.de>:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>>>>>> "李晖" == 李晖  <lihui205...@gmail.com> writes:
>>>> 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:
>>> [..]
>>>> /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
>>> Googeling for the "Bad value" error, it looks like there were multiple
>>> mips binutils bugs in the past that caused that error.  The most recent
>>> report seems to be this one (2007, includes a patch):
>>> http://www.linux-mips.org/archives/linux-mips/2007-03/msg00197.html
>>> previously (2004) there was this bug:
>>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268001
>>> which version of binutils are you using?  Maybe it'd help to file a
>>> bug-report upstream?
>>> cheers,
>>> David
>>> --
>>> GnuPG public key:http://dvdkhlng.users.sourceforge.net/dk.gpg
>>> Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40
>> --
>> --------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.

Reply via email to