On 2023-01-13 02:43, jovanbosic95 via lists.yoctoproject.org wrote:
This is my gn-native_106.0.5.249.119.bb:
Aside from:
1. the version number in the file name, and
2. the DEPENDS of libcxx-native added to list
your file is the same as in
meta-chromium/recipes-browser/chromium/gn-native_106.0.5249.119.bb
https://github.com/OSSystems/meta-browser/blob/master/meta-chromium/recipes-browser/chromium/gn-native_106.0.5249.119.bb.
and that works well on all the distros that I've tested.
What is it that that you're trying to do with a different version?
FWIW, on Ubuntu-22.04, your string header file is from:
$ dpkg -S /usr/include/c++/11/string
libstdc++-11-dev:amd64: /usr/include/c++/11/string
You and your co-worker might compare the output of dpkg -l or whatever lists
your installed packages.
../Randy
# gn-native contains the GN binary used to configure Chromium.
# It is not released separately, and each Chromium release is only
expected to
# work with the GN version provided with it.
require chromium.inc
inherit native
S = "${WORKDIR}/chromium-${PV}"
# bootstrap.py --no_clean hardcodes the build location to out_bootstrap.
# Omitting --no_clean causes the script to create a temporary directory
with a
# random name outside the build directory, so we choose the lesser of
the two
# evils.
B = "${S}/out_bootstrap"
SRC_URI += " \
file://0001-Pass-no-static-libstdc-to-gen.py.patch \
"
# The build system expects the linker to be invoked via the compiler. If
we use
# the default value for BUILD_LD, it will fail because it does not recognize
# some of the arguments passed to it.
BUILD_LD = "${CXX}"
# Use LLVM's ar rather than binutils'. Depending on the optimizations
enabled
# in the build ar(1) may not be enough.
BUILD_AR = "llvm-ar"
DEPENDS = "clang-native ninja-native libcxx-native"
DEPENDS:append:runtime-llvm = " compiler-rt-native libcxx-native"
# Use libcxx headers for native parts
CXXFLAGS:append:runtime-llvm = " -isysroot=${STAGING_DIR_NATIVE}
-stdlib=libc++"
# Use libgcc for native parts
LDFLAGS:append:runtime-llvm = " -rtlib=libgcc -unwindlib=libgcc
-stdlib=libc++ -lc++abi -rpath ${STAGING_LIBDIR_NATIVE}"
do_configure[noexec] = "1"
do_compile() {
python3 ${S}/tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles
}
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/out/Release/gn ${D}${bindir}/gn
}
INSANE_SKIP:${PN} += "already-stripped"
I have libcxx-native in dependencies and I have installed C++ runtime
but I am seeing the same error.
--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58985): https://lists.yoctoproject.org/g/yocto/message/58985
Mute This Topic: https://lists.yoctoproject.org/mt/96241718/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-