**** BEGIN LOGGING AT Thu Jul 04 02:59:57 2019 Jul 04 03:49:54 New news from stackoverflow: IMAGE_FEATURES vs IMAGE_INSTALL in Yocto Jul 04 04:51:42 Hi, a short question: How can I disable a specific CC flag for a specific package in its recipe? Jul 04 04:52:13 I use g++ in version 7.4, and this does not support the option -fmacro-prefix-map. So I would like to remove it for my package. Just that flag, all other should stay as they are Jul 04 05:11:57 thomasd13, it depends on where is this flag injected. if it's package specific, you need to patch its sources Jul 04 05:20:39 luneff: Meanwhile I found the source of the flag. It is defined in bitbake.conf (DEBUG_PREFIX_MAP ) Jul 04 05:21:09 The flags set there, are not supported by my g++ verison (7.4). So I would like to get rid of it Jul 04 06:38:32 thomasd13, it's strange to me that yocto is feeding its compiler a flag that it doesn't support. Are you sure you use/need gcc-7.4? what does Yocto provide? is it incompatible with itself? Jul 04 06:40:57 luneff: I'm not so sure anymore. If I type "g++ --version" it prints out 7.4.0. However, after i changed bitbake.conf (just for testing) bitbake rebuild glibc and gcc. gcc package version was 8.3 Jul 04 06:41:18 yocto doesn't use system gcc other than to compile its own Jul 04 06:42:07 never touched bitbake.conf. so I'd say you're naming the issue wrong. some build failure log would help Jul 04 06:42:37 Okay, I will provide it. One moment Jul 04 06:44:40 https://pastebin.com/25BhtGjy Jul 04 06:47:12 When I look into "do.run_compile", I see that BUILD_CXX="g++ ". So I thought yocto will use system g++ Jul 04 06:48:52 And that has the version 7.4.0, which will fit to the error message of compile log. Version 7 does not support macro-prefix-map flag. Jul 04 06:53:52 that's custom code? it's not packaged propertly for yocto. function externalsrc_compile_prefunc -> it should use OE vars like which compiler to use with which flags etc. having host g++ employed == failure Jul 04 06:54:31 how does the recipe file look? Jul 04 06:55:03 if it's just calling "make" on a Makefile that doesn't care about which compiler it's told to use, then the issue is understandable Jul 04 06:55:34 cmake/autotools seem to handle that better, I can't really tell exactly what's needed for a plain Makefile to work with OE/Yocto Jul 04 06:57:16 luneff: Ahhh thanks for that explanation! Indeed, this is custom code and my very first custom package for yocto. The project is normaly build with make. Jul 04 06:57:50 if you have time, I'd recommend to switch to cmake, maybe, and convert the recipe to cmake. would save some trouble and won't hurt in general Jul 04 06:57:56 I tried oe_runmake and make at do_compile() task, but neither worked Jul 04 06:58:18 they pass a lot of stuff in env and expect the build system to respond :-) Jul 04 06:59:29 Okay, so your suggestion is to use cmake? Does cmake use autotools, or the other way around? Jul 04 07:00:13 it's a complete different thing. choose either cmake or autotools Jul 04 07:00:34 my projects are Qt-based so I just use qmake projects :-) Jul 04 07:00:40 Thank you very much! Does yocto support both? Jul 04 07:07:00 I will dig in into cmake ;) Hope it will pay out Jul 04 07:08:59 yocto supports almost everything there is :-) Jul 04 07:44:01 Wow! Cmake works like a charm! Jul 04 07:52:29 Hi guys, just wondering how does Yocto handles Kernel's .config? I add an option then rebuild, where is the .config stored? Jul 04 07:59:12 yacar_: you can found it here https://www.yoctoproject.org/docs/2.7/mega-manual/mega-manual.html#creating-config-fragments Jul 04 08:00:06 thanks nayfe, looks exactly what I need B) Jul 04 08:00:16 there's also https://www.yoctoproject.org/docs/2.7/mega-manual/mega-manual.html#changing-the-configuration Jul 04 08:00:17 glibc is failing to build on poky master due to locale related problem "Can't locate locale.pm in @INC". does local.conf or sstate cache need cleanup? Jul 04 08:03:19 mcfrisk: I had some issues when upgrading Yocto versions with sstate-cache, not sure if it's the case here Jul 04 08:03:22 nayfe : many thanks I'll look into that too. The tools provided by Yocto to handles the fragments looks very simple to use, I can't wait to try those :) Jul 04 08:04:56 yacar_: btw, kernel fragments are not available on every kernel recipes/yocto versions, which one do you use? Jul 04 08:08:56 thomasd13, already??? :-D Jul 04 08:17:12 IMO, glibc is missing DEPENDS to perl-native, and then perl-native is hosed and not using native sysroot in module search path so recipe-sysroot-native/usr/lib/perl5/5.30.0/locale.pm is not found Jul 04 08:18:52 Kernel is 4.9.88 and bitbake is version 1.36.0, poky 2.4.2 Jul 04 08:20:05 nayfe : I'm not sure if those are the relevant version you're seeking ^^, but I'll try with the guide in the mega-manual, if that's not working I'll keep doing as I'm doing know even if that's a bit annoying Jul 04 08:39:15 hmm, in my build env. build/tmp/hosttools/perl is not the host version, but the nativesdk one. wtf.. Jul 04 08:42:06 can nativesdk-perl overwrite the file in sstate cache? Jul 04 08:42:15 from perl-native Jul 04 09:46:52 Hi, i have some issue with echo program. I fact i use it to add some string into a file but when i see the result in the file, i have many null character appended at the beginning of my string. Is someone experienced this kind of thing? Thank you Jul 04 09:47:03 i run the following command: echo "./psycopg2-2.7.5-py2.7-linux-x86_64.egg/" >> /usr/lib/python2.7/site-packages/setuptools.pthAnd here is the result: https://pastebin.com/ne7FZPGG Jul 04 10:07:38 Hi guys, how to enable the feature from the PKGCONFIG? f.e. I see that in a *.bb recipe is this: Jul 04 10:07:39 PACKAGECONFIG[webrtc] = "-feature-webengine-webrtc,-no-feature-webengine-webrtc,libvpx" Jul 04 10:08:18 do I need to add it to DISTRO_FEATURES += "webrtc" ? Jul 04 10:09:55 kuzulis> you need to set PACKAGECONFIG += "webrtc" for corresponding recipe Jul 04 10:10:24 you can do this with recipe bbappend for example Jul 04 10:11:25 Hmm.. but I have read this doc: https://www.yoctoproject.org/docs/2.4.2/ref-manual/ref-manual.html "6.7.2. BlueZ 4.x / 5.x Selection", which say that : "To use BlueZ 5.x, simply add "bluez5" to your DISTRO_FEATURES value.", where: PACKAGECONFIG[bluez5] = "--enable-bluez5,--disable-bluez5,bluez5" Jul 04 10:11:40 Are you sure that I need in PACKAGECONFIG += "webrtc" ? Jul 04 10:12:18 it depends on how PACKAGECONFIG is defined, if probably includes webrtc conditionaly on DISTRO_FEATURE Jul 04 10:13:00 So, what does this meant: PACKAGECONFIG[webrtc] = "-feature-webengine-webrtc,-no-feature-webengine-webrtc,libvpx" ? Jul 04 10:13:39 in this case, the webrtc will be enabled by DISTRO_FEATURES += "libvpx" Jul 04 10:13:42 ? Jul 04 10:13:58 let me rephrase it Jul 04 10:14:09 in pulseaudio recipe, you have PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} ... Jul 04 10:14:25 so if you add bluetooth, it adds corresponding PACKAGECONFIG Jul 04 10:14:57 for qtwebengine, PACKAGECONFIG is defined this way PACKAGECONFIG ??= "libwebp libevent libpng" Jul 04 10:15:21 so it does not enable webrtc by default Jul 04 10:15:44 if you need it you have to add it PACKAGECONFIG for qtwebengine recipe Jul 04 10:16:08 ahh.. seems clear.. many thanks Jul 04 10:16:54 you can do this with a bbappend file or globally in local.conf (or distro config) with PACKAGECONFIG_append_pn-qtwebengine = " webtrc" Jul 04 10:17:20 kuzulis: np Jul 04 10:18:02 nayfe: So, is it enough to use PACKAGECONFIG += "webrtc" in qtwebengine.bbappand file? Jul 04 10:18:09 yes Jul 04 10:18:20 ok, many thanks Jul 04 10:55:56 jeez, doing bitbake builds in a yocto SDK shell isn't a good idea. things broken down in odd ways, e.g. perl Jul 04 11:05:52 Hello, How can I add certificate in yocto? Jul 04 11:14:40 huynq: in which context? what do you want to do? Jul 04 11:22:02 LetoThe2nd: The embedded device which has Yocto, will request API on a server. I need to install self-signed certificate to that device's OS Jul 04 11:22:29 It means that I need to install self-signed certificate on Yocto Jul 04 11:23:18 I have tried on Ubuntu, it's fine because the Ubuntu has update-ca-certificates package. In Yocto, update-ca-certificates is missing??? Jul 04 11:30:57 its part of ca-certificates Jul 04 11:31:06 (i think) Jul 04 11:31:49 $ oe-pkgdata-util find-path '**/update-ca-certificates' Jul 04 11:31:49 ca-certificates: /usr/sbin/update-ca-certificates Jul 04 11:32:22 just write a recipe to put the cert in the right place and call the right hooks Jul 04 11:55:58 anyone else seen this: file /sbin/telinit from install of systemd-1:242+0+db2e367bfc-r0.core2_32 conflicts with file from package sysvinit-2.88dsf-r14.core2_32 Jul 04 11:56:16 from bitbake -c populate_sdk core-image-minimal Jul 04 11:56:40 Is it somehow possible to add a task dependency with an override? something like do_configure[depends]_foo = "bar"? Jul 04 12:06:00 Ok, I just did: VAR = "", VAR_foo = "bar", do_configure[depends] = "${VAR}" Jul 04 12:09:22 rburton: In my Yocto, it notifies that has no dir for certificate Jul 04 12:10:26 huynq: install ca-certificates into your image Jul 04 12:59:30 Hi guys, still trying to insert my yocto fragment. However I'm facing some trouble, I feel like my kernel recipe doesn't use them. I tried with the scc way too, but KERNEL_FEATURES is only used when I'm using it. For the cfg method it seems that it's not used either... Jul 04 12:59:36 Is there other methods? Jul 04 14:04:23 yacar_ use the second link, basically, you copy the entire defconfig in kernel bbappend files Jul 04 16:30:03 RP: I followed up to that yocto bbclass thread. I just wanted to be sure that it won't get merged. I'm quite against it in its current form. Jul 04 16:31:12 * zeddii doesn't understand why someone would hack on that without pinging first Jul 04 16:31:17 * zeddii wanders off to cool down. Jul 04 16:36:11 zeddii: its not merging Jul 04 20:52:33 New news from stackoverflow: Why won't my systemd service run automatically at boot-up Jul 04 21:39:59 * zeddii thinks jwessel’s glibc-locale patch broke my build Jul 04 21:40:04 * zeddii reverts and retries Jul 04 21:52:41 New news from stackoverflow: Is bitbake version 1.43.0 broken? It does not succesfully run the helloworld demo on the yocot page Jul 04 23:52:56 New news from stackoverflow: Why won't my systemd service run automatically at boot-up [on hold] **** ENDING LOGGING AT Fri Jul 05 02:59:56 2019