linaro-swg/optee_android_manifest

prebuilts clang is missing clang-r349610 which causes build failure

ammarsalman94 opened this issue · 4 comments

The sync command attempts to download clang-r349610 from the google repository but it is not there anymore as the link (provided by google) does not work anymore. Here is the link: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/clang-r349610/

Unfortunately, this breaks the build process since there are missing files during check. The error is:

/bin/bash: line 0: cd: prebuilts/clang/host/linux-x86/clang-r349610/bin: No such file or directory
/bin/bash: line 0: cd: prebuilts/clang/host/linux-x86/clang-r349610/bin: No such file or directory

I have checked and verified, it is not there anymore.

Any ideas?

What commands/script are you using?

@vchong I am using build-p.sh (got Hikey 620 8gb)

So I tried a few things, I tinkered around with abc/hikey-optee-p file and tried changing clang-r349610 to clang-4691093 which is listed as the recommended clang to build 9.0.0_R34 (as indicated by the config file). However, that did not work and the build failed in compiling source code files. So I figured it was not the correct prebuild.

There, I wanted to get clang-r349610 and I was finally able to find it, but it was not listed under Android 9 at all, instead it was under 10 (link: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/refs/tags/android-10.0.0_r28/clang-r349610/ )

I downloaded and extracted it to: {manifest folder}/prebuilts/clang/host/linux-x86/clang-r349610/

The build was complete and no errors occurred.

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.