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

mac使用ndk编译出错 #10610

Open
java-tianz opened this issue Dec 7, 2024 · 1 comment
Open

mac使用ndk编译出错 #10610

java-tianz opened this issue Dec 7, 2024 · 1 comment
Assignees

Comments

@java-tianz
Copy link

make publish_inference -j4 V=1
[ 0%] Built target PaddlePredictor
[ 0%] Built target fbs_headers
[ 0%] Built target publish_inference_android_java_demo
[ 0%] Built target publish_inference_android_cxx_demos
Consolidate compiler generated dependencies of target PADDLELITE_OBJS
[ 96%] Built target PADDLELITE_OBJS
Consolidate compiler generated dependencies of target paddle_lite_jni
[ 96%] Linking CXX shared library libpaddle_light_api_shared.so
[ 96%] Linking CXX shared library android/jni/native/libpaddle_lite_jni.so
ld.lld: error: inline asm clobber list contains reserved registers: W18 at line 156021
Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour. at line 156021
ld.lld: error: inline asm clobber list contains reserved registers: W18 at line 156021
Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour. at line 156021
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [lite/api/libpaddle_light_api_shared.so] Error 1
make[2]: *** [lite/api/CMakeFiles/paddle_light_api_shared.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [lite/api/android/jni/native/libpaddle_lite_jni.so] Error 1
make[2]: *** [lite/api/CMakeFiles/paddle_lite_jni.dir/all] Error 2
make[1]: *** [lite/CMakeFiles/publish_inference.dir/rule] Error 2
make: *** [publish_inference] Error 2

@ddchenhao66
Copy link
Collaborator

可以提供下详细的编译步骤。建议参考https://www.paddlepaddle.org.cn/lite/v2.12/source_compile/macos_compile_android.html 使用正确的编译环境进行编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants