IRC log for #oe on 20170630

00:20.07*** join/#oe infobot (~infobot@rikers.org)
00:20.07*** topic/#oe is OpenEmbedded Developer Lounge | Web: http://openembedded.org | Repositories: http://git.openembedded.org/ | Primary Repo Mirrors: https://github.com/openembedded | This is not a distro or machine support channel
00:29.01MrKevinHas anyone out there successfully built oe/poky using Windows Subsystem for Linux?  I got the build to start, but I had to build in /mnt/e since I didn't have enough space in my C drive, so I ran afoul of filenames with ":" in them.
00:32.51*** join/#oe Jackie (~quassel@106.120.101.38)
01:15.38*** join/#oe bluelightning (~paul@85.159.237.199)
01:15.38*** join/#oe bluelightning (~paul@pdpc/supporter/professional/bluelightning)
02:11.16*** join/#oe Nilesh_ (uid116340@gateway/web/irccloud.com/x-aprgxdzqkfevjcfw)
02:28.02khemMrKevin: I would suggest to use a linux VM on windows
02:28.31khemWe do support SDKs on mingw
02:28.37kergothwould be nice to support the windows subsystem for linux in general, my main concern would be filesystem capabilities, but i doubt anyone has messed with it much yet
02:28.43kergotha vm is definitely a good way to go
03:28.23*** join/#oe _dv_ (~quassel@62-178-118-86.cable.dynamic.surfer.at)
03:37.11*** join/#oe anarsoul|2 (~anarsoul@216-71-193-140.dyn.novuscom.net)
05:12.10*** join/#oe sgw_ (~sgw_@c-24-21-121-142.hsd1.or.comcast.net)
05:14.42*** join/#oe AndersD (~anders@194.237.220.218)
05:16.37*** join/#oe dl9pf (~quassel@static.88-198-106-157.clients.your-server.de)
05:16.37*** join/#oe dl9pf (~quassel@opensuse/member/dl9pf)
05:18.46*** join/#oe sgw_1 (~sgw_@134.134.139.78)
05:28.42*** join/#oe adam-trhon (~dadam@ip-62-245-109-85.net.upcbroadband.cz)
05:38.19*** join/#oe AndersD (~anders@194-237-220-218.customer.telia.com)
05:51.42*** join/#oe Jackie (~quassel@106.120.101.38)
06:00.45*** join/#oe joseppc (~josep@c-8614e455.010-118-73746f7.cust.bredbandsbolaget.se)
06:00.46*** join/#oe joseppc (~josep@linaro/joseppc)
06:09.39*** join/#oe snowkidind (~textual@216-15-40-124.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com)
06:20.45*** join/#oe adam-trhon (~dadam@176.74.132.138)
06:21.25*** join/#oe anarsoul|2 (~anarsoul@216-71-193-140.dyn.novuscom.net)
06:45.09*** join/#oe Bunio_FH (~bunio@clj-165.netdrive.pl)
06:50.21*** join/#oe t0mmy (~tprrt@217.114.201.133)
07:00.57*** join/#oe jku (~jku@192.198.151.44)
07:01.09*** join/#oe jbrianceau_away (uid10952@gateway/web/irccloud.com/x-aluwwxpufmuzfxrv)
07:05.54*** join/#oe MarcWe (~hmw@zimbra.welvaarts.com)
07:23.49*** join/#oe Bunio_FH (~bunio@89-79-16-212.dynamic.chello.pl)
07:27.25*** join/#oe stefan_schmidt (~stefan@p2003004809283B6F9A8389FFFE2E3FAE.dip0.t-ipconnect.de)
07:38.54*** join/#oe ao2 (~ao2@host52-146-dynamic.43-79-r.retail.telecomitalia.it)
07:45.15*** join/#oe bluelightning (~paul@pdpc/supporter/professional/bluelightning)
08:19.41*** join/#oe florian_kc (~fuchs@Maemo/community/contributor/florian)
08:20.37*** join/#oe florian_ (~fuchs@p2E5258F0.dip0.t-ipconnect.de)
08:35.29*** join/#oe yann (~yann@LFbn-1-489-101.w86-245.abo.wanadoo.fr)
09:04.39*** join/#oe ao2_ (~ao2@host150-148-dynamic.16-87-r.retail.telecomitalia.it)
09:06.26*** join/#oe mario-goulart (~user@email.parenteses.org)
09:21.31*** join/#oe bluelightning (~paul@pdpc/supporter/professional/bluelightning)
09:24.26*** join/#oe ant_work (~ant__@host215-70-dynamic.249-95-r.retail.telecomitalia.it)
09:29.44*** join/#oe tasslehoff (~Tasslehof@82.147.55.166)
09:36.50*** join/#oe t0mmy (~tprrt@217.114.201.133)
09:48.34*** join/#oe ao2__ (~ao2@host179-223-dynamic.51-79-r.retail.telecomitalia.it)
10:15.30*** join/#oe Bunio_FH (~bunio@89-79-16-212.dynamic.chello.pl)
10:17.56*** join/#oe bluelightning_ (~paul@85.159.237.199)
10:17.56*** join/#oe bluelightning_ (~paul@pdpc/supporter/professional/bluelightning)
11:03.59*** join/#oe AndersD (~anders@194-237-220-218.customer.telia.com)
11:34.19*** join/#oe berton (~berton@179.105.243.125)
11:40.47*** join/#oe ldnunes (~ldnunes_@179.105.243.125)
11:41.43*** join/#oe caiortp (~inatel@131.221.240.233)
11:54.43*** join/#oe MarcWe (~hmw@zimbra.welvaarts.com)
12:29.14*** join/#oe hrww (~hrw@redhat/hrw)
12:39.04*** join/#oe Bunio_FH (~bunio@89-79-16-212.dynamic.chello.pl)
12:48.59*** join/#oe Nilesh_ (uid116340@gateway/web/irccloud.com/x-fzmpfwwolyoanpgv)
12:59.19*** join/#oe ao2_ (~ao2@host228-145-dynamic.55-82-r.retail.telecomitalia.it)
13:06.20*** join/#oe madisox (~madison@216-75-232-11.static.wiline.com)
13:36.07*** join/#oe marka (~masselst@135-23-92-83.cpe.pppoe.ca)
13:42.21*** join/#oe neomilium (~quassel@LFbn-1-11819-107.w90-93.abo.wanadoo.fr)
13:50.59*** join/#oe rob_w (~rob@unaffiliated/rob-w/x-1112029)
13:51.07*** join/#oe florian (~fuchs@Maemo/community/contributor/florian)
14:52.50*** join/#oe ao2__ (~ao2@host149-34-dynamic.16-87-r.retail.telecomitalia.it)
15:07.43*** join/#oe anarsoul|2 (~anarsoul@216-71-193-140.dyn.novuscom.net)
15:09.52*** join/#oe armpit (~armpit@2601:202:4001:9ea0:4500:a5e9:7fec:f9a5)
15:14.50*** join/#oe ao2_ (~ao2@host190-94-dynamic.49-82-r.retail.telecomitalia.it)
15:19.39cbrakewhat is the difference between tmp/sysroots and tmp/sysroots-components ?
15:21.03kergothcbrake: with recipe specific sysroots, each recipe has its own native and target sysroot just with its dependencies
15:21.03*** join/#oe stephano (~stephano@134.134.139.72)
15:21.13kergothsysroot-components holds the content used to construct them
15:21.40kergothafaik, anyway
15:21.53cbrakekergoth: is it normal that tmp/sysroots does not contain anything?
15:22.05kergothyes
15:22.12kergothas i said, sysroots are recipe specific now
15:22.18kergoththe notion of a global one doesn't make much sense anymore
15:22.47cbrakekergoth: IC -- thanks for the explanation
15:23.15kergothiirc it still may be used in certain contexts -- there are boundaries where external tools need access to sysroot content, and have mechanisms to do so
15:23.25kergothi.e. the wic-tools recipe populates a sysroot with the bits wic needs
15:23.27*** join/#oe ao2__ (~ao2@host96-137-dynamic.56-79-r.retail.telecomitalia.it)
15:23.55kergothnot 100% clear on the details of all those myself
15:24.30cbrakehow does a path get set then with binaries in different directories?
15:24.46cbrakefor example when a recipe needs to access tools during a build
15:25.05cbrakeguess I should go look at a temp/run.do_compile script ...
15:27.06kergothnot sure what you mean
15:27.09kergothas i said, each recipe gets its own sysroots
15:27.12kergoththose are in PATH
15:27.25kergotha task is run before configure tha tpopulates them based on the deps
15:34.22cbrakewe're running into an issue using the OE toolchain in sysroots to build a linux kernel outside OE (part of our standard development flow).  Still digging to better understand all this ...
15:35.32Crofton|workcbrake, why not use populate_sdk and make a stand alone toolchain?
15:35.38*** join/#oe stephano (~stephano@134.134.139.83)
15:36.22cbrakeCrofton|work: that would work, but requires extra steps, disk space, etc.  Most of the time, the OE/kernel developers are the same people, so by setting a few variables, we can just use the OE toolchain
15:36.27kergothyeah, the answer is usually "don't do that"
15:36.41kergothbut iirc there is a recipe to populate the global sysroot with what's been built thus far
15:37.08cbrakeI think once I figure out where everything is, it will be a simple matter to include in the path
15:37.16kergothtmp is called tmp for a reason, you can't rely on its contents being usable by anything but bitbake
15:37.26kergothif it breaks on occasion due to an assumption, that's to be expected
15:38.08kergothif you really want to add 47 different dirs in sysroot-components to your PATH, sure, otherwise no, not unless you use the recipe i just mentioned, or write your own to do similarly
15:39.10cbrakeyeah, maybe this is not practical -- but still, the tools required to build kernel and u-boot are fairly minimal, which is the primary need.  App developers use the SDK.
15:42.04Crofton|workthat reminds me, I need to recheck AB sdk building u-boot
15:42.13Crofton|workI swear there is an issue building u-boot
15:43.24cbrakeOK, I think you folks have talked me into just using the SDK :-)
15:43.49kergothcbrake: oe-core/meta/recipes-core/meta/build-sysroots.bb
15:44.07Crofton|workif you have issues building some fdt thing let me know
15:44.12Crofton|workI have an interest
15:45.26cbraketries build-sysroots ...
15:50.29*** join/#oe snowkidind (~textual@216-15-40-124.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com)
16:07.24cbrakekergoth: build-sysroots is a winner -- thanks for the tip.  
16:07.31kergothnice, np
16:07.42kergothfigured it might unblock you at least, can always consider moving to an sdk later
16:13.54cbrakeyeah, building the kernel is so simple -- all you need is ARCH, CROSS_COMPILE, and add tools to PATH ... hard to give up the simplicity of that when doing kernel + OE work together
16:14.52kergothcan always use devtool modify / devtool build / etc, but yeah, slightly more overhead
16:15.48kergothwonder how well memres is working nowadays
16:17.17cbrakeI should try devtool again.  Having the OE recipe pull kernel from git, and then push kernel changes to git from tree outside OE just works so well and as so fast I have little motivation to try something else ...
16:25.39*** join/#oe Nilesh_ (uid116340@gateway/web/irccloud.com/x-kafpynlhcbuvkumt)
16:52.23ensc|wcbrake: we are using https://github.com/sigma-embedded/elito-de.sigma-chemnitz/blob/master/meta/recipes/elito-develcomp/elito-makefile.bb
16:52.56ensc|wcreates makefile wrappers with a customizable sysroot environment
17:00.22cbrakeensc|w: neat -- thanks for the link.  What are some examples of what you use these resulting Makefiles for?
17:03.01*** join/#oe Varti (~varthall@dynamic-adsl-78-12-165-102.clienti.tiscali.it)
17:03.44ensc|wcbrake: kernel can be built by: make -f ../Makefile.kernel.<project-name> KBUILD_OUTPUT=
17:04.28ensc|wor 'make shell' (which is a toplevel wrapper) creates a shell where arm-....-gcc and all the other stuff from the sysroot is in the path
17:04.54ensc|wthere is a 'make pkg-install P=foo' functionality too, which install package 'foo' in the image (which is exported by NFS)
17:07.48ensc|wcbrake: https://pastebin.com/BnpnAgCQ
17:15.19*** join/#oe neomilium (~quassel@LFbn-1-11819-107.w90-93.abo.wanadoo.fr)
17:38.18*** join/#oe paulg (~paulg@198-84-239-75.cpe.teksavvy.com)
18:27.43*** join/#oe adam-trhon (~dadam@ip-62-245-109-85.net.upcbroadband.cz)
18:29.43*** join/#oe florian (~fuchs@Maemo/community/contributor/florian)
19:05.11*** join/#oe t0mmy (~tprrt@ram31-1-82-234-79-177.fbx.proxad.net)
19:22.07*** join/#oe denix0 (~denix@pool-100-15-85-143.washdc.fios.verizon.net)
19:25.19*** join/#oe volestorm (~volestorm@23.105.205.111.16clouds.com)
19:25.19*** join/#oe rob_w (~rob@unaffiliated/rob-w/x-1112029)
20:09.14*** join/#oe stephano (stephano@nat/intel/x-wyenbrgcgrwuqkdb)
20:42.27khemcbrake:  I would suggest to see if devtool workflow would be a better long time solution
20:43.09*** join/#oe t0mmy (~tprrt@ram31-1-82-234-79-177.fbx.proxad.net)
20:43.15khemcbrake: that workflow gives best of both worlds  devs get to hack on a src tree that is under their control + the infra and tools are managed by OE
20:43.51khemthey dont have to worry about the internal restructuring like this
20:45.24cbrakekhem: looks interesting
20:46.10cbrakekhem: documentation is a little terse, so will need to spend some playing with it
20:46.44*** join/#oe t0mmy (~tprrt@ram31-1-82-234-79-177.fbx.proxad.net)
20:52.43khemcbrake: few steps devtool modify -x <recipe>
20:52.52khemdevtool build <recipe>
20:52.57khemthats it
20:53.28khemnow you have the sources checked out into a directory called workspace/sources/<recipe>
20:53.40khemnow you can build with devtool or bitbake doesnt matter
20:53.54khemit will always use your external source tree for <Recipe>
20:54.28khemyou can fix things and commit into workspace/sources/<recipe> ( its a git tree )
20:54.58khemin the end you can do devtool finish <recipe> <layer-name where the recipe belongs to e.g. meta-oe>
20:55.20khemit will do all the needed bits of creating patches and applying them back into meta data
20:55.39khemif you dont want to keep your changes and delete the external source
20:55.48khemdevtool reset <Recipe> will do it
20:55.57khemthese are primary steps you will need
20:56.15*** join/#oe armpit (~armpit@2601:202:4001:9ea0:4500:a5e9:7fec:f9a5)
20:56.16kergothnote: it doesn't delete the external source, it leaves it there, just stops using it
20:56.23kergothcan always use it again later
20:56.32khemyes and it informs about it nicely :)
20:56.38kergothindeed
20:57.04khemI also go into sources and links to oe-logdir and oe-workdir are there which are handy to peek into objdir
20:57.35khemI usually do oe-logdir/run.do_compile when doing changes in src
20:57.51khemwhich tells me quickly if the change compiles and links
20:57.56khempretty handy
20:58.28khemdevtool upgrade --version x.y.x <recipe> works great too
20:58.38khemfor upgrading tarball based recipes
20:59.41khemmay be in future we can have devtool test <recipe>
21:00.10khemwhich will effectively do equivalent of make check
21:00.24khembut run on a cross target
21:00.36khemthat will be so cool
21:00.36kergoththat'd be cool, could just have it run the ptests
21:00.45khemyeah exactly
21:01.03kergoththinks ptests are sadly neglected, last time he tried to run them at least half failed across numerous recipes :)
21:01.38khemI am running bitbake -ctestimage <image> which then runs on real board like dart board or rpi3
21:01.51khemits an extention of that
21:01.52kergothnice, i still need to play with that
21:02.27khemkergoth: all you need is
21:02.34khemTEST_TARGET ?= "simpleremote"                                                  
21:02.35khemTEST_SERVER_IP = "10.0.0.10"                                                  
21:02.37khemTEST_TARGET_IP ?= "192.168.7.2"                                                
21:02.51khemhere change the target and server ips to your taste
21:03.49khemthere is one kink though
21:04.20khemyou need to 1. build the image 2. flash it onto your board 3. run the -ctestimage target
21:04.36khemso its not as automated as qemu machines
21:04.59khem2.5 - boot the machine ofcourse
21:10.02kergothstill, that's not bad, considering
21:11.18khemabsolutely
21:22.17cbrakekhem: pretty neat -- I can see where that would work well for kernel dev
21:22.46khemcbrake: cool
21:23.01khemcbrake: they can push from their git tree to remote as well
21:23.35cbrakekhem: can sources/recipe be used in a permanent setup?
21:24.12khemcbrake: dont think so but you can provide a setup script to do so
21:25.00cbrakekhem: one thing my customers do is like to have their app sources controlled with submodules in the build tree, and then have the recipe build directly from those sources
21:25.15cbrakekhem: but you could devtool them as part of the setup process
21:25.55cbrakekhem: (instead of fetching sources in a more tradition way)
21:26.13khemactually you for own packages you could ship original recipe with sources pointing to submod
21:26.24khemalthough with devtool you dont need that
21:26.36khemdevtool would be uniform workflow across all packages
21:26.38*** join/#oe NightMonkey (~NightMonk@pdpc/supporter/professional/nightmonkey)
21:27.13khemso you could let the private recipes point to private git repos upstream
21:27.22khemand then let devtool do the local source setup
21:27.33kheminstead
21:27.50khemyou can control the revisions via SRCREV in recipe
21:28.19khemso I see it will divorce from submodule workflow
21:30.10cbrakeKhem -- will need to revisit all this soon -- lots of neat ideas
21:30.48khemcbrake: yeah, it is a bit of mindset change game but I have found it  more productive
21:31.02khemI have sometimes 5-10 components under devtool
21:31.12cbrakekhem: neat
21:31.13khembut this all is under my control, I like it
21:31.25khemand process is same
21:31.50khemso its like checking out only the bits that I need to change and look into
21:32.11kheminstead of checking out a monolith ( taking a jibe at android )
21:32.27khemand then change 2 lines
21:33.04cbrakekhem: :-)  -- where did devtool come from?
21:33.05khemhere I only check out sources of whats really needed
21:33.22khemdevtool came from Yocto project
21:33.58kergothiirc it was paul eggleton's baby
21:34.08khemthats right
21:34.51khemalthough a lot learning from hob/sdk etc.
21:35.35khemits a good tool
21:37.09kergothit is
21:37.12kergothrecipetool is oto
21:37.13kergothtoo
21:37.29khemright
21:37.50khemwe also need a workspace setup tool now :)
21:38.29kergothugh, everybody and their brother has one. the intel one isn't bad, but i'm not sure how i feel about relying on a layer index instance. adds overhead, requiing that companies host their own indexes
21:39.29khemthats in right direction though
21:39.45khemlooking at go ecosystem or nodejs or java
21:40.01khemthats one way to have rich ecosystem
21:40.34kergothi like go's use of arbitrary repositories and a tool to fetch them rather than having to have a master index to map layer name to url, though
21:40.41kergothshrugs
21:41.02khemthere is govendor
21:41.03cbrakeusing vscode has been interesting -- they do plugins and settings very well.  A lot of tools could learn from that.
21:41.27kergothkhem: yeah, and glide, etc
21:41.39khemcbrake: indeed, its 21-19 in favor of vscode vs atom for me
21:41.49kergothponders
21:42.06kergothi still like sublime. still a lot faster than either of those
21:42.15kergoththough vscode is faster than atom in my experience, still not quite up to par with st3
21:42.42cbrakeI've been applying some of what I learn in vscode back to nvim
21:43.00cbrakeautomatic formatting and linting, etc
21:43.04kergothi still haven't made the switch to neovim or vim 8, need to get switched
21:43.23kergoththe 'ale' plugin for async linting is pretty fantastic, does it all the time, not just on save like syntastic did
21:43.33kergoth(for vim/neovim)
21:43.46cbrakeI'll have to check that out
21:44.03kergothcbrake: https://github.com/w0rp/ale
21:44.29kergothreally fast and responsive. i'd imagine it uses a bit more cpu than one that only does it on save, but i don't care, it's great
21:44.30kergothheh
21:45.01cbrakekergoth: yeah, I can believe I've ignored formatters and linters until recently.  They actually teach you quite a bit about a language, and really clean up code.
21:45.37kergothspeeds up the test cycle, since you see basic issues immediately
21:46.44kergothi hate it when a recipe doesn't work with externalsrc. get spoiled by devtool working
21:46.55cbrakewith vscode, I'm learning that plugins should be supported directly in any tool and not an afterthought.  And the tool should be good at helping users determine what plugins they need, and provide reasonable defaults.
21:50.55kergothmore and more as i get older, i want tools with safe defaults in general. it shouldn't take 12 plugins just to make it usable (*cough*zsh*cough*)
21:50.59kergoths/safe/sane/
21:53.59cbrakenod!
22:09.44*** join/#oe ant_home (~ant__@host251-139-dynamic.104-80-r.retail.telecomitalia.it)
22:17.56Crofton|workany clues?
22:17.57Crofton|workhttp://paste.debian.net/974184/
22:29.49*** join/#oe georgem_home (uid210681@gateway/web/irccloud.com/x-vptrezvzdsvzsppl)
22:49.06khemI spent good time configuring atom I agree
22:54.36ant_homekhem, I'll do some builds tomorrow with master. What is worth to check first? armv4 or armv5?
22:54.51khemarmv5?
22:54.59khemout of those two armv5
22:55.10ant_homeok
22:59.35khemCrofton|work: check_SYS_getrandom.patch .. which layer is slapping it in ?
22:59.52ant_homehm, seems there are no changes for gcc 7.1 after 'disable thumb' which I did already have
23:00.20khemant_home: its possible that these devices are not widely tested
23:00.25khemso something crept in
23:00.59khemmost of times its some code misunderstanding between kernel source and gcc
23:01.01ant_homeok, to nail down the issue I stay with the same kenel 4.12-rc (or old 4.4)
23:01.15khemis 4.12rc working ?
23:01.28khemif nothing is working them I would say debug the latest
23:01.35ant_homeissues with display but ok on console
23:01.40khemyou will find some support for that on mailing lists
23:02.30ant_homesam ekernel is booting compiled with OE gcc6
23:02.47ant_homeso it should be just gcc
23:02.51khemunderstood, there might be some optimization
23:03.11khemcan you try using -Os eg.
23:03.19khemto compile it
23:04.35ant_homeit was the xz decompressor failing in my case
23:04.57ant_homeearly
23:05.01khemxz in kernel ?
23:05.05ant_homeyes
23:05.19khemdid you enable all early printks ?
23:05.33khemsometimes such issues are also related to kernel size
23:05.56khemwhere bootloader might have reserved x bytes but now code is x+10 and it booms
23:06.03ant_homeyes, you told me. But the size did not increase
23:06.17ant_homein our case kernel is kexec'. no issue
23:06.22khemI would suggest to play with optimizations
23:06.40khemwe can narrow it down that way
23:06.50khemunless you have a better way of stepping through the flow
23:06.56ant_homeok, iirc it is already optimized for size
23:07.00khemand see where it digresses with 6.x built kernel
23:07.09khemthen use -O2
23:07.14khemdo something different
23:07.21ant_homeunderstood
23:07.27ant_homethanks
23:07.41khemother option is to disable xz and use gz
23:07.42ant_homesee, in emergency I can branch a gdb
23:07.47khemor lzma
23:07.50khemand see if that works
23:08.08khemit needs to be narrowed down further
23:08.52khemRP: I think the AB testimage failures with my hardening patches are bogus
23:10.03*** join/#oe sgw_ (sgw_@nat/intel/x-hywdcwlavzvnnhua)
23:10.05khemkernel logs in passing case are emitted to kern.log and in failing case are emitted into user.log
23:10.13khemand they are line by line identical
23:10.34khemthe error that its flagging exists in logs of passing case as well.
23:10.46khemits just that its in a different log file
23:11.07khemnow why its collecting logs differently remains to be seen
23:11.18khembut as per runs I dont see any difference
23:48.00*** join/#oe adam-trhon (~dadam@ip-62-245-109-85.net.upcbroadband.cz)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.