Disallowed PATH tool "m4", but used by flex

390 views
Skip to first unread message

Michael Goffioul

unread,
Mar 30, 2020, 10:58:20 AM3/30/20
to android-...@googlegroups.com
I'm experimenting with android-r-preview-2 and found a problem compiling mesa, which didn't occur with android-10. The error occurs when running flex:

23:56:24 Disallowed PATH tool "m4" used: []string{"m4", "-P"}
23:56:24 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
[  0% 1/74788] Mesa Lex: libmesa_glsl <= external/mesa/src/compiler/glsl/glcpp/glcpp-lex.l
FAILED: out/target/product/x86/gen/STATIC_LIBRARIES/libmesa_glsl_intermediates/glsl/glcpp/glcpp-lex.c
/bin/bash -c "prebuilts/build-tools/linux-x86/bin/flex --nounistd -oout/target/product/x86/gen/STATIC_LIBRARIES/libmesa_glsl_intermediates/glsl/glcpp/glcpp-lex.c external
/mesa/src/compiler/glsl/glcpp/glcpp-lex.l"
"m4" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.

From what I understand, flex internally calls "m4" (according to this reference: https://www.cs.virginia.edu/~cr4bd/flex-manual/M4-Dependency.html).

Any pointer in the right direction would be appreciated, thanks.

Michael.

Dan Willemsen

unread,
Mar 30, 2020, 12:38:10 PM3/30/20
to Android Building
As a reminder:

This preview is not a full platform update and only for reference.

It is not expected that everything will build, as it only contains updates to some projects.

For this breakage in particular, you'll need a change like this one, which fixes up a bunch of things around how mesa was using flex/bison: https://android-review.googlesource.com/c/platform/external/mesa3d/+/1203548

- Dan

--
--
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/CAB-99LtxMUAWGZG2SbnjKB0iOiNAQV5R5oZP%2BHaUaeeW%3D1LZMA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages