OSSystems / meta-browser

OpenEmbedded/Yocto BSP layer for Web Browsers
MIT License
184 stars 191 forks source link

Chromium Cross Compilation Build Failures - meta-clang and gn-native #665

Open vijaynkamble86 opened 1 year ago

vijaynkamble86 commented 1 year ago

Hello,

I am trying to compile meta-chromium (cross compilation for Qualcomm SoC) but getting build errors for meta-clang and gn-native as mentioned below -

gn-native error - clang++ -target x86_64-linux -MMD -MF src/gn/bundle_data.o.d -I../../../tools/gn/src -I. -isystem/<>/build-qti-distro-rb-debug/tmp-glibc/work/x86_64-linux/gn-native/105.0.5195.102-r0/recipe-sysroot-native/usr/include -Og -g -feliminate-unused-debug-types -pipe -isystem/<>/build-qti-distro-rb-debug/tmp-glibc/work/x86_64-linux/gn-native/105.0.5195.102-r0/recipe-sysroot-native/usr/include -Og -g -feliminate-unused-debug-types -pipe -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++17 -c ../../../tools/gn/src/gn/bundle_data.cc -o src/gn/bundle_data.o error: unable to create target: 'No available targets are compatible with triple "x86_64-unknown-linux"'

libcxx error -

cstdlib:116:9: error: no member named 'strtoll' in the global namespace; did you mean 'strcoll'?
cstdlib:113:9: error: no member named 'strtold' in the global namespace
cstdlib:100:9: error: no member named 'div_t' in the global namespace
cstdlib:101:9: error: no member named 'ldiv_t' in the global namespace
cstdlib:103:9: error: no member named 'lldiv_t' in the global namespace
cstdlib:105:9: error: no member named 'atof' in the global namespace
cstdlib:106:9: error: no member named 'atoi' in the global namespace
cstdlib:107:9: error: no member named 'atol' in the global namespace
cstdlib:109:9: error: no member named 'atoll' in the global namespace
stdlib.h:142:34: error: unknown type name 'ldiv_t'
stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
stdlib.h:146:34: error: unknown type name 'lldiv_t'
stdlib.h:148:12: error: no member named 'lldiv' in the global namespace

Could you please provide any pointer / guidance to me for the above mentioned errors.

Here are more details of the build environment - OS - Yocto Dunfell HW - Qualcomm SoC (aarch64) Host - x86 Ubuntu 18.04

Cheers, -Vijay

vijaynkamble86 commented 1 year ago

I am using the meta-clang for dunfell only as mentioned below - git clone http://github.com/kraj/meta-clang -b dunfell-clang12

Am i missing any configurations..?

Please let me know.