dgilmore changed the topic of #fedora-riscv to: Fedora on RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V || Logs: https://libera.irclog.whitequark.org/fedora-riscv || Alt Arch discussions are welcome in #fedora-alt-arches
LiuYan is now known as TideBot-RISC-V
TideBot-RISC-V is now known as LiuYan
davidlt has quit [Ping timeout: 244 seconds]
LiuYan has left #fedora-riscv [WeeChat 3.5]
davidlt has joined #fedora-riscv
rwmjones|HOL is now known as rwmjones
<rwmjones> morning
<davidlt[m]> morning
jcajka has joined #fedora-riscv
<davidlt[m]> wow, LLVM 15.0.1 already happened
<davidlt[m]> So it's biweekly now for stable LLVM releases. That sounds new.
zsun has joined #fedora-riscv
guerby_ has quit [Remote host closed the connection]
guerby_ has joined #fedora-riscv
davidlt has quit [*.net *.split]
sharkcz has quit [*.net *.split]
skip77 has quit [*.net *.split]
droidrage has quit [*.net *.split]
aurel32 has quit [*.net *.split]
jim-wilson[m] has quit [*.net *.split]
Esmil[m] has quit [*.net *.split]
acharles has quit [*.net *.split]
sayan has quit [*.net *.split]
davidlt[m] has quit [*.net *.split]
javierm has quit [*.net *.split]
moto-timo has quit [*.net *.split]
sorear has quit [*.net *.split]
esv has quit [*.net *.split]
nirik has quit [*.net *.split]
oaken-so1rce has quit [*.net *.split]
warren_ has quit [*.net *.split]
unlord has quit [*.net *.split]
jcajka has quit [*.net *.split]
Eighth_Doctor has quit [*.net *.split]
guerby_ has quit [*.net *.split]
chuangzhu has quit [*.net *.split]
defolos has quit [*.net *.split]
xen0n has quit [*.net *.split]
jcm__ has quit [*.net *.split]
pbrobinson has quit [*.net *.split]
jbowen has quit [*.net *.split]
drewfustini has quit [*.net *.split]
dgilmore has quit [*.net *.split]
Esmil has quit [*.net *.split]
Ferix has quit [*.net *.split]
alexfanqi has quit [*.net *.split]
somlo has quit [*.net *.split]
rwmjones has quit [*.net *.split]
ChanServ has quit [*.net *.split]
oaken-so1rce has joined #fedora-riscv
jcajka has joined #fedora-riscv
guerby_ has joined #fedora-riscv
esv has joined #fedora-riscv
Esmil[m] has joined #fedora-riscv
acharles has joined #fedora-riscv
Eighth_Doctor has joined #fedora-riscv
defolos has joined #fedora-riscv
jim-wilson[m] has joined #fedora-riscv
davidlt[m] has joined #fedora-riscv
chuangzhu has joined #fedora-riscv
nirik has joined #fedora-riscv
unlord has joined #fedora-riscv
sorear has joined #fedora-riscv
alexfanqi has joined #fedora-riscv
moto-timo has joined #fedora-riscv
javierm has joined #fedora-riscv
xen0n has joined #fedora-riscv
drewfustini has joined #fedora-riscv
jbowen has joined #fedora-riscv
pbrobinson has joined #fedora-riscv
Esmil has joined #fedora-riscv
jcm__ has joined #fedora-riscv
dgilmore has joined #fedora-riscv
Ferix has joined #fedora-riscv
rwmjones has joined #fedora-riscv
somlo has joined #fedora-riscv
sayan has joined #fedora-riscv
ChanServ has joined #fedora-riscv
warren_ has joined #fedora-riscv
skip77 has joined #fedora-riscv
aurel32 has joined #fedora-riscv
droidrage has joined #fedora-riscv
sharkcz has joined #fedora-riscv
acharles has quit [Ping timeout: 250 seconds]
Eighth_Doctor has quit [Ping timeout: 268 seconds]
defolos has quit [Ping timeout: 248 seconds]
chuangzhu has quit [Ping timeout: 268 seconds]
davidlt has joined #fedora-riscv
Esmil[m] has quit [Ping timeout: 250 seconds]
jim-wilson[m] has quit [Ping timeout: 268 seconds]
davidlt[m] has quit [Ping timeout: 268 seconds]
acharles has joined #fedora-riscv
<rwmjones> https://lpc.events/event/16/contributions/1167/ " Confidential Computing for RISC-V-based Platforms "
Eighth_Doctor has joined #fedora-riscv
defolos has joined #fedora-riscv
<rwmjones> davidlt: this doesn't seem to have the f37 packages?
<rwmjones> or more specifically
<rwmjones> it has some but not things like ocaml.*fc37
<davidlt> we have only 2 packages in rawhide right now
<davidlt> most work happens in f37 (delta with rawhide is not huge right now)
<rwmjones> ah of course, thanks :-)
<davidlt> so afterwards should be possible to catch up rawhide somewhat easy and keep both going
<davidlt> rwmjones, note that ocaml doesn't have much packages done, because of labtk stuff IIRC
<rwmjones> yeah I'm looking at it now
<rwmjones> couldn't reproduce it using the f33 packages, so I was trying to update a few things
davidlt[m] has joined #fedora-riscv
<davidlt> rwmjones, yeah, you need pull it at least a new ocaml
<davidlt> maybe a new tcl and tk too
<davidlt> those are pretty much the same, just rebuilds
<davidlt> of course you can create mock config to use koji repo directly to assemble you chroot
<davidlt> (or just use dnf)
<rwmjones> yeah I got it, don't worry :-)
<davidlt> install: qemu-user-static-riscv
<davidlt> something like this: dnf -y --skip-broken --releasever=33 --setopt=install_weak_deps=0 --forcearch=riscv64 --nogpgcheck --installroot=$PWD/tmp_rootfs --repofrompath="fedora-riscv,http://fedora.riscv.rocks/repos-dist/rawhide/latest/riscv64/" --repo=fedora-riscv install @core
<davidlt> just adjust the options
Esmil[m] has joined #fedora-riscv
jim-wilson[m] has joined #fedora-riscv
chuangzhu has joined #fedora-riscv
<davidlt[m]> rwmjones djdelorie nirik I might ask to change kojid.conf once the current builds are finished.
zsun has quit [Ping timeout: 244 seconds]
<rwmjones> davidlt[m]: any clue about:
<rwmjones> /usr/bin/ld: .gnu.build.attributes has both ordered [`.gnu.build.attributes.lo.exit' in /lib64/lp64d/../lib64/lp64d/Scrt1.o] and unordered [`.gnu.build.attributes' in /lib64/lp64d/../lib64/lp64d/Scrt1.o] sections
<rwmjones> there's a very confusing bug report about it for RHEL 9 but I can find nothing about Fedora
<rwmjones> the ocaml-labltk configure script does:
<rwmjones> gcc -o tst -I/usr/include/tcl8.3 -I/usr/include/tk8.3 -I/usr/local/include tclversion.c -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -lm
<rwmjones> which produces the error above
* davidlt looking
<davidlt> rwmjones, this sounds like annobin issue (?)
<rwmjones> oh let me try updating that
<davidlt> rwmjones, also make sure you have the latest toolchain stuff
<rwmjones> yeah updating
<rwmjones> but it has uninstalled annobin
<davidlt> you might want to generate a clean chroot
<davidlt> that's the only way to be sure all is similar as in koji
<davidlt> there aren't gonna be new disk images until we get something close to f37
<rwmjones> hmm that's actually worse:
<rwmjones> runtest: gcc -o tst -I/usr/local/include/tcl8.2 -I/usr/local/include/tk8.2 -I/usr/local/include tclversion.c -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -lm
<rwmjones> tclversion.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int]
<rwmjones> 21 | main ()
<rwmjones> | ^~~~
<rwmjones> Assembler messages:
<rwmjones> Fatal error: -march=rv64imafdc_zicsr_zifencei: Invalid or unknown z ISA extension: 'zifencei'
<rwmjones> I'm going to try updating binutils next
<davidlt> yeah, because RISC-V ISA standard changed (and we used a new default)
<rwmjones> also
<rwmjones> error: /usr/lib/rpm/macros.d/macros.build-constraints: line 12: Macro %constrain_build has unterminated body
<davidlt> the old binutils have don't know that RV64GC means a different thing on a newer spec
<rwmjones> looks like an actual RPM bug
<davidlt> these are no longer case IIRC (if you build in Koji)
<davidlt> i.e. you are missing another package update (don't remember which one)
<rwmjones> anyway good news is I fixed the ocaml-labltk problem, will push a fix soon
<davidlt> rwmjones, was that riscv specific or anything terrible?
<rwmjones> unclear .. it was caused by missing -fPIC when linking the test script, and it seems like it should happen on any arch including x86-64, but I tested it and it only seems to happen on riscv64
<davidlt> hm..
<davidlt> redhat-rpm-macros are up-to-date IIRC
<davidlt> rwmjones, did you check that fPIC is set and passed like on x86_64?
zsun has joined #fedora-riscv
<davidlt> or are these custom flags used by the test? i.e. ignore what's in redhat-rpm-macros?
<rwmjones> the configure script is an incredible hack that tries to pull flags out of some ocaml libdir file
<rwmjones> it gives the same configure problem on x86-64, but for some reason the build still succeeds there
<rwmjones> the whole thing is junk
<rwmjones> I just did the min possible patch to add -fPIC
<davidlt> yeah, that's a small part of reason why I didn't want to look at it ;)
<davidlt> I assuming it
<davidlt> it's gonna be something stupid and small, but hunting would be annoying
<davidlt> actually with more folks working in Koji I might finally go back to sending more patches to upstream and dist-git
<davidlt> Miro is doing an epic work on Python 3.11. I just now focus on a few broken stuff that's marked as "riscv special"
<rwmjones> davidlt: shall I copy the fix to ocaml-labltk to f37 branch?
<davidlt> it's fine to have it in main/rawhide if it's the same as f33
<davidlt> yeah, I see that main/rawhide/f33 points to the same thing
<rwmjones> I haven't pushed the fix just yet
zsun has quit [Ping timeout: 244 seconds]
<rwmjones> davidlt: ok I pushed it:
<rwmjones> it fails to build for me locally still with:
<rwmjones> Empty %files file /home/rjones/d/fedora/ocaml-labltk/rawhide/labltk-8.06.12/debugsourcefiles.list
<rwmjones> but I think that may be a local thing only
<rwmjones> we seem to be using -g everywhere so I can't see why it would affect the build
<davidlt> rwmjones, I get impression that $cc somehow is not right
<davidlt> but that would require debugging ./configure script
zsun has joined #fedora-riscv
<davidlt> rwmjones, did you check $where/Makefile.config ?
<davidlt> it's ocamlfind printconf stdlib or ocamlc -where
* davidlt goes to launch podman and install ocaml
<davidlt> oh, my laptop wants retirement
<davidlt> rwmjones, yes!
<davidlt> rwmjones, /usr/lib64/ocaml/Makefile.config sets those Make variables
<davidlt> That means our ocaml build most likely has a broken Makefile.config
<davidlt> oh, that' srpm
<davidlt> and then ./usr/lib64/ocaml/Makefile.config
<davidlt> rwmjones, that's different from x86_64
<davidlt> Oh yes, it's different
<davidlt> :q
<rwmjones> there are some differences but they don't seem that important
<rwmjones> except for the literal %{exec_prefix} which seems like a bug
<davidlt> it's is
<davidlt> like RANLIB Is not defined on riscv64
<davidlt> that's why we fail there
<davidlt> at least one error :)
<rwmjones> I think the root cause problem is that the ocaml-labltk configure script is junk and should be rewritten in autoconf
<davidlt> yeah, but Makefile.config stuff be used by other packages too
<rwmjones> I doubt anything important is using the ocamllibdir/Makefile.config file
<davidlt> rwmjones, well, it's your call. You definitely know way more than I do here :)
<davidlt> I am just astonished that I didn't notice that the 1st time I looked at ./configure.
<davidlt> (and I had like 4 hours to sleep this night)
esv has quit [Remote host closed the connection]
zsun has quit [Read error: Connection reset by peer]
<somlo> holy crap it worked: https://imgur.com/a/GozXcQ8
<somlo> ... and then it crashed https://imgur.com/a/cgPIeE7 :(
<somlo> but, progress! This time I actually got it all the way to the login prompt. I cheated a bit: had a 4-core model before, ran it all (including the dtb specifying 4 cores) on a single-core bitstream
<somlo> it "failed" to start 3 of the 4 cores it *thought* it had during early boot
<somlo> so I'm hoping if I redo the dtb to only specify one core I might get it to *not* crash after getting to the login prompt
<davidlt[m]> somlo: nice!
<somlo> davidlt[m]: so the earlier crashes (a few days ago) might have something to do with SMP (seeing as trying with a single core got me further). But it's still early in the troubleshooting process :)
zsun has joined #fedora-riscv
zsun has quit [Ping timeout: 244 seconds]
jcajka has quit [Quit: Leaving]
cyberpear has quit [Quit: Connection closed for inactivity]
esv has joined #fedora-riscv
takuma has joined #fedora-riscv
warren_ is now known as warren
cyberpear has joined #fedora-riscv
davidlt has quit [Ping timeout: 265 seconds]