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

[BUG] Broken symlinks in android-ndk - r23b #1671

Closed
a4z opened this issue Feb 16, 2022 · 14 comments
Closed

[BUG] Broken symlinks in android-ndk - r23b #1671

a4z opened this issue Feb 16, 2022 · 14 comments
Labels

Comments

@a4z
Copy link

a4z commented Feb 16, 2022

Description

There are broken symlinks in at least the Mac package, but maybe also the Linux one

for example the file toolchains/llvm/prebuilt/darwin-x86_64/aarch64-linux-android/bin/as

ls -l toolchains/llvm/prebuilt/darwin-x86_64/aarch64-linux-android/bin/as
lrwxr-xr-x  1 a4z  staff  149 Sep 30 00:54 toolchains/llvm/prebuilt/darwin-x86_64/aarch64-linux-android/bin/as -> /Volumes/Android/buildbot/src/android/ndk-release-r23/out/darwin/android-ndk-r23b/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android-as

as you can see, the link goes to /Volumes/Android/buildbot/src/....

there might be more

The reason why this is a problem is that this broke packaging of the android-ndk for the conan center
see
conan-io/conan-center-index#8168

so r23b currently exists just for Windows on the conan center index

Affected versions

r23

Canary version

No response

Host OS

Mac

Host OS version

MacOS 12.1

Affected ABIs

armeabi-v7a, arm64-v8a, x86, x86_64

Build system

Other (specify below)

Other build system

all

minSdkVersion

not effected

Device API level

No response

@DanAlbert
Copy link
Member

Thanks for the detail. Confirmed that the same problem is present on linux. It won't be on windows because windows doesn't support symlinks (yes I know it kind of does but it doesn't generally so it doesn't at all as far as we're concerned).

The problem is unique to r23b. This was caused by https://android-review.googlesource.com/c/platform/ndk/+/1817218 (the fix for #1569) was only in that release. r24+ don't have those directories at all because they only exist to appease -fno-integrated-as, but GAS is gone in r24+ so that flag won't work out of the box anyway.

@rprichard
Copy link
Collaborator

This change needs to be cherry-picked to r23c:

https://android-review.googlesource.com/c/platform/ndk/+/1877617

Might also want to cherry-pick the test:

https://android-review.googlesource.com/c/platform/ndk/+/1877830/

@orifmilod
Copy link

For those who face this issue with the broken SIM link - please refer to this comment

@DanAlbert
Copy link
Member

DanAlbert commented Apr 22, 2022

Should be fixed in r23 build 8486889.

@orifmilod
Copy link

@DanAlbert The link is broken - could you please provide the correct build? Thanks!

@ZijunZhaoCCK

This comment was marked as off-topic.

@DanAlbert

This comment was marked as off-topic.

@orifmilod

This comment was marked as off-topic.

@ZijunZhaoCCK

This comment was marked as off-topic.

@enh-google

This comment was marked as off-topic.

@orifmilod

This comment was marked as off-topic.

@DanAlbert

This comment was marked as off-topic.

@orifmilod
Copy link

orifmilod commented May 11, 2022

"don't ask me why, I've filed a bug" This is soo relatable xd
The new link shows and empty list. I cannot see asop-ndk-release branch.

Screenshot 2022-05-11 at 21 22 45

@DanAlbert
Copy link
Member

Forking this into a new thread: #1715

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

No branches or pull requests

6 participants