Monday, 2022-08-22

*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has quit IRC (Quit: Leaving.)01:17
*** rber|res <rber|res!~rber|res@62-47-47-177.adsl.highway.telekom.at> has joined #oe01:32
*** rber__ <rber__!~rber|res@62-47-47-177.adsl.highway.telekom.at> has quit IRC (Ping timeout: 252 seconds)01:34
*** camus <camus!~Instantbi@183.192.136.115> has quit IRC (Ping timeout: 256 seconds)01:39
*** camus <camus!~Instantbi@58.246.136.202> has joined #oe01:51
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe02:24
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has quit IRC (Quit: Leaving.)04:38
*** rber|res <rber|res!~rber|res@62-47-47-177.adsl.highway.telekom.at> has quit IRC (Read error: Connection reset by peer)04:55
*** mvlad <mvlad!~mvlad@2a02:2f08:400a:ee00:24d7:51ff:fed6:906d> has joined #oe05:56
*** pbergin <pbergin!~pbergin@83.218.73.98> has joined #oe06:36
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #oe06:48
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #oe06:49
*** ptsneves <ptsneves!~Thunderbi@031011128120.dynamic-3-poz-k-0-2-0.vectranet.pl> has joined #oe07:22
pberginlooking in to adding rust in SDK after the refactoring and clean up RP has done in oe-core around packagegroup-rust-cross-canadian.bb. But building my rust app ands up in the error message "error: linker `x86_64-pokysdk-linux-gcc` not found". Anyone that can help with some tip how to add 'x86_64-pokysdk-linux-gcc' to SDK? I can't find it. My MACHINE is qemuarm64 with a standard Poky setup.07:26
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #oe07:56
RPpbergin: it should be using target-rust-ccld08:02
RPi.e. that is the wrong linker08:02
*** zeddii <zeddii!~zeddii@173.34.88.218> has quit IRC (Ping timeout: 248 seconds)08:03
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has quit IRC (Ping timeout: 248 seconds)08:04
pberginRP: the file .../sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/rustlib/x86_64-pokysdk-linux-gnu.json have a row "linker": "x86_64-pokysdk-linux-gcc"08:04
pberginRP: is ot wrong?08:05
*** zeddii <zeddii!~zeddii@173.34.88.218> has joined #oe08:10
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #oe08:17
RPpbergin: that is the json for the host, not the target08:35
pberginRP: yes. got it. so it seems that my rust project is somehow using the host linker for some package. then looking for 'x86_64-pokysdk-linux-gcc' which is not present. can that be a correct analyze?08:37
RPpbergin: yes08:38
pberginRP: Shouldn't the the "linker" statement for the host point to something that exists in the SDK?08:38
RPpbergin: arguably that json shouldn't really be there at all09:19
RPpbergin: it is basically saying "this is the config that built the rust compiler in the SDK"09:20
pberginok. but it is causing problem that needs to be solved in some way. I have been able to understand one step further. some crate have a build.rs script file that is first compiled with host tools then used for building for target with target tools. so there must be a sane config for host tools also.09:34
pberginRP: here is a way to reproduce: "cargo new hello;cd hello;echo "fn main(){}" > build.rs;cargo build -v"09:36
*** rber|res <rber|res!~rber|res@62-47-47-177.adsl.highway.telekom.at> has joined #oe09:52
RPpbergin: we currently don't include a host rust compiler in the SDK so that would be the issue09:59
RPpbergin: that could be nice as an SDK test in the test suite10:00
RPpbergin: https://git.yoctoproject.org/poky/tree/meta/lib/oeqa/sdk/cases/rust.py10:01
*** camus1 <camus1!~Instantbi@58.246.136.202> has joined #oe10:23
*** camus <camus!~Instantbi@58.246.136.202> has quit IRC (Ping timeout: 252 seconds)10:24
*** camus1 is now known as camus10:24
*** kanavin <kanavin!~Alexander@2a02:2454:29b:3b00:d35d:e3cf:58b5:748b> has quit IRC (Remote host closed the connection)10:25
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has quit IRC (Ping timeout: 255 seconds)10:27
pberginRP: do you think adding rust host compiler to SDK is a big job? I can try to help out but probably need some pointers.10:40
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #oe10:40
RPpbergin: actually, now I think about it we have the appropriate rust compiler, we just don't have a compiler itself. You could add nativesdk-gcc to the SDK and that might work10:49
RPpbergin: or we patch/symlink it to the host gcc10:51
*** kanavin <kanavin!~Alexander@2a02:2454:29b:3b00:d35d:e3cf:58b5:748b> has joined #oe10:53
pberginRP: how do I run the rust.py SDK testcase in my own setup?10:53
RPpbergin: bitbake <xxx> -c populate_sdk; bitbake -c testsdk11:07
RPwith an <xxx> in the second too11:08
pberginRP: adding nativesdk-gcc to my sdk takes me one step further. the x86_64-pokysdk-linux-gcc is present in sdk but my reproducer ends up in a segmentation fault in 'ld'11:18
RPpbergin: ah. That is a known problem :(11:22
RPrust sets LD_LIBRARY_PATH and this breaks sdk binaries11:22
RPwell, it breaks host libraries due to interference from the sdk ones11:25
pberginRP: known problem hard to fix or known problem soon to be solved?11:36
RPpbergin: so far it was a known issue running the linker for the target and we have a plan for that11:37
RPpbergin: https://bugzilla.yoctoproject.org/show_bug.cgi?id=1489211:37
pberginRP: thanks!11:40
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Ping timeout: 268 seconds)12:19
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #oe12:20
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has joined #oe12:34
*** kscherer <kscherer!~kscherer@dsl-173-206-148-172.tor.primus.ca> has joined #oe12:52
morthow is the go toolchain actually supposed to be used with bitbake?13:07
pberginRP: by adding "nativesdk-binutils nativesdk-gcc nativesdk-glibc-dev nativesdk-libgcc-dev" to TOOLCHAIN_HOST_TASK my simple rust example with host compilation of build.rs works. is that a suitable way forward to ass those to packagegroup-rust-cross-canadian? or do you want to wait for another fix in the issue you linked?13:36
pbergin*add13:36
RPpbergin: I guess that is reasonable but those are heavy dependencies to add :/13:44
RPpbergin: the issue I linked to is still relevant and will also still need fixing13:45
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe13:45
pberginRP: do you want me to send a patch or keep it as a local workaround? I will still send a patch with addition to test case.13:47
*** camus <camus!~Instantbi@58.246.136.202> has quit IRC (Quit: camus)13:50
*** camus <camus!~Instantbi@58.246.136.202> has joined #oe13:52
RPpbergin: please send so we can discuss, I'd like to see what others think. You won't be the only one to run into this13:58
RPvmeson: ^^^13:58
*** pbergin <pbergin!~pbergin@83.218.73.98> has quit IRC (Quit: Leaving)14:13
*** ztqdn[m] <ztqdn[m]!~ztqdnmatr@2001:470:69fc:105::2:63e9> has left #oe14:21
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/)15:18
mortI'm adding `nativesdk-go` to TOOLCHAIN_HOST_TASK, yet I don't end up with an aarch64-poky-linux-go in the SDK. I do end up with a binary called `go`, but that seems to be meant to design stuff for the host rather than for the target, it has GOROOT set to the x86_64-pokysdk-linux sysroot15:20
mortwhat package would you usually add to include aarch64-poky-linux-gcc in the sdk? Is there a similar package to include aarch64-poky-linux-go?15:20
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has quit IRC (Remote host closed the connection)15:26
vmesonI've read the history, shame that pbergin has left. I've logged the discussion in the associated bug.16:03
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Quit: Ex-Chat)16:28
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Ping timeout: 268 seconds)16:32
*** sgw <sgw!~swold_loc@user/sgw> has joined #oe17:58
*** creich <creich!~creich@p200300f6af21b51002745848c7cf3357.dip0.t-ipconnect.de> has joined #oe18:16
*** florian <florian!~florian@dynamic-078-048-109-133.78.48.pool.telefonica.de> has joined #oe18:27
*** sgw <sgw!~swold_loc@user/sgw> has quit IRC (Ping timeout: 255 seconds)18:31
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has quit IRC (Quit: Leaving.)18:33
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has quit IRC (Quit: Leaving)18:45
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe19:06
*** ptsneves <ptsneves!~Thunderbi@031011128120.dynamic-3-poz-k-0-2-0.vectranet.pl> has quit IRC (Ping timeout: 268 seconds)19:42
*** dv_ <dv_!~dv@62-178-50-190.cable.dynamic.surfer.at> has joined #oe20:04
*** dv_ <dv_!~dv@62-178-50-190.cable.dynamic.surfer.at> has left #oe20:04
*** dv_ <dv_!~dv@62-178-50-190.cable.dynamic.surfer.at> has joined #oe20:04
*** mvlad <mvlad!~mvlad@2a02:2f08:400a:ee00:24d7:51ff:fed6:906d> has quit IRC (Remote host closed the connection)20:46
*** sgw <sgw!~swold_loc@user/sgw> has joined #oe21:09
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe21:19
DvorkinDmitrywhy it is not recommended to pre-generate /etc/ssh/keys at the image build time ? I have slow CPU and my first ssh connection takes about 1 min21:25
*** florian <florian!~florian@dynamic-078-048-109-133.78.48.pool.telefonica.de> has quit IRC (Ping timeout: 248 seconds)22:08
*** tlwoerner <tlwoerner!~tlwoerner@pppoe-209-91-167-254.vianet.ca> has quit IRC (Read error: Connection reset by peer)22:15
*** kscherer <kscherer!~kscherer@dsl-173-206-148-172.tor.primus.ca> has quit IRC (Quit: Konversation terminated!)23:20
*** sgw <sgw!~swold_loc@user/sgw> has quit IRC (Ping timeout: 248 seconds)23:38
*** tlwoerner <tlwoerner!~tlwoerner@pppoe-209-91-167-254.vianet.ca> has joined #oe23:54
*** sgw <sgw!~swold_loc@user/sgw> has joined #oe23:54

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!