Re: [yocto] [scarthgap] dwarfsrcfiles + static lib built with clang

2024-09-11 Thread Joel Winarske
Hi Khem, Yes it is built with LTO. If I disable LTO it works. I definitely need LTO enabled. Using `PACKAGE_DEBUG_STATIC_SPLIT = "0"` in the recipe has no effect on the error. If I set `INHIBIT_PACKAGE_DEBUG_SPLIT = "1"` it's happy. Thanks Khem! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all

[yocto] [scarthgap] dwarfsrcfiles + static lib built with clang

2024-09-11 Thread Joel Winarske
Seeing this error when installing archive file to ${PN}-staticdev, (not prior seen on kirkstone or dunfell): ``` ERROR: dwarfsrcfiles failed with exit code 1 (cmd was ['dwarfsrcfiles', '/mnt/raid10/yocto/master/raspberry-pi5/tmp/work/cortexa76-poky-linux/filament-vk/1.54.3/package/usr/lib/filament

[yocto] python3-pycurl-native

2024-08-16 Thread Joel Winarske
Do anyone have `import pycurl` working in a task? Running `python3 -m pip list` the line before `import pycurl` it lists pycurl as an available module. I'm thinking python3-pycurl-native is not installing all of the dependent system libraries. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messa

[yocto] PACKAGECONFIG variable related patches

2024-03-13 Thread Joel Winarske
What's the idiomatic pattern for applying (a) patch(es) if a PACKAGECONFIG variable is set? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62751): https://lists.yoctoproject.org/g/yocto/message/62751 Mute This Topic: https://lists.yoctoproject.org/m

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
I sorted it out. I needed to export RUSTFLAGS like this: cargo_do_compile:prepend() { export RUSTFLAGS="--emit=llvm-ir" } On Tue, Feb 27, 2024 at 11:01 AM Joel Winarske via lists.yoctoproject.org wrote: > The Rust recipe is located here: > > https://github.com/meta-f

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
The Rust recipe is located here: https://github.com/meta-flutter/meta-flutter/blob/jw/rive/recipes-devtools/rive/rive-taffy-ffi_0.3.0.bb On Tue, Feb 27, 2024 at 7:40 AM Joel Winarske via lists.yoctoproject.org wrote: > `ar x` returns nothing. > > $ ar t ./libtaffy_ffi.a &g

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
, Feb 24, 2024 at 6:06 PM Khem Raj wrote: > try to run ar x on the .a file and see what objects it contains. > > On Fri, Feb 23, 2024 at 5:51 PM Joel Winarske > wrote: > > > > Running readelf -h on the file does work and it shows that it is indeed > the correct machi

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-23 Thread Joel Winarske
aders: 0 Size of section headers: 64 (bytes) Number of section headers: 165 Section header string table index: 1 On Fri, Feb 23, 2024 at 5:40 PM Joel Winarske wrote: > I'm hitting qa issue when attempting to install a archive file built with > Rust: &

[yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-23 Thread Joel Winarske
I'm hitting qa issue when attempting to install a archive file built with Rust: dwarfsrcfiles: /home/joel/agl/raspberrypi4/tmp/work/aarch64-agl-linux/rive-taffy-ffi/0.3.0-r0/package/usr/lib/taffy_ffi/libtaffy_ffi.a: not a valid ELF file I can link this same archive file with C code and the execut

[yocto] Rootless Podman

2023-08-08 Thread Joel Winarske
Anyone successfully building using Rootless Podman? I'm seeing a variety of strange issues. My baseline podman config: --user 1001:1001 --ipc host --privileged --security-opt label=disable --pid host --userns keep-id --ulimit host --mount type=devpts,destination=/dev/pts --security-opt label=disa

Re: [yocto] Mold linker

2023-02-16 Thread Joel Winarske
Oh cool! I'll run some tests on a few builds. Thanks for pointing that out. On Thu, Feb 16, 2023 at 12:42 PM Ross Burton wrote: > On 15 Feb 2023, at 05:35, Joel Winarske via lists.yoctoproject.org > wrote: > > > > Has anyone played around with the mold linker? >

[yocto] Mold linker

2023-02-14 Thread Joel Winarske
Has anyone played around with the mold linker? https://github.com/rui314/mold Curious what the build time difference might be on a large multi-core machine. Joel -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59229): https://lists.yoctoproject.

Re: [yocto] [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases?

2023-02-03 Thread Joel Winarske
I created an issue: https://github.com/agherzan/meta-raspberrypi/issues/1147 I would use Kuzemko Aleksandr's solution in bbappend until there is support in meta-raspberrypi. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59160): https://lists.yocto

Re: [yocto] [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases?

2023-02-03 Thread Joel Winarske
Hi, You should open issue with the upstream layer referencing this dialog: https://github.com/agherzan/meta-raspberrypi Joel On Thu, Feb 2, 2023, 11:18 PM Carles Sole via lists.yoctoproject.org wrote: > Hello Joel, > > I do get the same, but my understanding is that the RT features are not > e

Re: [yocto] [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases?

2023-02-02 Thread Joel Winarske
In the case of kirkstone, this is what I get using `LINUX_KERNEL_TYPE = "preempt-rt"`: Linux raspberrypi4-64 5.15.34-v8 #1 SMP PREEMPT Tue Apr 19 19:21:26 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux I've experienced KERNEL_FEATURE conflicts using meta-virtualization with DISTRO_FEATURES += "vi

Re: [yocto] [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases?

2023-02-01 Thread Joel Winarske
In kirkstone for example, you build preempt-rt variant by adding to local.conf: LINUX_KERNEL_TYPE = "preempt-rt" Does this no longer work? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59132): https://lists.yoctoproject.org/g/yocto/message/59132

Re: [yocto] user service autostart

2022-07-28 Thread Joel Winarske
Like maybe simply: systemd_postinst_ontarget () { if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then for service in ${FLUTTER_USER_SERVICE_ESCAPED}; do su systemctl --user enable "$service" systemctl --user start "$service" done fi } On Thu, J

[yocto] user service autostart

2022-07-28 Thread Joel Winarske
How does one enable a user service for a specific user at postinst? User service in question is located in ${system_user_unitdir}. Seems the problem is related to determining what user, which makes sense why this combo is not allowed: "systemctl --user --root=..." I'm figuring this run as root?

Re: [yocto] Adding systemd to yocto

2022-04-28 Thread Joel Winarske
Line 30-36 include changes to convert a sysvinit image to systemd. https://github.com/jwinarske/manifests/blob/honister/conf/rpi64_config#L30 On Thu, Apr 28, 2022, 10:19 AM Edgar Mobile wrote: > Greetings, > > I tried to add systemd to weston-image-core by adding the following lines > in local

Re: [yocto] NPM support on Dunfell

2022-04-18 Thread Joel Winarske
teway/webthings-gateway_git.bb Cheers, Joel On Mon, Apr 11, 2022 at 7:18 PM Joel Winarske wrote: > I'm seeing some gaps and performance issues. > > Examples: > 1. Setting NPM_INSTALL_DEV = "1" I am rewarded with: > > 169 > <https://github.com/meta-flutte

[yocto] NPM support on Dunfell

2022-04-11 Thread Joel Winarske
I'm seeing some gaps and performance issues. Examples: 1. Setting NPM_INSTALL_DEV = "1" I am rewarded with: 169 npm ERR! Could not install from "../../__w/meta-flutter/rpi4-drm-dunfell-latest/raspberr

Re: [yocto] Google GN support

2022-03-09 Thread Joel Winarske
scenario. If anyone finds this useful/interesting or they want to collaborate on improvements let me know. I do think cipd:// fetcher support would be a good addition to oe-core. Joel On Tue, Oct 5, 2021 at 3:55 PM Joel Winarske via lists.yoctoproject.org wrote: > > > look at meta-br

[yocto] [dunfell] hidden files/folders in WORKDIR

2021-12-15 Thread Joel Winarske
I'm finding that if I create files/folders (prefixed with '.') in WORKDIR, they don't get cleaned up with INHERIT += "rm_work". Is this a feature or a bug? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#55595): https://lists.yoctoproject.org/g/yoct

Re: [yocto] raspberrypi0-2w

2021-12-02 Thread Joel Winarske
https://github.com/agherzan/meta-raspberrypi/blob/master/conf/machine/raspberrypi0-2w-64.conf On Thu, Dec 2, 2021 at 7:08 AM safouane maaloul wrote: > Hello, I writed a conf file to get the raspberrypi0-2 to work in 32 mode > to have the camera packages raspivid. It works just fine. But the pr

Re: [yocto] Building -native with clang

2021-11-18 Thread Joel Winarske
ot;clang" PREFERRED_PROVIDER:libgcc:class-native = "compiler-rt" On Thu, Nov 18, 2021 at 12:04 PM Khem Raj wrote: > Look into chromium recipe > > On Thu, Nov 18, 2021 at 11:55 AM Joel Winarske > wrote: > > > > How do I get a -native recipe to use clang

[yocto] Building -native with clang

2021-11-18 Thread Joel Winarske
How do I get a -native recipe to use clang-native? I have this in my recipe, and target variant builds with clang: RUNTIME = "llvm" TOOLCHAIN = "clang" PREFERRED_PROVIDER:libgcc = "compiler-rt" All the environment variables are setup for gcc in the case of -native. No sign of clang. This is wi

Re: [yocto] pre-built native only tool for native and nativesdk

2021-11-09 Thread Joel Winarske
b/honister/recipes-graphics/flutter-apps/flutter-sdk_git.bb On Tue, Nov 9, 2021 at 3:32 PM Joel Winarske wrote: > Actually by removing `inherit native` and adding -native to the recipe > name doesn't make it build for native. > > On Tue, Nov 9, 2021 at 3:23 PM Joel Winarske

Re: [yocto] pre-built native only tool for native and nativesdk

2021-11-09 Thread Joel Winarske
Actually by removing `inherit native` and adding -native to the recipe name doesn't make it build for native. On Tue, Nov 9, 2021 at 3:23 PM Joel Winarske wrote: > To eliminate target option from the recipe I just need to make sure the > name of the recipe ends with -native, th

Re: [yocto] pre-built native only tool for native and nativesdk

2021-11-09 Thread Joel Winarske
To eliminate target option from the recipe I just need to make sure the name of the recipe ends with -native, then removing inherit native works fine. On Tue, Nov 9, 2021 at 2:09 PM Joel Winarske via lists.yoctoproject.org wrote: > I'm trying to sort out how to install a pre-built h

[yocto] pre-built native only tool for native and nativesdk

2021-11-09 Thread Joel Winarske
I'm trying to sort out how to install a pre-built host-only tool for native and nativesdk only. Using `inherit native` my-recipe-native and nativesdk-my-recipe both build fine, only -c populate_sdk generates "rdepends upon non-existent task do_package_write_rpm". Looking at native.bbclass it incl

Re: [yocto] virtual/egl on Raspberry Pi 4

2021-10-06 Thread Joel Winarske
Hi Greg, Do you have this in your local.conf? DISTRO_FEATURES_append = " opengl" On Tue, Oct 5, 2021, 11:22 AM Greg Wilson-Lindberg wrote: > Hi Khem, > > I added the VC4GRAPHICS line and here is the complete error that I get: > > > ERROR: Nothing PROVIDES 'virtual/egl' (but > /home/gwilson/Qt-

Re: [yocto] Google GN support

2021-10-05 Thread Joel Winarske
> look at meta-browser/meta-chromium as well. The download archive (tar.xz) approach may be the easiest solution. Then one would just need to make a versioned recipe for each LTS. Thanks Khem! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54974)

[yocto] Google GN support

2021-10-05 Thread Joel Winarske
I'm looking into best practice LTS support for Google GN based projects. This includes Chromium, Flutter, SKIA, etc. The weakness I see today for GN projects is that it's a build system within a build system, and doesn't support idiomatic download caching, download vs patching isn't clear as it s

Re: [yocto][poky][master][PATCH} VirGL: depends on virtual/gbm

2021-05-28 Thread Joel Winarske
omehow, somewhere, but rather that virgl needs to > be explicit about needing gbm. > > The patch should be going to the oe-core list. > > Alex > > On Fri, 28 May 2021 at 21:16, Joel Winarske > wrote: > >> >> This addresses cases where the platform doesn't de

[yocto][poky][master][PATCH} VirGL: depends on virtual/gbm

2021-05-28 Thread Joel Winarske
This addresses cases where the platform doesn't depend on Mesa. Tegra is one example. >From 427d6248379bf37f5522d4bb1013b8c0b7a26b5b Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Fri, 28 May 2021 12:10:46 -0700 Subject: [PATCH] VirGL depends on gbm.h Signed-off-by: Joel

Re: [yocto] Problem with YOCTO Dunfell and host Fedora 33

2021-05-20 Thread Joel Winarske
Hi Zoran, Your cannelloni recipe is set to autorev, meaning it's not locked to a commit. So when something changes upstream you have to manage it. Chances are Canelloni introduced a CMake change which is overwriting (opposed to appending) one or more variables required for cross compiling. Perha

[yocto] git-lfs #dunfell

2020-12-12 Thread joel . winarske
I am seeing problems in git fetcher using a github repo using lfs + ssh in dunfell. I find if I set "lfs=0" it still attempts to download the lfs objects and fails.  Same behavior if "lfs=1". SRC_URI = "git://g...@github.com:/account/cool-thing.git;protocol=ssh;lfs=1;branch=cool_branch" A sug

Re: [yocto] project that builds target and host

2020-05-13 Thread Joel Winarske
> > > Putting files in the target sysroot that are in fact native binaries. > Don't do that. > Yeah i don't want to disable stripping the Target files. > > The major surgery would be less maintainable. > > Can you not work with upstream to integrate the changes? > Alternatively, if the native pa

Re: [yocto] project that builds target and host

2020-05-13 Thread Joel Winarske
What are some nasty hack options? The major surgery would be less maintainable. On Wed, May 13, 2020, 12:51 PM Ross Burton wrote: > On Wed, 13 May 2020 at 20:28, Joel Winarske > wrote: > > In this case I already have a Target and Native recipe. The Project > generates a Nativ

Re: [yocto] project that builds target and host

2020-05-13 Thread Joel Winarske
2020, 7:13 AM Ross Burton wrote: > On Wed, 13 May 2020 at 06:03, Joel Winarske > wrote: > > I have a project that generates a native artifact during the target > build. Both the native and target artifacts are needed for other target > recipes. > > > > What's t

[yocto] project that builds target and host

2020-05-12 Thread Joel Winarske
Hi, I have a project that generates a native artifact during the target build. Both the native and target artifacts are needed for other target recipes. What's the recommended pattern for handling this? Thanks, Joel -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. Vi

[yocto] Zeus - Post Build folder corruption #yocto

2020-04-03 Thread Joel Winarske
Has anyone seen this post build?  Where there are folders created of random items?  Some folders have a path deep of 5+. joel@hammer:/media/joel/SolidState/rpi/rpi4-64$ ls '!='                       'os.path.join('\''' bitbake-cookerdaemon.log  'os.path.normpath(d.getVar('\''S'\''))' cache      

Re: [yocto] python argparse or alternate method

2020-04-01 Thread Joel Winarske
ONFARGS").split(" ") > should fix the issue. > But from a bitbake perspective you should really think about choosing a > less pythonic version > > Best > > Konrad > On 01.04.20 22:00, Joel Winarske wrote: > > Hi Konrad, > > I left out the detai

Re: [yocto] python argparse or alternate method

2020-04-01 Thread Joel Winarske
ACKAGECONFIG_CONFARGS', '--verbose', > out/verbose', 'out', d)} > > } > On 01.04.20 18:55, Joel Winarske wrote: > > Hello, > > I'm trying the below in a recipe. Bitbake gives me: ERROR: Unable to > parse ...: Exited with "2" >

[yocto] python argparse or alternate method

2020-04-01 Thread Joel Winarske
Hello, I'm trying the below in a recipe.  Bitbake gives me: ERROR: Unable to parse ...: Exited with "2" inherit python3native require utils.inc do_configure() { cd ${@get_out_dir(d)} } (in utils.inc) def get_out_dir(d): import os import argparse pkgconfig_args = d.getVar("PACKAGECONFIG_CONFA