0

I am building unofficial AOSP rom for my device(OnePlus One)

I followed the steps in to initialise

I have used the following commands

source build/envsetup.sh
lunch aosp_arm64-eng
make -j4

output:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_arm64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-37-generic-x86_64-Ubuntu-20.04-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200605.002.A1
OUT_DIR=out
============================================
[  6% 6/94] link out/soong/.bootstrap/gotestrunner/obj/a.out
FAILED: out/soong/.bootstrap/gotestrunner/obj/a.out
GOROOT='prebuilts/go/linux-x86' prebuilts/go/linux-x86/pkg/tool/linux_amd64/link -o out/soong/.bootstrap/gotestrunner/obj/a.out.tmp<br>  out/soong/.bootstrap/gotestrunner/obj/gotestrunner.a && if cmp --quiet out/soong/.bootstrap/gotestrunner/obj/a.out.tmp out/soong/.bootstrap/gotestrunner/obj/a.out; then rm out/soong/.bootstrap/gotestrunner/obj/a.out.tmp; else mv -f out/soong/.bootstrap/gotestrunner/obj/a.out.tmp out/soong/.bootstrap/gotestrunner/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
[  7% 7/94] link out/soong/.bootstrap/loadplugins/obj/a.out
FAILED: out/soong/.bootstrap/loadplugins/obj/a.out
GOROOT='prebuilts/go/linux-x86' prebuilts/go/linux-x86/pkg/tool/linux_amd64/link -o out/soong/.bootstrap/loadplugins/obj/a.out.tmp  out/soong/.bootstrap/loadplugins/obj/loadplugins.a && if cmp --quiet out/soong/.bootstrap/loadplugins/obj/a.out.tmp out/soong/.bootstrap/loadplugins/obj/a.out; then rm out/soong/.bootstrap/loadplugins/obj/a.out.tmp; else mv -f out/soong/.bootstrap/loadplugins/obj/a.out.tmp out/soong/.bootstrap/loadplugins/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
[  8% 8/94] link out/soong/.bootstrap/gotestmain/obj/a.out
FAILED: out/soong/.bootstrap/gotestmain/obj/a.out
GOROOT='prebuilts/go/linux-x86' prebuilts/go/linux-x86/pkg/tool/linux_amd64/link -o out/soong/.bootstrap/gotestmain/obj/a.out.tmp  out/soong/.bootstrap/gotestmain/obj/gotestmain.a && if cmp --quiet out/soong/.bootstrap/gotestmain/obj/a.out.tmp out/soong/.bootstrap/gotestmain/obj/a.out; then rm out/soong/.bootstrap/gotestmain/obj/a.out.tmp; else mv -f out/soong/.bootstrap/gotestmain/obj/a.out.tmp out/soong/.bootstrap/gotestmain/obj/a.out; fi

runtime.main_main·f: function main is undeclared in the main package
21:41:40 soong bootstrap failed with: exit status 1

#### failed to build some targets (1 seconds) ####

Anyone please help me with this issue
Thanks in advance

1 Answers1

0

Your lunch (2nd) command is wrong, it should be

lunch aosp_bacon-eng

Assuming you have cloned your device sources and made required changes

  • But if I use your code then too it is showing some error .....[ build/make/core/product_config.mk:223: error: Can not locate config makefile for product "aosp_bacon".]. Is there any other solution for it? – S.K.G Ezhil Jun 18 '20 at 12:41