I finally ran into this same issue. So sorry for it taking so long. This was fairly low-priority at the time and something I’d expect to hit many OE users on many other platforms, but it seems to be broken in even recent builds. Sample flex script was started from http://web.eecs.utk.edu/~bvz/teaching/cs461Sp11/notes/flex/.
For now, I’ve worked-around this issue by rebuilding natively. I did the below from a directory (/mnt) with plenty of space.
wget http://downloads.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2?r=&ts=1380059953&use_mirror=softlayer-dal
tar xjf flex-2.5.35.tar.bz2?r=&ts=1380059953&use_mirror=softlayer-dal
cd flex-2.5.35
./configure
make
make install
Be sure that /usr/local/bin is in your path ahead of /usr/bin.
The result seems to produce valid output, but I’m still getting:
root@beaglebone:~# flex flex_test.l
flex: fatal internal error, exec failed
root@beaglebone:~# strace flex flex_test.l 2>&1 | tail
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21309, si_status=0, si_utime=0, si_stime=0} —
munmap(0xb6f2f000, 4096) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21309
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21307
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21307, si_status=0, si_utime=1, si_stime=1} —
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21308
— SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21308, si_status=0, si_utime=15, si_stime=1} —
wait4(-1, 0xbebb0b8c, 0, NULL) = -1 ECHILD (No child processes)
exit_group(0) = ?
+++ exited with 0 +++
I’m not enough of an OE expert to fix it quickly, but I’ll raise the issue.