Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

GCC Toolchain Path Incorrect Post R22 NDK #2700

Open
GEMISIS opened this issue May 7, 2022 · 4 comments
Open

GCC Toolchain Path Incorrect Post R22 NDK #2700

GEMISIS opened this issue May 7, 2022 · 4 comments

Comments

@GEMISIS
Copy link

GEMISIS commented May 7, 2022

After R22 of the NDK, the NDK is clang only for build it seems? Per android/ndk#1375 this means that the GCC toolchains that are attempting to be found no longer are (specifically at

Path getNdkGccToolRoot() {
return processDirectoryPathPattern(
"toolchains/{toolchain}-{gcc_compiler_version}/prebuilt/{hostname}");
}
this causes error using newer toolchains than R22).

@GEMISIS GEMISIS changed the title Sysroot Path Incorrect Post NDK R19 GCC Toolchain Path Incorrect Post R22 NDK May 7, 2022
@GEMISIS
Copy link
Author

GEMISIS commented May 7, 2022

Looks like my original bug was an issue with my paths, but there is still an issue in that GCC related tools are being linked in the toolchain, which are no longer included with the NDK after R22.

@GEMISIS
Copy link
Author

GEMISIS commented May 8, 2022

Actually, looks at this again, it may also be that it's failing before getting to what my original comment was discussing?

Per android/ndk#1407, the sysroot path for NDK is now contained in /toolchains/llvm/prebuilt//sysroot instead of the top level directory. This means that buck is looking in the wrong spot for the sysroot directory at

return processDirectoryPathPattern("sysroot");

It seems that NDK support may not have been kept up to date?

@GEMISIS
Copy link
Author

GEMISIS commented May 8, 2022

Yeah, it looks like in the NdkCxxPlatforms.java file, there's a lot of updates that need to happen for more recent versions of the NDK, as everything after R19 is completely broken. The latest I've managed to get building on Windows is NDK version 19.2.5345600.

@LegNeato
Copy link
Contributor

#2685

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

No branches or pull requests

2 participants