[Android 14] lunch failed to invoke the target

97 views
Skip to first unread message

rz

unread,
May 14, 2024, 11:00:55 AMMay 14
to Android Building
Hi,

When trying to build aosp - android-14.0.0_r37, `lunch` is failing to display menu and invoke the target.

```
$ lunch

You're building on Linux
Warning: Cannot display lunch menu.
Note: You can invoke lunch with an explicit target:
  usage: lunch [target]

Which would you like? [aosp_arm-trunk_staging-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-trunk_staging-eng): aosp_oriole_hwasan-trunk_staging-userdebug
In file included from build/make/core/config.mk:389:
In file included from build/make/core/envsetup.mk:51:
build/make/core/release_config.mk:109: error: No release config found for TARGET_RELEASE: trunk_staging. Available releases are: ap1a.
11:50:52 dumpvars failed with: exit status 1
```

Any help is very much appreciated.

Thank you.

Anurag Kumar

unread,
May 14, 2024, 11:22:29 AMMay 14
to android-...@googlegroups.com
Instead of aosp_oriole_hwasan-trunk-staging-userdebug do aosp_oriole_hwasan-ap1a-userdebug.


From: android-...@googlegroups.com <android-...@googlegroups.com> on behalf of rz <rzi...@gmail.com>
Sent: 14 May 2024 01:55 PM
To: Android Building <android-...@googlegroups.com>
Subject: [android-building] [Android 14] lunch failed to invoke the target
 
--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/7a6d3979-7d17-422a-9050-df18b48eb355n%40googlegroups.com.

enh

unread,
May 14, 2024, 12:03:47 PMMay 14
to android-...@googlegroups.com
works for me on AOSP master...

the code producing the error message looks like this:

function print_lunch_menu()
{
local uname=$(uname)
local choices
choices=$(TARGET_BUILD_APPS= TARGET_PRODUCT= TARGET_RELEASE=
TARGET_BUILD_VARIANT= get_build_var COMMON_LUNCH_CHOICES 2>/dev/null)
local ret=$?

echo
echo "You're building on" $uname
echo

if [ $ret -ne 0 ]
then
echo "Warning: Cannot display lunch menu."
echo
echo "Note: You can invoke lunch with an explicit target:"
echo
echo " usage: lunch [target]" >&2
echo
return
fi

so try adding

TARGET_BUILD_APPS= TARGET_PRODUCT= TARGET_RELEASE=
TARGET_BUILD_VARIANT= get_build_var COMMON_LUNCH_CHOICES

before the

choices=$(TARGET_BUILD_APPS= TARGET_PRODUCT= TARGET_RELEASE=
TARGET_BUILD_VARIANT= get_build_var COMMON_LUNCH_CHOICES 2>/dev/null)

line to see what the error is?
Reply all
Reply to author
Forward
0 new messages