internal error in flex

Bug #1106865 reported by Leif Lindholm on 2013-01-27
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro AArch64 cross-distro work
Linaro OpenEmbedded
Fix Released
Marcin Juszkiewicz

Bug Description

Reduced test case from attempted open-mpi build - relevant source file attached.

$ flex keyval_lex.l
flex: fatal internal error, exec failed

Builds successfully on amd64 with same flex version (2.5.35).

Leif Lindholm (leif-lindholm) wrote :
Leif Lindholm (leif-lindholm) wrote :

Environment: linaro-sdk-oe #132.

Riku Voipio (riku-voipio) wrote :

flex tries to execute:


As workaround you can:

mkdir -p /data/oe/build/tmp-eglibc/sysroots/x86_64-linux/usr/bin/
ln -s /usr/bin/m4 /data/oe/build/tmp-eglibc/sysroots/x86_64-linux/usr/bin/

So this is a bug how OE builds flex.

Riku Voipio (riku-voipio) wrote :

Where, of course, /data/oe/build is whatever has been used as the build directory when building the linaro-image-sdk.

Riku Voipio (riku-voipio) wrote :


please have a look at:


M4 path should only be hardcoded for the flex-native and bison-native, now also flex and bison installed to target get M4 path hardcoded to staging directory.

Changed in linaro-oe:
status: New → Triaged
Changed in linaro-aarch64:
status: New → Triaged
Changed in linaro-oe:
assignee: nobody → Marcin Juszkiewicz (hrw)
Marcin Juszkiewicz (hrw) wrote :

fix sent to ML

Changed in linaro-oe:
status: Triaged → In Progress
Marcin Juszkiewicz (hrw) on 2013-02-28
Changed in linaro-oe:
status: In Progress → Fix Released
Changed in linaro-aarch64:
status: Triaged → Fix Released
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments