| *** 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 #oe | 01: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 #oe | 01:51 | |
| *** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe | 02: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 #oe | 05:56 | |
| *** pbergin <pbergin!~pbergin@83.218.73.98> has joined #oe | 06:36 | |
| *** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #oe | 06:48 | |
| *** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #oe | 06:49 | |
| *** ptsneves <ptsneves!~Thunderbi@031011128120.dynamic-3-poz-k-0-2-0.vectranet.pl> has joined #oe | 07:22 | |
| pbergin | looking 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 #oe | 07:56 | |
| RP | pbergin: it should be using target-rust-ccld | 08:02 |
| RP | i.e. that is the wrong linker | 08: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 | |
| pbergin | RP: 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 |
| pbergin | RP: is ot wrong? | 08:05 |
| *** zeddii <zeddii!~zeddii@173.34.88.218> has joined #oe | 08:10 | |
| *** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #oe | 08:17 | |
| RP | pbergin: that is the json for the host, not the target | 08:35 |
| pbergin | RP: 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 |
| RP | pbergin: yes | 08:38 |
| pbergin | RP: Shouldn't the the "linker" statement for the host point to something that exists in the SDK? | 08:38 |
| RP | pbergin: arguably that json shouldn't really be there at all | 09:19 |
| RP | pbergin: it is basically saying "this is the config that built the rust compiler in the SDK" | 09:20 |
| pbergin | ok. 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 |
| pbergin | RP: 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 #oe | 09:52 | |
| RP | pbergin: we currently don't include a host rust compiler in the SDK so that would be the issue | 09:59 |
| RP | pbergin: that could be nice as an SDK test in the test suite | 10:00 |
| RP | pbergin: https://git.yoctoproject.org/poky/tree/meta/lib/oeqa/sdk/cases/rust.py | 10:01 |
| *** camus1 <camus1!~Instantbi@58.246.136.202> has joined #oe | 10:23 | |
| *** camus <camus!~Instantbi@58.246.136.202> has quit IRC (Ping timeout: 252 seconds) | 10:24 | |
| *** camus1 is now known as camus | 10: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 | |
| pbergin | RP: 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 #oe | 10:40 | |
| RP | pbergin: 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 work | 10:49 |
| RP | pbergin: or we patch/symlink it to the host gcc | 10:51 |
| *** kanavin <kanavin!~Alexander@2a02:2454:29b:3b00:d35d:e3cf:58b5:748b> has joined #oe | 10:53 | |
| pbergin | RP: how do I run the rust.py SDK testcase in my own setup? | 10:53 |
| RP | pbergin: bitbake <xxx> -c populate_sdk; bitbake -c testsdk | 11:07 |
| RP | with an <xxx> in the second too | 11:08 |
| pbergin | RP: 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 |
| RP | pbergin: ah. That is a known problem :( | 11:22 |
| RP | rust sets LD_LIBRARY_PATH and this breaks sdk binaries | 11:22 |
| RP | well, it breaks host libraries due to interference from the sdk ones | 11:25 |
| pbergin | RP: known problem hard to fix or known problem soon to be solved? | 11:36 |
| RP | pbergin: so far it was a known issue running the linker for the target and we have a plan for that | 11:37 |
| RP | pbergin: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14892 | 11:37 |
| pbergin | RP: 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 #oe | 12:20 | |
| *** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has joined #oe | 12:34 | |
| *** kscherer <kscherer!~kscherer@dsl-173-206-148-172.tor.primus.ca> has joined #oe | 12:52 | |
| mort | how is the go toolchain actually supposed to be used with bitbake? | 13:07 |
| pbergin | RP: 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 | *add | 13:36 |
| RP | pbergin: I guess that is reasonable but those are heavy dependencies to add :/ | 13:44 |
| RP | pbergin: the issue I linked to is still relevant and will also still need fixing | 13:45 |
| *** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe | 13:45 | |
| pbergin | RP: 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 #oe | 13:52 | |
| RP | pbergin: please send so we can discuss, I'd like to see what others think. You won't be the only one to run into this | 13:58 |
| RP | vmeson: ^^^ | 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 #oe | 14:21 | |
| *** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) | 15:18 | |
| mort | I'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 sysroot | 15:20 |
| mort | what 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 | |
| vmeson | I'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 #oe | 17:58 | |
| *** creich <creich!~creich@p200300f6af21b51002745848c7cf3357.dip0.t-ipconnect.de> has joined #oe | 18:16 | |
| *** florian <florian!~florian@dynamic-078-048-109-133.78.48.pool.telefonica.de> has joined #oe | 18: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 #oe | 19: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 #oe | 20:04 | |
| *** dv_ <dv_!~dv@62-178-50-190.cable.dynamic.surfer.at> has left #oe | 20:04 | |
| *** dv_ <dv_!~dv@62-178-50-190.cable.dynamic.surfer.at> has joined #oe | 20: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 #oe | 21:09 | |
| *** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #oe | 21:19 | |
| DvorkinDmitry | why 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 min | 21: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 #oe | 23:54 | |
| *** sgw <sgw!~swold_loc@user/sgw> has joined #oe | 23:54 | |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!