読者です 読者をやめる 読者になる 読者になる

のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

mmコマンドで、エラーmake failed to build some targets

/external/skia

$mm
make: Entering directory '/home/android'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_flounder
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=denver64
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=denver
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-36-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NRD90M
OUT_DIR=out
============================================
Running kati to generate build-aosp_flounder-mmm-external_skia_Android.mk.ninja...
external/skia/Android.mk was modified, regenerating...


============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_flounder
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=denver64
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=denver
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-36-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NRD90M
OUT_DIR=out
============================================
external/skia/Android.mk:269: *** commands commence before first target.
build/core/ninja.mk:163: recipe for target 'out/build-aosp_flounder-mmm-external_skia_Android.mk.ninja' failed
make: *** [out/build-aosp_flounder-mmm-external_skia_Android.mk.ninja] Error 1
make: Leaving directory '/home/android'

#### make failed to build some targets (37 seconds) ####
    755 function mm()
    756 {
    757     local T=$(gettop)
    758     local DRV=$(getdriver $T)
    759     # If we're sitting in the root of the build tree, just do a
    760     # normal make.
    761     if [ -f build/core/envsetup.mk -a -f Makefile ]; then
    762         $DRV make $@
    763     else
    764         # Find the closest Android.mk file.
    765         local M=$(findmakefile)
    766         local MODULES=
    767         local GET_INSTALL_PATH=
    768         local ARGS=
    769         # Remove the path to top as the makefilepath needs to be relative
    770         local M=`echo $M|sed 's:'$T'/::'`
    771         if [ ! "$T" ]; then
    772             echo "Couldn't locate the top of the tree.  Try setting TOP."
    773             return 1
    774         elif [ ! "$M" ]; then
    775             echo "Couldn't locate a makefile from the current directory."
    776             return 1
    777         else

##############################################################

    778             for ARG in $@; do
    779                 case $ARG in
    780                   GET-INSTALL-PATH) GET_INSTALL_PATH=$ARG;;
    781                 esac
    782             done
    783             if [ -n "$GET_INSTALL_PATH" ]; then
    784               MODULES=
    785               ARGS=GET-INSTALL-PATH
    786             else
    787               MODULES=all_modules
    788               ARGS=$@
    789             fi
    790             ONE_SHOT_MAKEFILE=$M $DRV make -C $T -f build/core/main.mk $MODULES $ARGS

##############################################################

    791         fi
    792     fi
    793 }

Cross Reference: /build/envsetup.sh