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

ld.lld: error: libpaddle_light_api_shared.so: invalid local symbol '__bss_start__' in global part of symbol table #385

Open
Haseeeb21 opened this issue Oct 10, 2024 · 2 comments
Assignees

Comments

@Haseeeb21
Copy link

Haseeeb21 commented Oct 10, 2024

I have followed all the steps mentioned in ocr/android/app/cxx/ppocr_demo Deployment steps on 6th step when I am running the app then I am getting the following error on Android studio.

cmd.exe /C "cd . && C:\Users\HaseebUlHassan\AppData\Local\Android\Sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android23 --sysroot=C:/Users/HaseebUlHassan/AppData/Local/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -std=c++11 -mfpu=neon -fuse-ld=lld -ffast-math -Ofast -Os -DNDEBUG -fno-exceptions -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-unwind-tables -fvisibility=hidden -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -fexceptions -fno-limit-debug-info -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--no-fatal-warnings -Wl,-z,nocopyreloc -shared -Wl,-soname,libNative.so -o C:\Users\HaseebUlHassan\Desktop\original_paddlelite\Paddle-Lite-Demo\ocr\android\app\cxx\ppocr_demo\app\build\intermediates\cxx\Debug\u6361133\obj\arm64-v8a\libNative.so @CMakeFiles/Native.rsp && cd ."

ld.lld: error: Desktop/original_paddlelite/Paddle-Lite-Demo/ocr/android/app/cxx/ppocr_demo/app/src/main/cpp/../../../PaddleLite/cxx/libs/arm64-v8a/libpaddle_light_api_shared.so: invalid local symbol 'bss_start' in global part of symbol table

Can anyone help me how to fix this?

or anyone who have runned the android application share the steps and repo kindly. Thanks!

@1574300748
Copy link

我换到这个ndk版本就能实现了,之前用25的就报错跟你一样的错误
android {
...
ndkVersion "21.3.6528147"
}

@bdbaigc
Copy link

bdbaigc commented Nov 10, 2024

我换到这个ndk版本就能实现了,之前用25的就报错跟你一样的错误 android { ... ndkVersion "21.3.6528147" }

靠谱啊,确实是这个原因,我用NDK 28.0.12433566 一直报错,给跪了

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

4 participants