Building AOSP trout on Ubuntu 22.04

1,335 views
Skip to first unread message

Álvaro Ruiz Molledo

unread,
Nov 30, 2022, 11:54:37 AM11/30/22
to Android Building
Hello,

I'm trying to build aosp_trout_arm64-userdebug in the master branch. This is the config:

============================================
PLATFORM_VERSION_CODENAME=UpsideDownCake
PLATFORM_VERSION=UpsideDownCake
TARGET_PRODUCT=aosp_trout_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-52-generic-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=linux_bionic
BUILD_ID=AOSP.MASTER
OUT_DIR=out
============================================

The make command returns an error:

[  0% 3/81032] Gen Header: libfreedreno_ir3 <= ir3_parser.c
FAILED: out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.c
/bin/bash -c "(out/soong/.intermediates/prebuilts/build-tools/bison/linux_glibc_x86_64/bison external/mesa3d/src/freedreno/ir3/ir3_parser.y --name-prefix=ir3_yy --output=out/target/product/trout_arm64/ge
n/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.c ) && (M4=out/soong/.intermediates/prebuilts/build-tools/m4/linux_glibc_x86_64/m4 out/soong/.intermediates/prebuilts/build-tools/bison/li
nux_glibc_x86_64/bison external/mesa3d/src/freedreno/ir3/ir3_parser.y --name-prefix=ir3_yy --output=out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.c )"
external/mesa3d/src/freedreno/ir3/ir3_parser.y:491.1-14: warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error verbose’ [-Wdeprecated]
  491 | %error-verbose
      | ^~~~~~~~~~~~~~
      | %define parse.error verbose
[  0% 4/81032] Gen Header: libfreedreno_ir3 <= ir3_parser.h
FAILED: out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.h
/bin/bash -c "(out/soong/.intermediates/prebuilts/build-tools/bison/linux_glibc_x86_64/bison external/mesa3d/src/freedreno/ir3/ir3_parser.y --name-prefix=ir3_yy --defines=out/target/product/trout_arm64/g
en/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.h --output=out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.h.tab.c ) && (M4=out/soong/.
intermediates/prebuilts/build-tools/m4/linux_glibc_x86_64/m4 out/soong/.intermediates/prebuilts/build-tools/bison/linux_glibc_x86_64/bison external/mesa3d/src/freedreno/ir3/ir3_parser.y --name-prefix=ir3
_yy --defines=out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.h --output=out/target/product/trout_arm64/gen/STATIC_LIBRARIES/libfreedreno_ir3_intermediat
es/ir3/ir3_parser.h.tab.c )"
external/mesa3d/src/freedreno/ir3/ir3_parser.y:491.1-14: warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error verbose’ [-Wdeprecated]
  491 | %error-verbose
      | ^~~~~~~~~~~~~~
      | %define parse.error verbose
12:15:29 ninja failed with: exit status 1


I think the error it's related to this command:

out/soong/.intermediates/prebuilts/build-tools/bison/linux_glibc_x86_64/bison external/mesa3d/src/freedreno/ir3/ir3_parser.y --name-prefix=ir3_yy --output=out/target/product/trout_arm64/ge
n/STATIC_LIBRARIES/libfreedreno_ir3_intermediates/ir3/ir3_parser.c

If I try to run that bison command, the error return code is 141
Any help would be very appreciated. Thanks

Heesub Shin

unread,
Mar 9, 2023, 3:18:46 PM3/9/23
to Android Building
Hi Alvaro,

I've encountered the same error on my Ubuntu machine. After installing bison, it seems to be solved. You may have already found the solution, but hopefully this helps others who encountered the same error.
Reply all
Reply to author
Forward
0 new messages