Command$ python external/clang/build.pyINFO:__main__:chdir /home/INFO:__main__:check_call: make -j24 VERBOSE=1 clang-toolchain-minimal clang-toolchain-full llvm-toolsINFO:__main__:check_call additional env:{'DISABLE_HOST_PIE': 'true', 'DISABLE_LLVM_DEVICE_BUILDS': 'true', 'DISABLE_RELOCATION_PACKER': 'true', 'FORCE_BUILD_LLVM_COMPONENTS': 'true', 'FORCE_BUILD_SANITIZER_SHARED_OBJECTS': 'true', 'OUT_DIR': 'out/stage1', 'SKIP_LLVM_TESTS': 'true', 'SOONG_ALLOW_MISSING_DEPENDENCIES': 'true', 'TARGET_BUILD_VARIANT': 'userdebug', 'TARGET_PRODUCT': 'aosp_arm'}============================================PLATFORM_VERSION_CODENAME=PPLATFORM_VERSION=PTARGET_PRODUCT=aosp_armTARGET_BUILD_VARIANT=userdebugTARGET_BUILD_TYPE=releaseTARGET_ARCH=armTARGET_ARCH_VARIANT=armv7-aTARGET_CPU_VARIANT=genericHOST_ARCH=x86_64HOST_2ND_ARCH=x86HOST_OS=linuxHOST_OS_EXTRA=Linux-4.4.0-97-generic-x86_64-Ubuntu-14.04.5-LTSHOST_CROSS_OS=windowsHOST_CROSS_ARCH=x86HOST_CROSS_2ND_ARCH=x86_64HOST_BUILD_TYPE=releaseBUILD_ID=OC-MR1OUT_DIR=out/stage1============================================ninja: no work to do.[1/1] out/stage1/soong/.bootstrap/bin/soong_build out/stage1/soong/build.ninjaFAILED: out/stage1/soong/build.ninjaout/stage1/soong/.bootstrap/bin/soong_build -t -l out/stage1/.module_paths/Android.bp.list -b out/stage1/soong -n out/stage1 -d out/stage1/soong/build.ninja.d -o out/stage1/soong/build.ninja Android.bperror: external/clang/tools/clang-check/Android.bp:3:1: module "clang-check": target.host.compile_multilib: mismatched types *string and stringerror: external/clang/tools/clang-format/Android.bp:3:1: module "clang-format": target.host.compile_multilib: mismatched types *string and stringerror: external/clang/tools/driver/Android.bp:3:1: module "clang": target.host.compile_multilib: mismatched types *string and stringninja: build stopped: subcommand failed.13:58:29 soong bootstrap failed with: exit status 1make: *** [run_soong_ui] Error 1Traceback (most recent call last): File "external/clang/build.py", line 1078, in <module> main() File "external/clang/build.py", line 1030, in main max_jobs=args.jobs, use_updated_version=False) File "external/clang/build.py", line 202, in build max_jobs, use_updated_version, profile_task) File "external/clang/build.py", line 266, in build_product cwd=android_path(), env=env) File "external/clang/build.py", line 91, in check_call subprocess.check_call(cmd, *args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['make', '-j24', 'VERBOSE=1', 'clang-toolchain-minimal', 'clang-toolchain-full', 'llvm-tools']' returned non-zero exit status 2--
You received this message because you are subscribed to the Google Groups "android-llvm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm+unsubscribe@googlegroups.com.
To post to this group, send email to androi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm+unsubscribe@googlegroups.com.
Thank you,
Piotr
Ok, it turns out that clean checkout from head does build correctly. I suppose my changes to build.py to skip unwanted outputs prevented it from building.
But two questions remain:
- old: how to properly build certain release?
- new: how to integrate generated toolchain with Android NDK, in such a way that when using ndk-build in an NDK project the buil will use my toolchain? -
- this page gives some info: https://android.googlesource.com/platform/external/clang/+/dev/ToolchainPrebuilts.md#generating-new-prebuilts but this is rather for using with the platform, not the NDK itself
Thank you,
Piotr
--
You received this message because you are subscribed to the Google Groups "android-llvm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm+unsubscribe@googlegroups.com.
Thank you,
Piotr
Thank you Stephen for clarifications. The manifest_XXXXXX.xml did the trick.
Three issues though:
- I guess you meant -m instead of -b for repo init (for future readers of this thread)
- prebuilt clang version 5.0.300080 (clang-4053586) - the one delivered with ndk r16 - does not have its manifest, only repo.config file which looks a bit like the manifest :)