$(call local-generated-sources-dir) was just invented for multiarch build.
$(call local-intermediates-dir) is left probably for compatibility,
It should not be used in multiarch build.
Refer to the commit d8262646 in build/ dir.
To be honest I was not aware of that either
until I saw your patch. So thanks for finding it.
To All: you will probably notice there is no much progress
in lollipop-x86 branch since it's released. That's true.
Actually there are too much issues to be solved so
the 64-bit porting is not in high priority for me.
In the past months we still are working on kitkat-x86
for newer kernel and mesa porting since
the kitkat-x86 codebase is much more stable than lollipop-x86.
After we finalize the new porting I'll forward port it
to lollipop-x86 to make some real progress.
For the original question in this thread,
the easiest way to fix it is just ignore the ffmpeg
since it's not be porting to lollipop0-x86 yet.
Just empty external/ffmpeg/Android.mk or
remove external/ffmpeg entirely.