GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
471 stars 67 forks source link

build problem #5

Closed tantaliom1985 closed 4 years ago

tantaliom1985 commented 4 years ago

/home/admin/GloDroid/build/blueprint/pathtools/glob.go:166 +0x455 github.com/google/blueprint/pathtools.startGlob(0xaf7260, 0xf18568, 0xc0041420c0, 0x12, 0x0, 0x0, 0x0, 0xc004142001, 0xda00000000000020, 0x0, ...) /home/admin/GloDroid/build/blueprint/pathtools/glob.go:52 +0xb2 github.com/google/blueprint/pathtools.osFs.Glob(...) /home/admin/GloDroid/build/blueprint/pathtools/fs.go:154 github.com/google/blueprint.(Context).glob(0xc0000989c0, 0xc0041420c0, 0x12, 0x0, 0x0, 0x0, 0x2a2a2f6b64732f73, 0x2a2f, 0x0, 0xc004142080, ...) /home/admin/GloDroid/build/blueprint/glob.go:64 +0x217 github.com/google/blueprint.(baseModuleContext).GlobWithDeps(0xc00e76fd40, 0xc0041420c0, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/admin/GloDroid/build/blueprint/module_ctx.go:277 +0x6d android/soong/android.(androidModuleContext).GlobFiles(0xc080cbe340, 0xc0041420c0, 0x12, 0x0, 0x0, 0x0, 0x12, 0xc000076300, 0xc036b41218) /home/admin/GloDroid/build/soong/android/module.go:1504 +0x7e android/soong/android.expandOneSrcPath(0xb0ca20, 0xc080cbe340, 0xc036b41218, 0x4, 0x0, 0x0, 0x0, 0xc000076300, 0x0, 0x0, ...) /home/admin/GloDroid/build/soong/android/paths.go:330 +0xd99 android/soong/android.PathsAndMissingDepsForModuleSrcExcludes(0xb0ca20, 0xc080cbe340, 0xc080ff9790, 0x1, 0x1, 0x0, 0x0, 0x0, 0x6, 0x6, ...) /home/admin/GloDroid/build/soong/android/paths.go:289 +0x446 android/soong/android.PathsForModuleSrcExcludes(0xb0ca20, 0xc080cbe340, 0xc03141b790, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc000076300, 0x0, ...) /home/admin/GloDroid/build/soong/android/paths.go:236 +0x9b android/soong/android.PathsForModuleSrc(...) /home/admin/GloDroid/build/soong/android/paths.go:226 android/soong/java.(ExportedDroiddocDir).GenerateAndroidBuildActions(0xc043133100, 0xb0ca20, 0xc080cbe340) /home/admin/GloDroid/build/soong/java/droiddoc.go:1818 +0x1af android/soong/android.(ModuleBase).GenerateBuildActions(0xc043133100, 0xb0ae00, 0xc00e76fd40) /home/admin/GloDroid/build/soong/android/module.go:860 +0x706 github.com/google/blueprint.(Context).generateModuleBuildActions.func2.1(0xc006876f00, 0xc00e76fd40) /home/admin/GloDroid/build/blueprint/context.go:2303 +0x80 github.com/google/blueprint.(Context).generateModuleBuildActions.func2(0xc006876f00, 0x0) /home/admin/GloDroid/build/blueprint/context.go:2304 +0x339 github.com/google/blueprint.(Context).parallelVisit.func1.1(0xc080c200c0, 0xc006876f00, 0xc00006e9c0, 0xc00006e960) /home/admin/GloDroid/build/blueprint/context.go:1709 +0x30 created by github.com/google/blueprint.(*Context).parallelVisit.func1 /home/admin/GloDroid/build/blueprint/context.go:1708 +0x124 10:01:03 soong bootstrap failed with: exit status 1 ninja: build stopped: subcommand failed.build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed make: *** [run_soong_ui] Error 1

rsglobal commented 4 years ago

Could you try with v0.1.0?
https://github.com/glodroid/glodroid_manifest/tree/v0.1.0

mkdir -p GloDroid
cd GloDroid
repo init -u https://github.com/glodroid/glodroid_manifest -b refs/tags/v0.1.0
repo sync -cq
source ./build/envsetup.sh
lunch plus2e-userdebug
make sdcard 2>&1 | tee build.log
AndriiZ commented 4 years ago

Build failed with error MKIMAGE u-boot.itb "dtc" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. ./tools/mkimage: Can't open u-boot.itb.tmp: No such file or directory /home/up/GloDroid/external/u-boot/Makefile:1355: recipe for target 'u-boot.itb' failed make[1]: [u-boot.itb] Error 255 make[1]: Waiting for unfinished jobs.... CC spl/arch/arm/cpu/armv8/fwcall.o CC spl/common/spl/spl.o LD spl/arch/arm/cpu/armv8/built-in.o LD spl/common/spl/built-in.o CC spl/lib/display_options.o LD spl/lib/built-in.o LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin COPY spl/u-boot-spl.bin MKSUNXI spl/sunxi-spl.bin make[1]: Leaving directory '/home/up/GloDroid/out/target/product/opi3/obj/UBOOT_OBJ'

AndriiZ commented 4 years ago

Build failed with error MKIMAGE u-boot.itb "dtc" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information. ./tools/mkimage: Can't open u-boot.itb.tmp: No such file or directory /home/up/GloDroid/external/u-boot/Makefile:1355: recipe for target 'u-boot.itb' failed make[1]: [u-boot.itb] Error 255 make[1]: Waiting for unfinished jobs.... CC spl/arch/arm/cpu/armv8/fwcall.o CC spl/common/spl/spl.o LD spl/arch/arm/cpu/armv8/built-in.o LD spl/common/spl/built-in.o CC spl/lib/display_options.o LD spl/lib/built-in.o LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin COPY spl/u-boot-spl.bin MKSUNXI spl/sunxi-spl.bin make[1]: Leaving directory '/home/up/GloDroid/out/target/product/opi3/obj/UBOOT_OBJ'

rsglobal commented 4 years ago

@AndriiZ ,

Thanks for your bug report. Please try to install dtc and build again: sudo apt-get install -y device-tree-compiler

AndriiZ commented 4 years ago

@rsglobal thanks Now another error [ 42% 252/597] including device/glodroid/common/Android.mk ... FAILED: build/make/core/base_rules.mk:325: error: device/generic/goldfish/gatekeeper: MODULE.TARGET.SHARED_LIBRARIES.gatekeeper.ranchu already defined by device/generic/goldfish/gatekeeper. 08:30:45 ckati failed with: exit status 1 build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed

rsglobal commented 4 years ago

It looks like issue in environment. Could you close your terminal and start from source build/envsetup.sh etc...

rsglobal commented 4 years ago

Can not reproduce. Please re-open issue if it is still valid.

helllopratik commented 1 year ago

i got the same error. i did try installing this 'sudo apt-get install -y device-tree-compiler' but so satisfactory result. how did you guys fixed it ? log.txt