line / line/stellite

android arm64-v8a build faild

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
475
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Hi:
Does anyone have this problem when link to android arm64-v8a (armv7a and x86 is ok)?

error log:
src/third_party/android_ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld.gold: fatal error: -shared and -pie are incompatible
clang: error: linker command failed with exit code 1 (use -v to see invocation)

linux version: Ubuntu 16.04.6 LTS

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the arm64-v8a link using the referenced Android toolchain path and compare it with the working armv7a and x86 builds. Investigate the reported ld.gold error about -shared and -pie, then verify that the arm64-v8a build links successfully without that failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, linux
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.