#
…

2023-07-21

00:10mikelee has quit [Ping timeout: 480 seconds]
00:21mikelee has joined #asahi-alt
00:29mikelee has quit [Ping timeout: 480 seconds]
00:31mikelee has joined #asahi-alt
00:39mikelee has quit [Ping timeout: 480 seconds]
00:59mikelee has joined #asahi-alt
01:10mikelee has quit [Ping timeout: 480 seconds]
01:16mikelee has joined #asahi-alt
01:28mikelee has quit [Ping timeout: 480 seconds]
01:31mikelee has joined #asahi-alt
01:32chadmed_ has joined #asahi-alt
01:33chadmed_mrhh: we need to get it working with the kernel build eclass as the eventual goal is to have the overlay in a state suitable for upstreaming, hence the flurry of QA commits recently
01:33chadmed_(either upstreaming or listing on o.g.o at the very least)
01:59mrhh has joined #asahi-alt
02:07mrhh has quit [Ping timeout: 480 seconds]
02:16mikelee has quit [Ping timeout: 480 seconds]
02:20mikelee has joined #asahi-alt
02:28nela has joined #asahi-alt
02:33mikelee has quit [Ping timeout: 480 seconds]
02:47mikelee has joined #asahi-alt
03:54dylanchapell has quit [Ping timeout: 480 seconds]
04:00chadmed_ has quit [Remote host closed the connection]
04:11mikelee has quit [Ping timeout: 480 seconds]
04:13mikelee has joined #asahi-alt
04:29mikelee has quit [Remote host closed the connection]
04:30mikelee has joined #asahi-alt
04:33mikelee_ has joined #asahi-alt
04:33mikelee has quit [Read error: Connection reset by peer]
04:48mikelee_ has quit [Remote host closed the connection]
04:48mikelee has joined #asahi-alt
05:50mikelee has quit [Remote host closed the connection]
05:50mikelee has joined #asahi-alt
06:03mikelee has quit [Remote host closed the connection]
06:03mikelee has joined #asahi-alt
06:15tobhe_ has joined #asahi-alt
06:20tobhe has quit [Ping timeout: 480 seconds]
07:39cylm has quit [Ping timeout: 480 seconds]
07:40mpsto continue about problem building kernel 6.4-1 with GPU enabled and using rust on alpine: managed to build rust 1.68.2 (required by kernel build) last night
07:41mpstrying to build kernel with it got this https://tpaste.us/QRZ4 error
07:42mpsas I know very little about cargo/rust I have no idea how to tell them to use external libs
07:43mpstried to search net but didn't found anything which would help me
07:44mpsand tried to build with llvm and gcc, same result
07:45mpsmaybe to ask at #kernelnewbies
07:53jannauthat is a rust issue. Only relation to the kernel is that it tries build rust user space code in the kernel used as build tool (scripts/generate_rust_target.rs)
07:54jannauthis looks like your rust 1.68.2 is broken
07:54jannaubtw, there's now asahi-6.4-2, no rust related changes
07:57j`eyoh, still broken if you dont select CONFIG_ARM64_ACTLR_STATE
07:57jannaucan't you use the old APK build file used for rust 1.68.2?
08:01mpsjannau: I can't find old original rust pkg 1.68.2, had to build it in chroot
08:01mpsyes, just saw on #asahi-dev that there is 6.4-2
08:26mikelee has quit [Remote host closed the connection]
08:26mikelee has joined #asahi-alt
08:55Ry_Darcy has joined #asahi-alt
08:57Ry_Darcy@mps - try "rustup override set 1.68.2" in your Rust setup. Works for me.
09:08Ry_DarcyCompiling asahi-6.4-3 (Mini M1 - Debian) using Rust 1.68.2, U-Boot compile is failing with - see https://paste.debian.net/1286501/
09:11mpsRy_Darcy: thanks for info, but I don't use rustup. I use alpine rust packages to have regular alpine build method
09:12chadmed has quit [Remote host closed the connection]
09:13Ry_DarcyThis (compile fail U-Boot) did not happen before.
09:14mpsRy_Darcy: disable kwboot build
09:16mpsthis is patch I made for alpine https://tpaste.us/KEZg
09:18mpshmm, I've got same problem (cargo can't find libs) even with rust 1.70.0
09:20Ry_Darcy@mps I am running Debian, where do I disable kwboot build?
09:32mpsRy_Darcy: in u-boot source, look patch I posted
10:09merry has quit [Quit: ZNC - https://znc.in]
10:38yuka has quit [Remote host closed the connection]
10:38yuka has joined #asahi-alt
10:41nsklaus has joined #asahi-alt
10:52mikelee has quit [Ping timeout: 480 seconds]
11:09chadmed has joined #asahi-alt
11:20mikelee has joined #asahi-alt
11:28mikelee has quit [Ping timeout: 480 seconds]
11:30mikelee has joined #asahi-alt
11:40nela has quit [Ping timeout: 480 seconds]
11:58nela has joined #asahi-alt
12:00mikelee has quit [Ping timeout: 480 seconds]
12:10mikelee has joined #asahi-alt
12:18mikelee has quit [Ping timeout: 480 seconds]
12:27mikelee has joined #asahi-alt
12:34hightower3 has quit [Ping timeout: 480 seconds]
12:44mikelee has quit [Ping timeout: 480 seconds]
12:53mikelee has joined #asahi-alt
13:01hightower2 has joined #asahi-alt
13:10mpsfound what is cause of building kernel with rust on musl system (alpine in my case) https://bugs.archlinux.org/task/79002
13:13mpsrust have to be fixed
13:18mikelee has quit [Ping timeout: 480 seconds]
13:22nsklaus has quit [Ping timeout: 480 seconds]
13:27mikelee has joined #asahi-alt
13:35Ry_Darcy has quit [Remote host closed the connection]
13:44Ry_Darcy has joined #asahi-alt
13:45cylm has joined #asahi-alt
13:46Ry_Darcy@mps musl is not installed on my system (Debian). Also, this line - HOSTCFLAGS_ubsha1.o := -pedantic does not exist in my u-boot/tools/Makefile.
13:51mkurz has joined #asahi-alt
13:54mpsRy_Darcy: interesting, this patch is for u-boot mainline, not sure if the u-boot-asahi is same
13:58j`eyRy_Darcy: are you actually building a different uboot? maybe youre environment changed somehow
14:03possiblemeatball has joined #asahi-alt
14:04Ry_Darcy@mps not that I am aware of. I built asahi-6.3-13 last week using Rust 1.66 with no problems.
14:06Ry_Darcy@mps I am running a vanilla Asahi environment. I have not changed/tweaked anything and using Glanzmann's build script.
14:07j`eyyou must change his script to change the version numbers, right?
14:08j`eydid you change the version of u-boot?
14:08j`eysince last time you built
14:09mpsRy_Darcy: problem with rust and kernel is related to musl 1.2.4 version, I guess with glibc all this works fine
14:09mikelee has quit [Ping timeout: 480 seconds]
14:10Ry_Darcy@mps I saw that. But as stated before, I do not have musl on my system.
14:10possiblemeatball has quit [Quit: Quit]
14:10mpsRy_Darcy: I'm building kernels with rust from around new year without big problems, but now when the musl and rust upgraded it doesn't work
14:11mpsRy_Darcy: I know that debian is not musl based though it have musl package (or it had it when I used debian)
14:12Ry_Darcy@No, in asahi-6.3-13 and today's asahi-6.4-3 kernel (which failed in the u-boot step) the same u-boot version was used.
14:12Ry_Darcy@mps sorry.
14:14Ry_Darcy@mps I have no musl packages instelled on my system.
14:14mpsRy_Darcy: I know
14:14possiblemeatball has joined #asahi-alt
14:14j`eyif it's the same u-boot, then maybe something in the host/build system has changed
14:14Ry_Darcyinstalled.
14:14mpsand it doesn't make sense on debian except for some special builds
14:15mpsu-boot-asahi is not changed for long, approved one I mean
14:16mpsI can boot 6.4-1 kernel without GPU enababled with old u-boot-asahi
14:20mikelee has joined #asahi-alt
14:21jjanzic has quit [Ping timeout: 480 seconds]
14:21nsklaus has joined #asahi-alt
14:23jjanzic has joined #asahi-alt
14:23j`eyI suspect something dodgy with OpenSSL versions
14:26mpsj`ey: could be
14:27Ry_Darcy@mps this is the section in Glanzmann's buiold script that handles u-boot - https://paste.debian.net/1286534/ - nothing special - to me, at least.
14:27mpsbtw, 6.4 works fine in X even without GPU
14:27Ry_Darcybuiold = build.
14:28mikelee has quit [Ping timeout: 480 seconds]
14:29Ry_Darcy@j'ey I have not changed anything in the build environment except pointing to the newest kernel. Or indeed, installed anything new in the tool chain.
14:32j`eysomething must have changed :) the kernel version is entirely separate to u-boot
14:33j`eyso you haven't do a pacman -Syu or whatever, since then?
14:34Ry_DarcyI am running Debian. I have done no apt upgrades in the past week.
14:36Ry_DarcyWhat I could do ist completely wipe my build environment and run Glanzmann's script from the start.. but I am a wee bit sceptical.
14:36mikelee has joined #asahi-alt
14:38j`eywhat happens if you run "pkg-config --libs libssl libcrypto"
14:38Ry_DarcyI am running Debian...
14:39j`eypkg-config is on debian too :P
14:40Ry_Darcy@j'ey you are right.
14:41Ry_Darcyroot@debian:/Transit# pkg-config --libs libssl libcrypto -L/usr/local/lib -lssl -lcrypto
14:42Ry_Darcy@j'ey or better, output here - -L/usr/local/lib -lssl -lcrypto
14:42j`eywhat about: $ openssl version
14:44mikelee has quit [Ping timeout: 480 seconds]
14:46Ry_Darcy@j'ey OpenSSL 1.1.1o 3 May 2022 (Library: OpenSSL 1.1.1n 15 Mar 2022)
14:46j`eypretty new then
14:52mikelee has joined #asahi-alt
15:07sam_by debian standards :p
15:09Ry_Darcy@sam Debian Bookworm to be precise.
15:12mikelee has quit [Ping timeout: 480 seconds]
15:18Ry_DarcySome news.. I wiped my build environment and started from scratch with Glanzmann's script. This compiles everything - kernel, m1n1, u-boot and concatenates etc. Now, everthing compiles cleanly. So, it must indeed have been something (I do not know what)
15:18Ry_Darcyin my old build environment.
15:19Ry_Darcy has quit [Remote host closed the connection]
15:19Cyrinux94 has quit []
15:20Cyrinux94 has joined #asahi-alt
15:21mikelee has joined #asahi-alt
15:30mikelee has quit [Ping timeout: 480 seconds]
15:33mikelee has joined #asahi-alt
15:42mikelee has quit [Ping timeout: 480 seconds]
15:43iaguis has joined #asahi-alt
15:48mikelee has joined #asahi-alt
15:59mikelee has quit [Ping timeout: 480 seconds]
16:03mikelee has joined #asahi-alt
16:06hightower2 has quit [Ping timeout: 480 seconds]
16:11mikelee has quit [Ping timeout: 480 seconds]
16:18mikelee has joined #asahi-alt
16:28mikelee has quit [Ping timeout: 480 seconds]
16:33possiblemeatball has quit [Quit: Quit]
16:53mikelee has joined #asahi-alt
17:11mikelee has quit [Ping timeout: 480 seconds]
17:20mikelee has joined #asahi-alt
17:29mikelee has quit [Ping timeout: 480 seconds]
17:32iaguis has quit [Ping timeout: 480 seconds]
17:53mikelee has joined #asahi-alt
18:10mikelee has quit [Ping timeout: 480 seconds]
18:11mikelee has joined #asahi-alt
18:16jannaucy8aer: probably running update-m1n1
18:18cy8aerOk, that looks like a script in the standard asahi dist. I am on Debian. Just a moment, I need to check if I can get it.
18:18jannauI would have expected that it exists
18:19cy8aerJust another moment...
18:19jannauit'll probably not work out of the box
18:20cy8aeryep, completely wrong paths.
18:21jannauI really expect that there is something in place in debian to handle updating the m1n1/dtbs/u-boot bundle
18:22cy8aerI need to check up what it is really doing. No problem. Actually there is nothing with the asahi-scripts and needed to prepare them for a firmware update as well. I will analyse it and I will send a message when it works.
18:23cy8aerI then probably will package the scripts as well.
18:29cy8aerYes that is the script I used for building the debs. There is something missing at the uboot part somehow.
18:29cy8aerBut m1n1 base 1.3.0 is ok or better still 1.2.9?
18:30jannaum1n1 1.3.0 is ok
18:31cy8aerMaybe there was some stuff hanging when creating the m1n1/uboot stuff. I will clean up and try again.
18:41cy8aeryes that was it: I hat built m1n1 1.3.0 with the 6.4.0-1 kernel. And then it does not work. Built against 6.4.0-4 with the 6.4.0-3 which is now running. Thanks jannau .
18:41mikelee has quit [Ping timeout: 480 seconds]
18:42cy8aers/hat/had/g
18:42rhoanrepper has joined #asahi-alt
18:43cy8aerAnd built against 6.4.0-3 of course.
18:43hightower2 has joined #asahi-alt
18:45mpsI've got a lot of these 'expr: syntax error: unexpected argument ‘1.69.0’ and '/bin/sh: rustc: not found' building 6.4 kernels
18:46mpswhen building vanilla mainline kernels I don't see them
18:46tpw_rulesi have those too but they don't seem to matter
18:47mpsright, kernel builds and works
18:47cy8aerThat looks like a rust version somehow. The kernel itself expects 1.68.2 (or newer but then it warns)
18:47mpsjust wanted to note this here
18:47mpsthis must be asahi specific
18:49mpswould be nice if these are not seen when pushing kernel to distro builders
18:50jannauare you building the vanilla kernel with rust? I don't see that here, maybe further bash-ism in some script or makefile shell commands?
18:51mpsno, if I build vanilla kernels rust is not installed on builder
18:51mpsbut even if it is installed I don't see these messages
18:52mpsand building asahi 6.4-x I see them even when rust is not installed
18:52mikelee has joined #asahi-alt
18:53mpsand I have bash installed when building kernels
18:53jannaubut is bash /bin/sh?
18:53jannaucould bethe bash-ism in get_canaonical_version
18:54mpshm, let me check build vanilla without bash
18:58mpsI've got same with bash deinstalled when building asahi 6.4-3 kernel
18:59mpsbut I learned now that I don't need bash for kernels build on alpine
18:59jannau???, the problem seems to be that /bin/sh is not bash
19:00mpsbut why it run rustc when rust is not enabled and not installed
19:02mpsand I've got same even when /bin/sh is /bin/bash
19:03mikelee has quit [Ping timeout: 480 seconds]
19:08jannauwhat happens if you execute bindgen or rustc from the shell?
19:09jannauare those binaries the ones one would expect?
19:10jannauor some wrapper scripts?
19:11mpsI've got these messages when I don't have rust and/or rust-bindgen installed
19:12mpsso, asahi kernels 6.4-x expect rust installed
19:13mpss/afaik/iiuc/
19:13mps(must be that I'm already tired)
19:41rhoanrepper has quit [Remote host closed the connection]
19:41rhoanrepper has joined #asahi-alt
19:44mikelee has joined #asahi-alt
19:55mikelee has quit [Ping timeout: 480 seconds]
20:21mikelee has joined #asahi-alt
20:26rhoanrep_ has joined #asahi-alt
20:26rhoanrepper has quit [Read error: Connection reset by peer]
20:35rhoanrep_ has quit [Remote host closed the connection]
20:36mikelee has quit [Ping timeout: 480 seconds]
20:40rhoanrepper has joined #asahi-alt
20:44mikelee has joined #asahi-alt
20:53mikelee has quit [Ping timeout: 480 seconds]
21:04mikelee has joined #asahi-alt
21:19mikelee has quit [Ping timeout: 480 seconds]
21:28mikelee has joined #asahi-alt
21:36mikelee has quit [Ping timeout: 480 seconds]
21:44mikelee has joined #asahi-alt
21:52mikelee has quit [Ping timeout: 480 seconds]
22:09mikelee has joined #asahi-alt
22:12rhoanrepper has quit [Read error: No route to host]
22:12rhoanrepper has joined #asahi-alt
22:18mikelee has quit [Ping timeout: 480 seconds]
22:20rhoanrepper has quit [Remote host closed the connection]
22:21rhoanrepper has joined #asahi-alt
22:29mikelee has joined #asahi-alt
22:32mkurz has quit [Ping timeout: 480 seconds]
22:38mikelee has quit [Ping timeout: 480 seconds]
22:46possiblemeatball has joined #asahi-alt
22:47opticron has quit [Ping timeout: 480 seconds]
22:47rhoanrepper has quit [Remote host closed the connection]
22:55mikelee has joined #asahi-alt
22:55opticron has joined #asahi-alt
23:08mikelee has quit [Ping timeout: 480 seconds]
23:10possiblemeatball has quit [Quit: Quit]
23:19mikelee has joined #asahi-alt
23:21rhoanrepper has joined #asahi-alt
23:27mikelee has quit [Ping timeout: 480 seconds]
23:29rhoanrepper has quit [Ping timeout: 480 seconds]
23:49rhoanrepper has joined #asahi-alt
23:53mikelee has joined #asahi-alt
23:59nsklaus has quit [Ping timeout: 480 seconds]
…