[oe] [meta-browser] Modern Chromium with GN

Raphael Kubo da Costa raphael.kubo.da.costa at intel.com
Mon Oct 23 13:33:57 UTC 2017


Otavio Salvador <otavio.salvador at ossystems.com.br> writes:
>>>       | g++ -MMD -MF base/base_paths.o.d
>>>       | -I/z/chromium/crosswalk/build/tmp-glibc/work/x86_64-linux/gn-native/62.0.3202.62-r0/chromium-62.0.3202.62/out_bootstrap/gen
>>>       | -I/z/chromium/crosswalk/build/tmp-glibc/work/x86_64-linux/gn-native/62.0.3202.62-r0/chromium-62.0.3202.62
>>>       | -isystem/z/chromium/crosswalk/build/tmp-glibc/work/x86_64-linux/gn-native/62.0.3202.62-r0/recipe-sysroot-native/usr/include
>>>       | -O2 -pipe -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0
>>>       | -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
>>>       | -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions
>>>       | -isystem/z/chromium/crosswalk/build/tmp-glibc/work/x86_64-linux/gn-native/62.0.3202.62-r0/recipe-sysroot-native/usr/include
>>>       | -O2 -pipe -std=c++14 -Wno-c++11-narrowing -c
>>>       | /z/chromium/crosswalk/build/tmp-glibc/work/x86_64-linux/gn-native/62.0.3202.62-r0/chromium-62.0.3202.62/base/base_paths.cc
>>>       | -o base/base_paths.o
>>>       | g++: error: unrecognized command line option ‘-std=c++14’
>>
>> Ouch :( That's a new kind of issue I was not expecting.
>
> It needs to check if c++14 is really needed for GN to work. Better
> would it depends on gn-native and it to be handled elsewhere.

While this specific issue is in GN, I expect it to happen during the
Chromium build as well, as some tools are built and run on the host
machine.

Even if GN specifically does not depend on C++14 now, working around
that is an uphill battle, as the Chromium project requires a C++14
compiler and multiple parts of the code base will start using C++14
features (or already are).

>>> [...]
>>
>>> Is there any way to intercept these calls and have it call OE's gcc-native
>>> instead?
>>
>> Do you have an example of that being done in another recipe?
>
> Hard. We don't build a native compiler.



More information about the Openembedded-devel mailing list