Android renderscript build failure

I have an Android build with renderscript, I use the default android config which just call gradlew build , however, the build fail with a rs related error. I was able to build the project on my local box and github’s action. Is it an know issue ? do I need to config any additional settings?
thanks

> Task :app:compileDebugRenderscript FAILED
/opt/android/sdk/build-tools/30.0.3/llvm-rs-cc: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugRenderscript'.
> com.android.ide.common.process.ProcessException: Error while executing process /opt/android/sdk/build-tools/30.0.3/llvm-rs-cc with arguments {-I /opt/android/sdk/build-tools/30.0.3/renderscript/include/ -I /opt/android/sdk/build-tools/30.0.3/renderscript/clang-include/ -rs-package-name=androidx.renderscript -p /home/circleci/project/app/build/generated/renderscript_source_output_dir/debug/out -target-api 25 /home/circleci/project/app/src/main/rs/image.rs -O 3 -o /home/circleci/project/app/build/generated/res/rs/debug/raw}