[OE-core] [PATCH 4/5] webkitgtk: fix compile error when len(TMPDIR) == 410

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Nov 30 11:34:47 UTC 2017


On 11/30/2017 03:45 AM, Robert Yang wrote:
> One of the gcc command line was too long (longer than 160,000 characters) when
> len(TMPDIR) == 410, so there was an "Argument list too long" error:
> $ bitbake webkitgtk
> i586-poky-linux-g++: error trying to exec [snip] execv: Argument list too long
> 
> The cmake doesn't support relative path, so we have to edit flags.make to fix
> the problem:
> - Replace -I${RECIPE_SYSROOT} with -I=
> - Replace "-I${S}/path1/in/S -I ${S}/path2/in/S" with
>    "-iprefix ${S} -iwithprefixbefore /path1/in/S -iwithprefixbefore /path2/in/S"

Where does flags.make come from? Can you fix the problem at the source, 
rather than patch the file with a custom, unwieldy function after the fact?

Alex



More information about the Openembedded-core mailing list