**** BEGIN LOGGING AT Mon Jul 31 03:00:02 2017 Jul 31 09:39:16 anyone having issues with bitbake HEAD, running on ArchLinux this morning all I'm getting is Jul 31 09:39:24 NOTE: Starting bitbake server... Jul 31 09:39:24 ERROR: Unable to start bitbake server Jul 31 09:39:24 ERROR: Last 10 lines of server log /mnt/scratch/scratch/manifest-test/abaco-build/build-test/bitbake-cookerdaemon.log: Jul 31 09:39:41 where the cookerdaemon.log is empty Jul 31 10:05:40 RP^ Jul 31 10:06:18 jackmitchell: that is happening repeatedly? Jul 31 10:06:40 jackmitchell: is there any bitbake process running? Jul 31 10:07:04 jackmitchell: I've seen this in autobuilder logs but not been able to reproduce standalone Jul 31 10:07:23 RP: yes, there is a single bitbake process left running Jul 31 10:07:31 RP: I have to kill it to get the error to repeat Jul 31 10:08:19 RP: otherwise if I try running again bitbake just hands indefinitely Jul 31 10:08:26 s/hands/hangs Jul 31 10:08:36 jackmitchell: so you can't get anything to work at all? :/ Jul 31 10:08:53 RP: nope, works ok my Ubuntu 14 VM though Jul 31 10:09:11 jackmitchell: could you try applying http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&id=b3bc511a3f5d961807ce6747ff4958e775567397 and see if the daemon log has anything in after that? Jul 31 10:09:22 sure Jul 31 10:09:32 jackmitchell: we need to understand what the server is doing and/or where its getting to Jul 31 10:12:48 RP: Starting bitbake server pid 954, then dead Jul 31 10:13:12 RP: still one process left running that I have to kill to re-produce Jul 31 10:13:51 jackmitchell: right, I'm not expecting it to change behaviour, just print more logging. Could you add some extra prints into _startServer (see that patch) and see how far its getting? Jul 31 10:14:08 jackmitchell: separate question of where the traceback is going remains :/ Jul 31 10:16:55 RP: > Jul 31 10:16:55 Starting bitbake server pid 972 Jul 31 10:16:55 self.configuration.setServerRegIdleCallback(server.register_idle_function) Jul 31 10:16:55 for param in ('prefile', 'postfile'): Jul 31 10:16:55 self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset, self.readypipein) Jul 31 10:22:23 jackmitchell: ok, on the failing line, can you add a try: except Exception as e: print(str(e)) raise sequence please? Jul 31 10:22:48 jackmitchell: I've added something which makes mine break locally there and I also don't see the traceback. Not sure why Jul 31 10:22:50 RP: i've kept going and I'm currently down in Jul 31 10:23:09 RP: self.databuilder.parseBaseConfiguration() Jul 31 10:23:47 jackmitchell: if you wrap it in that try/except, we hopefully can see the actual error Jul 31 10:24:04 RP: error was blank Jul 31 10:24:20 RP: just printed an empty new line Jul 31 10:26:11 jackmitchell: hmm, not good :( Jul 31 10:26:19 RP: eventually down to bb.event.fire(bb.event.ConfigParsed(), self.data) Jul 31 10:26:29 RP: does that head down to ConfigParsed? Jul 31 10:27:08 RP: around line 300, before the while loop Jul 31 10:27:59 jackmitchell: that could make sense, sounds like its trying to send data back to the UI/event handlers and perhaps failing somehow Jul 31 10:28:03 or hanging there Jul 31 10:31:39 jackmitchell: I'd suggest try adding http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip5&id=c8f7d94d2499dadd584a9aefbb3fecc17f6cb443 - locally this started printing sensible tracebacks in my logs Jul 31 10:32:13 it also removed the hang on exception issue I was seeing with my local bad line of code I added for testing Jul 31 10:34:50 File "/mnt/scratch/scratch/manifest-test/jack-build/openembedded/bitbake.git/lib/bb/server/process.py", line 406, in _startServer Jul 31 10:34:51 self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset, self.readypipein) Jul 31 10:34:51 File "/mnt/scratch/scratch/manifest-test/jack-build/openembedded/bitbake.git/lib/bb/cooker.py", line 199, in __init__ Jul 31 10:34:51 self.initConfigurationData() Jul 31 10:34:51 File "/mnt/scratch/scratch/manifest-test/jack-build/openembedded/bitbake.git/lib/bb/cooker.py", line 356, in initConfigurationData Jul 31 10:34:51 self.databuilder.parseBaseConfiguration() Jul 31 10:34:51 File "/mnt/scratch/scratch/manifest-test/jack-build/openembedded/bitbake.git/lib/bb/cookerdata.py", line 329, in parseBaseConfiguration Jul 31 10:34:52 raise bb.BBHandledException Jul 31 10:34:52 bb.BBHandledException Jul 31 10:35:15 pretty much what we'd already printed down to Jul 31 10:35:50 jackmitchell: except we now know its BBHandledException Jul 31 10:36:15 jackmitchell: that means it printed something into the server's standard logging channels before it died Jul 31 10:36:29 RP: UnboundLocalError: local variable 'e' referenced before assignment Jul 31 10:36:46 cookerdate.py around 443 Jul 31 10:37:04 except (SyntaxError, bb.BBHandledException): Jul 31 10:37:18 it has an except but doesn't log an error Jul 31 10:37:31 ah, wait I see Jul 31 10:37:44 there is no e, so I added the error :D Jul 31 10:39:39 RP: hmm, ok; I've got another traceback here on HOSTTOOLS Jul 31 10:40:18 RP: https://pastebin.com/iDDjKdc4 Jul 31 10:42:28 jackmitchell: that is helpful, I can try and reproduce with a bb.fatal() Jul 31 10:44:41 RP: yes, ok; so I'm missing some HOSTTOOLS, once they were installed I'm getting a locale issue; I'll fix that and see Jul 31 10:47:15 RP: with the locale issue fixed we're parsing Jul 31 10:47:41 RP: with the locale fix, but with the missing utilities removed again, I get the logging Jul 31 10:47:50 NOTE: Reconnecting to bitbake server... Jul 31 10:47:50 NOTE: Retrying server connection... Jul 31 10:47:50 NOTE: Reconnecting to bitbake server... Jul 31 10:47:50 NOTE: Retrying server connection... Jul 31 10:47:50 NOTE: Reconnecting to bitbake server... Jul 31 10:47:51 NOTE: Retrying server connection... Jul 31 10:47:51 NOTE: Reconnecting to bitbake server... Jul 31 10:47:52 NOTE: Retrying server connection... Jul 31 10:47:52 NOTE: Reconnecting to bitbake server... Jul 31 10:47:53 NOTE: Retrying server connection... Jul 31 10:47:53 NOTE: Reconnecting to bitbake server... Jul 31 10:47:54 NOTE: Retrying server connection... Jul 31 10:48:23 so it could be a mix of the two together Jul 31 10:48:36 but I don't get the HOSTTOOLS message regardless Jul 31 10:49:31 jackmitchell: try this http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip5&id=e33cb23aeb69e6164b8cd9cefbd41addd1267d1f Jul 31 10:49:42 jackmitchell: this should print the UI messages as well as the traceback Jul 31 10:50:40 RP: yep, that brings the correct message through Jul 31 10:50:58 jackmitchell: https://pastebin.com/76j4jJHZ Jul 31 10:50:59 RP: the bitbake server ones were a red herring, I had to remove the .lock and .sock to get bitbake working again at all Jul 31 10:51:22 RP: yep pretty much exactly that Jul 31 10:51:42 jackmitchell: I suspect you're in a bit of a mess with the debugging. With the patch and things cleaned up I can get a sensible message from bitbake as in the pastebin Jul 31 10:52:28 RP: ok, sounds good; I can revert the changes and ping me if you want me to give a finished patch a test Jul 31 10:52:41 jackmitchell: I think the above is the finished one :) Jul 31 10:53:30 really should perhaps suppress the traceback if its a HandledException but its better than where we started with no messages Jul 31 10:53:47 jackmitchell: I appreciate the help in figuring this out Jul 31 10:54:59 RP: no problem, traceback and message is visable with everything back to HEAD and only above patch applied, thanks Jul 31 11:02:41 jackmitchell: I'd been aware there was something wrong, I'm pleased to have found this! Jul 31 16:33:33 RP, hi, whuile you're working or rm_work, is there still a reason to unconditionally exclude kernel from it? Jul 31 16:34:47 ant_work: yes, the kernel is needed by modules and so on Jul 31 16:34:54 it is indeed useful if you are fiddling with kernel otherwise it is just a waste of space Jul 31 16:34:55 ant_work: no safe way to handle it Jul 31 16:35:28 you mean external modules? Jul 31 16:35:45 ant_work: yes Jul 31 16:38:12 ok, I suppose these were blocked by the previous (last year?) defaults of rm_work Jul 31 16:38:53 really, I think the kernel is not yet optimally handled Jul 31 16:39:12 ant_work: its not possible to please everyone, that is the fundamental issue Jul 31 16:39:31 there is a basic problem: you cannot mix/build two versions Jul 31 16:39:44 ant_work: today we have one copy of the sources which is used for in and out of tree builds. There is little sstate overhead of it. Jul 31 16:40:14 ant_work: we can dial in other compromises - multiple copies of the source, high sstate overhead but cleaner tmpdir Jul 31 16:40:33 ant_work: I believe it should be relatively possible to have two versions Jul 31 16:40:33 I have seen one interesting patchset around, [OE-core] [PATCH v4] kernel: Add support for multiple kernel packages Jul 31 16:40:54 ant_work: the pieces of that which did merge have already caused unresolved issues for upgrades :( Jul 31 16:41:03 hehe Jul 31 16:41:19 ant_work: trouble is the original submitter doesn't care, they got their patch in Jul 31 16:41:40 heh, typical Jul 31 16:41:59 well, I have been blacklisted because even building linux-yocto and linux-yocto-tiny was not possible Jul 31 16:42:19 (my recipe included -tiny) Jul 31 16:42:46 JaMa autobuilder revealed the issue Jul 31 16:43:57 the conflict is not only about providers Jul 31 16:46:17 let me solve the gcc7 issue (kernel miscompiled) then I'll retry Jul 31 16:46:38 I'll let you know, keep on the grat work! Jul 31 16:47:57 RP, before I forget, some news about do_menuconfig Jul 31 16:48:17 non yocto kernels fail the task Jul 31 16:48:30 on Ubuntu 16.04 you need sudo apt-get install lib32ncurses5-dev Jul 31 16:49:04 we talked about the peculiarity of ncurses-native not long ago Jul 31 16:50:50 shouldn't the -dev headers be staged nonetheless? Jul 31 16:57:06 ant_work: I don't remember the details offhand, sorry Jul 31 16:57:13 ant_work: off to get food right now... Jul 31 16:57:25 I'll file a bug for Bruce Jul 31 16:57:30 cheers **** ENDING LOGGING AT Tue Aug 01 03:00:00 2017