Building with ninja failing


#1

Hi guys n gals, I’m getting this error when I run make -j4 otapackage :

Starting build with ninja
out/env-kvim2.sh: line 4: export: -X: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
out/env-kvim2.sh: line 9: export: -X: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
ninja: Entering directory `.'
ninja: error: 'out/target/product/kvim2/obj_arm/SHARED_LIBRARIES/libbluray_intermediates/export_includes', needed by 'out/target/product/kvim2/obj_arm/SHARED_LIBRARIES/libbluray_mod_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

everything before goes fine except for some “warning: overriding commands for target” errors


#2

also I don’t know why the text is bold and larger


#3

It’s because you add “-------------” on the beginning and end.(I’ve edited to remove that)


#4

Do you have install the build enviroment for Android, you might need refer following for the details:

http://source.android.com/source/initializing.html


#5

I follwed the steps for 15and above (im using 16.04) jdk was already newest version, I also setup the ccache after getting the above error. I followed the steps in the docs.khadas.com articles.

I substituded all the kvim for kvim2 I assumed that is what you do for the vim2.


#6

I have the same error. The last commit broke the project


#7

You can refer to below post. Thanks


#8

when building for vim2 do you replace :
kvim_defconfig with kvim2_defconfig
and
lunch kvim-userdebug-64 with lunch kvim2-userdebug-64

also can I use lunch kvim2-user-64 ?


#9

ok, now I’m getting the error :
build/core/base_rules.mk:183: *** hardware/libhardware/modules/gralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.default already defined by hardware/amlogic/gralloc.
build/core/ninja.mk:163: recipe for target ‘out/build-aosp_arm.ninja’ failed
make: *** [out/build-aosp_arm.ninja] Error 1

despite using lunch kvim2-user-64


#10

You can try to build android with user mode.But Maybe there are some permission issues for it.


#11

I’m trying to build a version without su and selinux set to enforce.
I have removed su and set selinux to enforce.

Stuck at the last hurdle haha

Thank you for all your help!


#12

so far I have tried
using lunch kvim2-user-32
using lunch kvim2-user-64
using lunch kvim2-userdebug-32
using lunch kvim2-userdebug-64

each time I get :
build/core/base_rules.mk:183: *** hardware/libhardware/modules/gralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.default already defined by hardware/amlogic/gralloc.
build/core/ninja.mk:163: recipe for target ‘out/build-aosp_arm.ninja’ failed
make: *** [out/build-aosp_arm.ninja] Error 1


#13

it will happen If you don’t lunch the kvims target.
Do you can provide the all build informations including the lunch informations for me? Thanks


#14

lunch :
ANDROID_BUILD_TYPE=64

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=kvim2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NHG47L
OUT_DIR=out

patch_dir /home/daitallica/Projects/Android/Vim2/device/khadas/common/patch

make :

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NHG47L
OUT_DIR=out

Running kati to generate build-aosp_arm.ninja…
out/build-aosp_arm.ninja is missing, regenerating…

Is that what you requested?


#15


You didn’t lunch kvims target


#16

How do I do that?
I assume its not
lunch kvim2-user-32
Lunch kvim2-user-64
lunch kvim2-userdebug-32
Lunch kvim2-userdebug-64

Because I have tried all of these as noted in my previous replys?


#17

You should type below command on your terminal and provide the all informations for me.

$ cd ProjectPath
$ source build/envsetup.sh
$ lunch
$ make -jN otapackage


#18

source build/envsetup.sh :

including device/khadas/kvim2/vendorsetup.sh
including device/khadas/kvim/vendorsetup.sh
including sdk/bash_completion/adb.bash

lunch -

You’re building on Linux

Lunch menu… pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. kvim2-eng-64
8. kvim2-user-64
9. kvim2-userdebug-64
10. kvim-eng-64
11. kvim-user-64
12. kvim-userdebug-64

Which would you like? [aosp_arm-eng] 9

ANDROID_BUILD_TYPE=64

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=kvim2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NHG47L
OUT_DIR=out

patch_dir /home/daitallica/Projects/Android/Vim2/device/khadas/common/patch

sudo make -j4 otapackage

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NHG47L
OUT_DIR=out

Running kati to generate build-aosp_arm.ninja…
out/build-aosp_arm.ninja is missing, regenerating…

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NHG47L
OUT_DIR=out

including ./abi/cpp/Android.mk …
including ./art/Android.mk …
including ./bionic/Android.mk …
including ./bootable/recovery/Android.mk …
including ./build/libs/host/Android.mk …
including ./build/target/board/Android.mk …
including ./build/target/product/security/Android.mk …
including ./build/tools/Android.mk …
including ./common/tools/gator/daemon/Android.mk …
including ./cts/Android.mk …
FindEmulator: find: cts/apps/CtsVerifier/src/android': No such file or directory FindEmulator: find:cts/hostsidetests/os/test-apps/HostLinkVerificationApp/src’: No such file or directory
FindEmulator: find: cts/libs/commonutil/src': No such file or directory FindEmulator: cd: cts/tests/libcore/ojluni/resources: No such file or directory FindEmulator: find:cts/libs/commonutil/src’: No such file or directory
including ./dalvik/Android.mk …
including ./developers/samples/android/security/FingerprintDialog/Application/src/main/Android.mk …
including ./development/apps/BluetoothDebug/Android.mk …
including ./development/apps/BuildWidget/Android.mk …
including ./development/apps/CustomLocale/Android.mk …
including ./development/apps/Development/Android.mk …
including ./development/apps/DevelopmentSettings/Android.mk …
including ./development/apps/Fallback/Android.mk …
including ./development/apps/GestureBuilder/Android.mk …
including ./development/apps/NinePatchLab/Android.mk …
including ./development/apps/OBJViewer/Android.mk …
including ./development/apps/SdkSetup/Android.mk …
including ./development/apps/SettingInjectorSample/Android.mk …
including ./development/apps/WidgetPreview/Android.mk …
including ./development/apps/launchperf/Android.mk …
including ./development/build/Android.mk …
including ./development/cmds/monkey/Android.mk …
including ./development/host/windows/prebuilt/usb/Android.mk …
including ./development/ndk/Android.mk …
including ./development/perftests/panorama/Android.mk …
including ./development/samples/AccelerometerPlay/Android.mk …
including ./development/samples/AliasActivity/Android.mk …
including ./development/samples/AndroidBeamDemo/Android.mk …
including ./development/samples/ApiDemos/Android.mk …
including ./development/samples/AppNavigation/Android.mk …
including ./development/samples/BackupRestore/Android.mk …
including ./development/samples/BasicGLSurfaceView/Android.mk …
including ./development/samples/BluetoothChat/Android.mk …
including ./development/samples/BluetoothHDP/Android.mk …
including ./development/samples/BrokenKeyDerivation/Android.mk …
including ./development/samples/BusinessCard/Android.mk …
including ./development/samples/Compass/Android.mk …
including ./development/samples/ContactManager/Android.mk …
including ./development/samples/CubeLiveWallpaper/Android.mk …
including ./development/samples/FixedGridLayout/Android.mk …
including ./development/samples/HeavyWeight/Android.mk …
including ./development/samples/HelloActivity/Android.mk …
including ./development/samples/HelloEffects/Android.mk …
including ./development/samples/Home/Android.mk …
including ./development/samples/HoneycombGallery/Android.mk …
including ./development/samples/JetBoy/Android.mk …
including ./development/samples/KeyChainDemo/Android.mk …
including ./development/samples/LceDemo/Android.mk …
including ./development/samples/LunarLander/Android.mk …
including ./development/samples/MultiResolution/Android.mk …
including ./development/samples/MultiWindow/Android.mk …
including ./development/samples/MySampleRss/Android.mk …
including ./development/samples/NotePad/Android.mk …
including ./development/samples/Obb/Android.mk …
including ./development/samples/RSSReader/Android.mk …
including ./development/samples/RandomMusicPlayer/Android.mk …
including ./development/samples/ReceiveShareDemo/Android.mk …
including ./development/samples/RenderScript/Android.mk …
including ./development/samples/SampleSyncAdapter/Android.mk …
including ./development/samples/SearchableDictionary/Android.mk …
including ./development/samples/ShortcutDemo/Android.mk …
including ./development/samples/ShortcutSample/Android.mk …
including ./development/samples/SimpleJNI/Android.mk …
including ./development/samples/SipDemo/Android.mk …
including ./development/samples/SkeletonApp/Android.mk …
including ./development/samples/Snake/Android.mk …
including ./development/samples/SoftKeyboard/Android.mk …
including ./development/samples/SpellChecker/Android.mk …
including ./development/samples/StackWidget/Android.mk …
including ./development/samples/ToyVpn/Android.mk …
including ./development/samples/TtsEngine/Android.mk …
including ./development/samples/USB/Android.mk …
including ./development/samples/UiAutomator/Android.mk …
including ./development/samples/Vault/Android.mk …
including ./development/samples/VoiceRecognitionService/Android.mk …
including ./development/samples/VoicemailProviderDemo/Android.mk …
including ./development/samples/WeatherListWidget/Android.mk …
including ./development/samples/WiFiDirectDemo/Android.mk …
including ./development/samples/WiFiDirectServiceDiscovery/Android.mk …
including ./development/samples/Wiktionary/Android.mk …
including ./development/samples/WiktionarySimple/Android.mk …
including ./development/samples/XmlAdapters/Android.mk …
including ./development/samples/training/NsdChat/Android.mk …
including ./development/testrunner/Android.mk …
including ./development/tools/apkcheck/Android.mk …
including ./development/tools/emulator/test-apps/SmokeTests/Android.mk …
including ./development/tools/etc1tool/Android.mk …
including ./development/tools/hosttestlib/Android.mk …
including ./development/tools/idegen/Android.mk …
including ./development/tools/line_endings/Android.mk …
including ./development/tools/mkstubs/Android.mk …
including ./development/tools/rmtypedefs/Android.mk …
including ./development/tools/yuv420sp2rgb/Android.mk …
including ./development/tutorials/MoarRam/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv1/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv1Solution/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv2/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv2Solution/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv3/Android.mk …
including ./development/tutorials/NotepadCodeLab/Notepadv3Solution/Android.mk …
including ./development/tutorials/ReverseDebug/Android.mk …
including ./device/khadas/common/Android.mk …
including ./device/khadas/kvim/Android.mk …
including ./device/khadas/kvim2/Android.mk …
including ./docs/source.android.com/Android.mk …
including ./external/aac/Android.mk …
including ./external/android-clat/Android.mk …
including ./external/androidplot/Android.mk …
including ./external/ant-glob/Android.mk …
including ./external/antlr/Android.mk …
including ./external/apache-commons-math/Android.mk …
including ./external/apache-harmony/Android.mk …
including ./external/apache-http/Android.mk …
including ./external/apache-xml/Android.mk …
including ./external/archive-patcher/Android.mk …
including ./external/avahi/Android.mk …
including ./external/bison/Android.mk …
including ./external/blktrace/Android.mk …
including ./external/boringssl/Android.mk …
including ./external/bouncycastle/Android.mk …
including ./external/bsdiff/Android.mk …
including ./external/bzip2/Android.mk …
including ./external/c-ares/Android.mk …
including ./external/caliper/Android.mk …
including ./external/cblas/Android.mk …
including ./external/ceres-solver/Android.mk …
including ./external/chromium-libpac/Android.mk …
including ./external/chromium-webview/Android.mk …
including ./external/clang/Android.mk …
including ./external/compiler-rt/Android.mk …
including ./external/conscrypt/Android.mk …
including ./external/crcalc/Android.mk …
including ./external/curl/Android.mk …
including ./external/dagger2/Android.mk …
including ./external/dbus-binding-generator/Android.mk …
including ./external/dbus/Android.mk …
including ./external/deqp/Android.mk …
build/core/binary.mk:1192: external/deqp/Android.mk: libdeqp: Unused source files:
including ./external/dexmaker/Android.mk …
including ./external/dhcpcd-6.8.2/Android.mk …
including ./external/dng_sdk/Android.mk …
including ./external/dnsmasq/Android.mk …
including ./external/doclava/Android.mk …
including ./external/drm_gralloc/Android.mk …
including ./external/drm_hwcomposer/Android.mk …
including ./external/droiddriver/Android.mk …
including ./external/e2fsprogs/Android.mk …
including ./external/easymock/Android.mk …
including ./external/eclipse-windowbuilder/propertysheet/Android.mk …
including ./external/eigen/Android.mk …
including ./external/elfutils/Android.mk …
including ./external/emma/Android.mk …
including ./external/expat/Android.mk …
including ./external/eyes-free/Android.mk …
including ./external/f2fs-tools/Android.mk …
including ./external/fdlibm/Android.mk …
including ./external/fec/Android.mk …
including ./external/fio/Android.mk …
including ./external/flac/Android.mk …
including ./external/freetype/Android.mk …
including ./external/fsck_msdos/Android.mk …
including ./external/gemmlowp/Android.mk …
including ./external/giflib/Android.mk …
including ./external/glide/Android.mk …
including ./external/gmock/Android.mk …
including ./external/google-benchmark/Android.mk …
including ./external/google-breakpad/Android.mk …
including ./external/google-fonts/carrois-gothic-sc/Android.mk …
including ./external/google-fonts/coming-soon/Android.mk …
including ./external/google-fonts/cutive-mono/Android.mk …
including ./external/google-fonts/dancing-script/Android.mk …
including ./external/google-tv-pairing-protocol/Android.mk …
including ./external/gptfdisk/Android.mk …
including ./external/gtest/Android.mk …
including ./external/guava/Android.mk …
including ./external/guice/Android.mk …
including ./external/hamcrest/Android.mk …
including ./external/harfbuzz_ng/Android.mk …
including ./external/hyphenation-patterns/Android.mk …
including ./external/i2c-tools/Android.mk …
including ./external/icu/Android.mk …
including ./external/iproute2/Android.mk …
including ./external/ipsec-tools/Android.mk …
including ./external/iptables/Android.mk …
including ./external/iputils/Android.mk …
including ./external/iw/Android.mk …
including ./external/jacoco/Android.mk …
including ./external/jarjar/Android.mk …
including ./external/javasqlite/Android.mk …
including ./external/javassist/Android.mk …
including ./external/jcommander/Android.mk …
including ./external/jdiff/Android.mk …
including ./external/jemalloc/Android.mk …
including ./external/jetty/Android.mk …
including ./external/jhead/Android.mk …
including ./external/jmdns/Android.mk …
including ./external/jsilver/Android.mk …
including ./external/jsmn/Android.mk …
including ./external/jsoncpp/Android.mk …
including ./external/jsr305/Android.mk …
including ./external/jsr330/Android.mk …
including ./external/junit/Android.mk …
including ./external/ksoap2/Android.mk …
including ./external/libavc/Android.mk …
including ./external/libbrillo/Android.mk …
including ./external/libcap-ng/Android.mk …
including ./external/libcap/Android.mk …
including ./external/libchrome/Android.mk …
including ./external/libcxx/Android.mk …
including ./external/libcxxabi/Android.mk …
including ./external/libdaemon/Android.mk …
including ./external/libdivsufsort/Android.mk …
including ./external/libdrm/Android.mk …
including ./external/libedit/Android.mk …
including ./external/libevent/Android.mk …
including ./external/libexif/Android.mk …
including ./external/libgsm/Android.mk …
including ./external/libhevc/Android.mk …
including ./external/libjpeg-turbo/Android.mk …
including ./external/liblzf/Android.mk …
including ./external/libmicrohttpd/Android.mk …
including ./external/libmpeg2/Android.mk …
including ./external/libnfc-nci/Android.mk …
including ./external/libnfc-nxp/Android.mk …
including ./external/libnl/Android.mk …
including ./external/libogg/Android.mk …
including ./external/libopus/Android.mk …
including ./external/libpcap/Android.mk …
including ./external/libphonenumber/Android.mk …
including ./external/libpng/Android.mk …
including ./external/libselinux/Android.mk …
including ./external/libunwind/Android.mk …
including ./external/libunwind_llvm/Android.mk …
including ./external/libusb/Android.mk …
including ./external/libutf/Android.mk …
including ./external/libvncserver/Android.mk …
including ./external/libvorbis/Android.mk …
including ./external/libvpx/Android.mk …
including ./external/libvterm/Android.mk …
including ./external/libweave/Android.mk …
including ./external/libxml2/Android.mk …
including ./external/libyuv/Android.mk …
including ./external/littlemock/Android.mk …
including ./external/llvm/Android.mk …
including ./external/ltrace/Android.mk …
including ./external/lz4/Android.mk …
including ./external/lzma/C/Android.mk …
including ./external/lzma/Java/Tukaani/Android.mk …
including ./external/lzma/xz-embedded/Android.mk …
including ./external/markdown/Android.mk …
including ./external/mdnsresponder/Android.mk …
including ./external/mesa3d/Android.mk …
including ./external/messageformat/Android.mk …
including ./external/minijail/Android.mk …
including ./external/mksh/Android.mk …
including ./external/mmc-utils/Android.mk …
including ./external/mockito/Android.mk …
including ./external/mockwebserver/Android.mk …
including ./external/modp_b64/Android.mk …
including ./external/mp4parser/Android.mk …
including ./external/mtpd/Android.mk …
including ./external/nanohttpd/Android.mk …
including ./external/nanopb-c/Android.mk …
including ./external/netcat/Android.mk …
including ./external/netperf/Android.mk …
including ./external/neven/Android.mk …
including ./external/nfacct/Android.mk …
including ./external/nist-pkits/Android.mk …
including ./external/noto-fonts/Android.mk …
including ./external/oauth/core/src/main/java/Android.mk …
including ./external/objenesis/Android.mk …
including ./external/okhttp/Android.mk …
including ./external/opencv/Android.mk …
including ./external/opencv3/Android.mk …
including ./external/owasp/sanitizer/Android.mk …
including ./external/parameter-framework/Android.mk …
including ./external/pcre/Android.mk …
including ./external/pdfium/core/Android.mk …
including ./external/pdfium/fpdfsdk/Android.mk …
including ./external/pdfium/third_party/Android.mk …
build/core/binary.mk:1192: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
including ./external/piex/Android.mk …
including ./external/ppp/pppd/Android.mk …
including ./external/proguard/Android.mk …
including ./external/protobuf/Android.mk …
including ./external/regex-re2/Android.mk …
including ./external/replicaisland/Android.mk …
including ./external/rmi4utils/Android.mk …
including ./external/robolectric/v1/Android.mk …
including ./external/roboto-fonts/Android.mk …
including ./external/rootdev/Android.mk …
including ./external/safe-iop/Android.mk …
including ./external/scrypt/Android.mk …
including ./external/selinux/Android.mk …
including ./external/sfntly/Android.mk …
including ./external/shflags/Android.mk …
including ./external/skia/Android.mk …
including ./external/sl4a/Android.mk …
including ./external/smali/baksmali/Android.mk …
including ./external/smali/deodexerant/Android.mk …
including ./external/smali/dexlib2/Android.mk …
including ./external/smali/smali/Android.mk …
including ./external/snakeyaml/Android.mk …
including ./external/sonic/Android.mk …
including ./external/sonivox/Android.mk …
including ./external/speex/Android.mk …
including ./external/sqlite/android/Android.mk …
including ./external/sqlite/dist/Android.mk …
including ./external/squashfs-tools/Android.mk …
including ./external/srtp/Android.mk …
including ./external/strace/Android.mk …
including ./external/svox/Android.mk …
including ./external/tagsoup/Android.mk …
including ./external/tcpdump/Android.mk …
including ./external/testng/Android.mk …
including ./external/tinyalsa/Android.mk …
including ./external/tinycompress/Android.mk …
including ./external/tinyxml/Android.mk …
including ./external/tinyxml2/Android.mk …
including ./external/tlsdate/Android.mk …
including ./external/toybox/Android.mk …
awk: line 1: syntax error at or near ,
including ./external/tpm2/Android.mk …
including ./external/tremolo/Android.mk …
including ./external/v8/Android.mk …
including ./external/valgrind/Android.mk …
including ./external/vboot_reference/Android.mk …
including ./external/vixl/Android.mk …
including ./external/vogar/Android.mk …
including ./external/vulkan-validation-layers/Android.mk …
including ./external/webp/Android.mk …
including ./external/webrtc/Android.mk …
including ./external/wpa_supplicant_8/Android.mk …
including ./external/xmlrpcpp/Android.mk …
including ./external/xmp_toolkit/Android.mk …
including ./external/zlib/Android.mk …
including ./external/zopfli/Android.mk …
including ./external/zxing/Android.mk …
including ./frameworks/av/amlogic/Android.mk …
including ./frameworks/av/camera/Android.mk …
including ./frameworks/av/cmds/screenrecord/Android.mk …
including ./frameworks/av/cmds/stagefright/Android.mk …
including ./frameworks/av/drm/common/Android.mk …
including ./frameworks/av/drm/drmserver/Android.mk …
including ./frameworks/av/drm/libdrmframework/Android.mk …
including ./frameworks/av/drm/libmediadrm/Android.mk …
including ./frameworks/av/drm/mediadrm/plugins/clearkey/Android.mk …
including ./frameworks/av/drm/mediadrm/plugins/mock/Android.mk …
including ./frameworks/av/media/audioserver/Android.mk …
including ./frameworks/av/media/common_time/Android.mk …
including ./frameworks/av/media/img_utils/Android.mk …
including ./frameworks/av/media/libcpustats/Android.mk …
including ./frameworks/av/media/libeffects/downmix/Android.mk …
including ./frameworks/av/media/libeffects/factory/Android.mk …
including ./frameworks/av/media/libeffects/loudness/Android.mk …
including ./frameworks/av/media/libeffects/lvm/lib/Android.mk …
including ./frameworks/av/media/libeffects/lvm/wrapper/Android.mk …
including ./frameworks/av/media/libeffects/preprocessing/Android.mk …
including ./frameworks/av/media/libeffects/proxy/Android.mk …
including ./frameworks/av/media/libeffects/visualizer/Android.mk …
including ./frameworks/av/media/libmedia/Android.mk …
including ./frameworks/av/media/libmediaplayerservice/Android.mk …
including ./frameworks/av/media/libnbaio/Android.mk …
including ./frameworks/av/media/libstagefright/Android.mk …
including ./frameworks/av/media/mediaserver/Android.mk …
including ./frameworks/av/media/mtp/Android.mk …
including ./frameworks/av/media/ndk/Android.mk …
including ./frameworks/av/media/utils/Android.mk …
including ./frameworks/av/radio/Android.mk …
including ./frameworks/av/services/audioflinger/Android.mk …
including ./frameworks/av/services/audiopolicy/Android.mk …
including ./frameworks/av/services/camera/libcameraservice/Android.mk …
including ./frameworks/av/services/mediacodec/Android.mk …
including ./frameworks/av/services/mediadrm/Android.mk …
including ./frameworks/av/services/mediaextractor/Android.mk …
including ./frameworks/av/services/medialog/Android.mk …
including ./frameworks/av/services/mediaresourcemanager/Android.mk …
including ./frameworks/av/services/radio/Android.mk …
including ./frameworks/av/services/soundtrigger/Android.mk …
including ./frameworks/av/soundtrigger/Android.mk …
including ./frameworks/av/tools/resampler_tools/Android.mk …
including ./frameworks/base/Android.mk …
build/core/package_internal.mk:166: Empty argument supplied to find-subdir-assets
including ./frameworks/compile/libbcc/Android.mk …
including ./frameworks/compile/mclinker/Android.mk …
including ./frameworks/compile/slang/Android.mk …
including ./frameworks/data-binding/Android.mk …
including ./frameworks/ex/camera2/Android.mk …
including ./frameworks/ex/common/Android.mk …
including ./frameworks/ex/framesequence/Android.mk …
including ./frameworks/minikin/app/Android.mk …
including ./frameworks/minikin/libs/minikin/Android.mk …
including ./frameworks/minikin/sample/Android.mk …
including ./frameworks/minikin/tests/Android.mk …
including ./frameworks/ml/Android.mk …
including ./frameworks/multidex/Android.mk …
including ./frameworks/native/cmds/atrace/Android.mk …
including ./frameworks/native/cmds/bugreport/Android.mk …
including ./frameworks/native/cmds/bugreportz/Android.mk …
including ./frameworks/native/cmds/cmd/Android.mk …
including ./frameworks/native/cmds/dumpstate/Android.mk …
including ./frameworks/native/cmds/dumpsys/Android.mk …
including ./frameworks/native/cmds/flatland/Android.mk …
including ./frameworks/native/cmds/installd/Android.mk …
including ./frameworks/native/cmds/ip-up-vpn/Android.mk …
including ./frameworks/native/cmds/rawbu/Android.mk …
including ./frameworks/native/cmds/service/Android.mk …
including ./frameworks/native/cmds/servicemanager/Android.mk …
including ./frameworks/native/libs/binder/Android.mk …
including ./frameworks/native/libs/diskusage/Android.mk …
including ./frameworks/native/libs/gui/Android.mk …
including ./frameworks/native/libs/input/Android.mk …
including ./frameworks/native/libs/ui/Android.mk …
including ./frameworks/native/opengl/libagl/Android.mk …
including ./frameworks/native/opengl/libs/Android.mk …
including ./frameworks/native/opengl/tests/Android.mk …
including ./frameworks/native/services/batteryservice/Android.mk …
including ./frameworks/native/services/inputflinger/Android.mk …
including ./frameworks/native/services/powermanager/Android.mk …
including ./frameworks/native/services/sensorservice/Android.mk …
including ./frameworks/native/services/surfaceflinger/Android.mk …
including ./frameworks/native/vulkan/Android.mk …
including ./frameworks/opt/bitmap/Android.mk …
including ./frameworks/opt/bluetooth/Android.mk …
FindEmulator: find: frameworks/opt/bluetooth/src/android/bluetooth/client/pbap': No such file or directory including ./frameworks/opt/calendar/Android.mk ... including ./frameworks/opt/chips/Android.mk ... including ./frameworks/opt/colorpicker/Android.mk ... including ./frameworks/opt/datetimepicker/Android.mk ... including ./frameworks/opt/inputmethodcommon/Android.mk ... including ./frameworks/opt/net/ethernet/Android.mk ... including ./frameworks/opt/net/ims/Android.mk ... including ./frameworks/opt/net/voip/Android.mk ... including ./frameworks/opt/net/wifi/service/Android.mk ... including ./frameworks/opt/net/wifi/tests/Android.mk ... find: ‘out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory including ./frameworks/opt/photoviewer/Android.mk ... including ./frameworks/opt/setupwizard/library/Android.mk ... including ./frameworks/opt/setupwizard/navigationbar/Android.mk ... including ./frameworks/opt/telephony/Android.mk ... including ./frameworks/opt/timezonepicker/Android.mk ... including ./frameworks/opt/vcard/Android.mk ... including ./frameworks/rs/Android.mk ... including ./frameworks/support/Android.mk ... FindEmulator: find:frameworks/support/design/dummy’: No such file or directory
build/core/package_internal.mk:166: Empty argument supplied to find-subdir-assets
FindEmulator: find: frameworks/support/transition/dummy': No such file or directory FindEmulator: find:frameworks/support/v17/leanback/dummy’: No such file or directory
FindEmulator: find: `frameworks/support/v17/preference-leanback/dummy’: No such file or directory
including ./frameworks/volley/Android.mk …
including ./frameworks/webview/Android.mk …
including ./frameworks/wilhelm/src/Android.mk …
including ./frameworks/wilhelm/tests/Android.mk …
including ./hardware/amlogic/LibAudio/Android.mk …
including ./hardware/amlogic/audio/Android.mk …
including ./hardware/amlogic/audio_dia_remote/Android.mk …
including ./hardware/amlogic/camera/Android.mk …
eth0: error fetching interface information: Device not found


