[Android 14] lunch failed to invoke the target

1,246 views
Skip to first unread message

rz

unread,
May 14, 2024, 6:00:55 PM5/14/24
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, 6:22:29 PM5/14/24
Instead of aosp_oriole_hwasan-trunk-staging-userdebug do aosp_oriole_hwasan-ap1a-userdebug.


From: [email protected] <[email protected]> on behalf of rz <[email protected]>
Sent: 14 May 2024 01:55 PM
To: Android Building <[email protected]>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://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 [email protected].
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, 7:03:47 PM5/14/24
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