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

Robert Yang liezhi.yang at windriver.com
Fri Dec 1 01:46:00 UTC 2017


Hi Alexander,

On 11/30/2017 07:34 PM, Alexander Kanavin wrote:
> 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?

The flags.make is generated by cmake, and as I said in the commit message:

"The cmake doesn't support relative path, so we have to edit flags.make to fix
the problem"

I'm not familiar with cmake, please let me know if there is a way to make
it generate a relative path in flags.make.

// Robert

> 
> Alex
> 



More information about the Openembedded-core mailing list