The problem is peculiar to some Angstrom images such as the v2012.12 one.  
Turns out /usr/bin/flex uses a hard-wired reference to the m4 executable 
where it lay on the machine where the Angstrom image was cross-compiled!  
(Thanks 
to Rob Clark for finding this out, 
http://gstreamer-devel.966125.n4.nabble.com/Installation-error-td969071.html
)  The ugly but simple fix is to create a symbolic link at the place flex 
looks for m4: 

# mkdir -p 
/build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/bin

# ln -s /usr/bin/m4 
/build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/bin/m4
You can find the path by using a hex editor to look at the /usr/bin/flex 
binary (search for /m4).

Or you can define the M4 environment variable before calling flex:

# M4=/usr/bin/m4 flex *<file>*.l

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to