ct-ng build 到 libelf 时出现错误。错误如下:
[ALL ] mkdir: cannot create directory `//home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/buildtools': No such file or directory
[ALL ] mkdir //home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/buildtools/include
[ALL ] mkdir: cannot create directory `//home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/buildtools/include': No such file or directory
[ALL ] mkdir //home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/buildtools/include/libelf
[ALL ] mkdir: cannot create directory `//home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/buildtools/include/libelf': No such file or directory
[ERROR] make[2]: *** [installdirs] Error 1
[ALL ] make[2]: Leaving directory `/home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/build/build-libelf-host-i686-build_pc-cygwin/lib'
[ERROR] make[1]: *** [install-recursive] Error 1
[ALL ] make[1]: Leaving directory `/home/mytest/crosstool-ng-1.19.0_build/.build/powerpc-e300c3-linux-gnu/build/build-libelf-host-i686-build_pc-cygwin'
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[[email protected]]
[ERROR] >> called from: do_libelf_backend[[email protected]]
[ERROR] >> called from: do_libelf_for_host[[email protected]]
[ERROR] >> called from: do_companion_libs_for_host[[email protected]]
[ERROR] >> called from: main[[email protected]]
------解决方案--------------------
是repo sync下载的代码? 重新来一遍试试