You have a mismatched sources in build/soong and external/clang, rerun repo sync and make sure there are no errors.
On Mon, Nov 27, 2017 at 2:41 AM, <[email protected]> wrote: > Hi Lou, > Following your steps, I met this error when I using the > external/clang/build.py. I just wonder if there is some prerequisite for > the building? Or I had made some mistake? > 在此输入代码...ninja: no work to do. > [1/2] soong_build docs out/stage1/soong/.bootstrap/docs/soong_build.html > FAILED: out/stage1/soong/.bootstrap/docs/soong_build.html > out/stage1/soong/.bootstrap/bin/soong_build -t -l > out/stage1/.module_paths/Android.bp.list -b out/stage1/soong --docs > out/stage1/soong/.bootstrap/docs/soong_build.html ./Android.bp > error: external/clang/tools/driver/Android.bp:3:1: module "clang": > target.host.compile_multilib: mismatched types *string and string > error: external/clang/tools/clang-format/Android.bp:3:1: module > "clang-format": target.host.compile_multilib: mismatched types *string and > string > error: external/clang/tools/clang-check/Android.bp:3:1: module > "clang-check": target.host.compile_multilib: mismatched types *string and > string > [2/2] out/stage1/soong/.bootstrap/bin/soong_build > out/stage1/soong/build.ninja > FAILED: out/stage1/soong/build.ninja > out/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.bp > error: external/clang/tools/clang-format/Android.bp:3:1: module > "clang-format": target.host.compile_multilib: mismatched types *string and > string > error: external/clang/tools/driver/Android.bp:3:1: module "clang": > target.host.compile_multilib: mismatched types *string and string > error: external/clang/tools/clang-check/Android.bp:3:1: module > "clang-check": target.host.compile_multilib: mismatched types *string and > string > ninja: build stopped: subcommand failed. > 09:54:39 soong bootstrap failed with: exit status 1 > build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed > make: *** [run_soong_ui] Error 1 > Traceback (most recent call last): > File "external/clang/build.py", line 1077, in <module> > main() > File "external/clang/build.py", line 1029, 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 265, 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 541, in check_call > raise CalledProcessError(retcode, cmd) > subprocess.CalledProcessError: Command '['make', '-j28', > 'clang-toolchain-minimal', 'clang-toolchain-full', 'llvm-tools']' returned > non-zero exit status 2 > > > > > > 在 2017年1月19日星期四 UTC+8上午5:02:17,Gagou Lou写道: > >> Hi all, >> >> I'm currently successfully building the clang toolchain under the NDK 10 >> under OSX. >> But I'm a bit confused about how your building system is working... >> (kati,ninja,soong, etc) >> >> As Clang rely on CMake, I was hoping to find the Clang configuration >> command used by the NDK build system, but it seems more complicated... >> After digging a bit in the *.mk files, it seems that you have a separated >> build system which don't rely on the CMakefile contained in Clang sources. >> >> I'm currently using ./external/clang/build.py to build Clang toolchain. >> The build process seems to do so many things. I mean, compiling Clang for >> Linux or OSX is as simple as calling cmake with the right parameters >> followed by make/ninja. But in the NDK, Clang compilation looks like so >> complicated. >> >> So my questions are: >> - How to generate a new Clang toolchain with my own Clang source code ? >> - How the build system works in the NDK 10 ? What are all those >> compilation (stage1, stage2, etc) simply for generating a Clang toolchain? >> - Any hint where to start searching? (any documentation, files, etc) >> >> Thank you for your help, >> >> Gael >> >> >> >> -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