pdk or not:
target board:
git version: "7501b9bbfd1fd7238d0a524a467be80547abfb78"
uncomment: 0 files
last changed: "Date: Mon Aug 21 15:35:53 2017 +0800"
build time: " Sun 11 Feb 11:09:43 GMT 2018"
builder name: " root"
branch name: "* Vim2"
build mode: eng
host name: "Ubuntu-Laptop"
eth0: error fetching interface information: Device not found
host IP: ""
path: “/home/daitallica/Projects/Android/Vim2/hardware/amlogic/camera/v3/fake-pipeline2/tests”


including ./hardware/amlogic/consumerir/Android.mk …
including ./hardware/amlogic/gralloc/Android.mk …
GRALLOC_FB_SWAP_RED_BLUE0 is 0
MALI_AFBC_GRALLOC is 0
including ./hardware/amlogic/hdmi_cec/Android.mk …
including ./hardware/amlogic/hwcomposer/Android.mk …
including ./hardware/amlogic/keymaster/Android.mk …
including ./hardware/amlogic/libbt/Android.mk …
including ./hardware/amlogic/lights/Android.mk …
including ./hardware/amlogic/media/Android.mk …
including ./hardware/amlogic/memtrack/Android.mk …
including ./hardware/amlogic/power/Android.mk …
including ./hardware/amlogic/screen_source/Android.mk …
including ./hardware/amlogic/sensors/Android.mk …
including ./hardware/amlogic/tv_input/Android.mk …
including ./hardware/amlogic/usbctrl/Android.mk …
including ./hardware/amlogic/wifi/bcm_ampak/Android.mk …
including ./hardware/amlogic/wifi/dongle_info/Android.mk …
including ./hardware/amlogic/wifi/icomm/Android.mk …
including ./hardware/amlogic/wifi/mediatek/Android.mk …
including ./hardware/amlogic/wifi/multi_wifi/Android.mk …
including ./hardware/amlogic/wifi/qcom/Android.mk …
including ./hardware/amlogic/wifi/realtek/Android.mk …
including ./hardware/arm/gpu/lib/Android.mk …
Android.mk GPU_DRV_VERSION is
build/core/binary.mk:1192: hardware/arm/gpu/lib/Android.mk: libGLES_mali: Unused source files: _ion/libGLES_mali_default_7a_32-n-r6p1.so
including ./hardware/broadcom/wlan/bcmdhd/Android.mk …
including ./hardware/bsp/intel/peripheral/bluetooth/bcm43340/Android.mk …
including ./hardware/bsp/intel/peripheral/displays/Grove_LCD_RGB/Android.mk …
including ./hardware/bsp/intel/peripheral/displays/SparkFun_OLED/Android.mk …
including ./hardware/bsp/intel/peripheral/examples/mraa/gpio_output/Android.mk …
including ./hardware/bsp/intel/peripheral/libmraa/Android.mk …
including ./hardware/bsp/intel/peripheral/libupm/Android.mk …
including ./hardware/bsp/intel/peripheral/wifi/bcm43340/Android.mk …
including ./hardware/bsp/intel/soc/common/bootctrl/Android.mk …
including ./hardware/bsp/intel/soc/common/tools/Android.mk …
including ./hardware/google/apf/Android.mk …
including ./hardware/libhardware/Android.mk …
build/core/base_rules.mk:183: *** hardware/libhardware/modules/gralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.default already defined by hardware/amlogic/gralloc.
build/core/ninja.mk:163: recipe for target ‘out/build-aosp_arm.ninja’ failed
make: *** [out/build-aosp_arm.ninja] Error 1


#19

That’s so strange and I haven’t any idea about it.
Did you leave the project path after you lunch a targe.


#20

nope. I pretty much follow the instructions in docs implicitly.

I run lunch and it changes to kvim2, as soon as I run make it seems to revert to aosp.
It’s really annoying.

I just want a build without su,root and selinux set to enforce so I can download netflix from the play store (the only one that works in 1080p and above)

I bought the kvim2 to replace my amazon tv, hopefully I can get this sorted soon