Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'PT_GNU_EH_FRAME' case PT_GNU_EH_FRAME #7

Closed
StephenNeverMore opened this issue Jun 10, 2019 · 5 comments
Labels
compile Something about compile the source code help wanted Extra attention is needed

Comments

@StephenNeverMore
Copy link

StephenNeverMore commented Jun 10, 2019

image

这个是什么错误?
ndk使用的是r16b
image

@caikelun
Copy link
Collaborator

请先贴一下以下命令的输出:

ndk-build --version
whereis ndk-build

@StephenNeverMore
Copy link
Author

image

@caikelun
Copy link
Collaborator

比较奇怪,你是从 google 官方下载的 NDK 吗?

比如 xc_core.c 中用到的 SYS_close 宏,是通过 #include <sys/syscall.h> 引入的。建议你可以通过下面的方法确认一下你的 NDK 环境(以 SYS_close 为例):

grep -rnw SYS_close --include=*.h ~/android-ndk-r16b/
/Users/xxx/android-ndk-r16b//sysroot/usr/include/bits/glibc-syscalls.h:110:  #define SYS_close __NR_close

grep -rnw bits/glibc-syscalls.h --include=*.h ~/android-ndk-r16b/
/Users/xxx/android-ndk-r16b//sysroot/usr/include/sys/syscall.h:33:#include <bits/glibc-syscalls.h> /* glibc-compatible SYS_* aliases. */

@caikelun caikelun added the help wanted Extra attention is needed label Jun 12, 2019
@caikelun
Copy link
Collaborator

@StephenNeverMore 还存在这个问题吗?

@caikelun caikelun added the compile Something about compile the source code label Jun 15, 2019
@StephenNeverMore
Copy link
Author

@StephenNeverMore 还存在这个问题吗?

sorry 忘记回复了
删掉NDK 重新下载就好了, 有可能不是正规的NDK
多谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile Something about compile the source code help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants