lxc-android icon indicating copy to clipboard operation
lxc-android copied to clipboard

position-independent executables

Open Gouster4 opened this issue 5 years ago • 4 comments

Hi. Im getting "error: Android 5.0 and later only support position-independent executables (-fPIE)" when trying to run any executable. -Android 10.0 -Kernel 4.14.187 -Jenkins build #7058

Can you try adding LDFLAGS += -fpie please?

Gouster4 avatar Aug 08 '20 10:08 Gouster4

How did you build it? This project should be built with Android NDK and the Android.bp should automatically handle those stuff.

Please see if this helps: https://gist.github.com/ppoffice/2706b5e4448e8a3638c974e64c88c2ad

ppoffice avatar Aug 08 '20 12:08 ppoffice

I downloaded your build from jenkins. https://jenkins.linuxcontainers.org/job/lxc-build-android/lastSuccessfulBuild/artifact/lxc-android.tar.gz

Gouster4 avatar Aug 08 '20 13:08 Gouster4

@Gouster4 I need to clarify that this project is not associated with the official LXC project and that jenkins build is managed by the official LXC team, I believe.

https://jenkins.linuxcontainers.org/job/lxc-github-commit/2276/pollingLog/

ppoffice avatar Aug 08 '20 13:08 ppoffice

Oh so... Now i understand... But maybe if you include that flag, theyr builds would work also on newer android versions.

Or they dont build it from your github source?

Gouster4 avatar Aug 08 '20 13:08 Gouster4