ld: unrecognised emulation mode: armelf_linux_eabi

时光毁灭记忆、已成空白 提交于 2019-12-24 04:14:27

问题


When I compile linphone source code, error happened below. Can anybody tell me how to fix it. Thank you.

ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_i386 i386linux elf32_x86_64 elf_x86_64 elf_l1om elf_k1om i386pep i386pe
C compiler test failed.

回答1:


In case anyone is as dumb as me, I was getting this error because, I assume, the linker it was trying to use didn't have execution permissions; in fact, a lot of things didn't have execution permissions. So I did a simple chmod -R +x * at the root of the NDK directory and that fixed it.

Also, if anyone has a more elegant solution, please tell me. For example, was I supposed to download the NDK from somewhere else other than their website? A package installation perhaps?



来源:https://stackoverflow.com/questions/28135004/ld-unrecognised-emulation-mode-armelf-linux-eabi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!