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.
On Thursday, December 1, 2022 at 1:54:37 AM UTC+9 Álvaro Ruiz Molledo wrote: > 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 > > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@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-building+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/efa991b5-8273-4552-b6a9-a7c880ddde88n%40googlegroups.com.