00:50
zsun has joined #fedora-riscv
02:33
jednorozec has quit [Read error: Connection reset by peer]
02:34
jednorozec has joined #fedora-riscv
03:03
zsun has quit [Quit: Leaving.]
05:01
davidlt has joined #fedora-riscv
05:21
davidlt has quit [Ping timeout: 260 seconds]
07:09
zsun has joined #fedora-riscv
07:13
davidlt has joined #fedora-riscv
07:22
<
davidlt >
that's binutils 2.42 for F41/Rawhide. So far failed tests, but probably will land soonish.
07:23
<
davidlt >
no new patches for riscv in GCC 14 for the last 24 hours :) That's good.
07:24
<
davidlt >
Seems like things are finally settling down
07:30
<
davidlt >
today I will continue rebuilding GHC
07:31
<
davidlt >
I guess our mass rebuild is starting with GHC :) awkward :)
07:35
zsun has quit [Quit: Leaving.]
07:42
<
davidlt >
oh, ast2700 incl. riscv64 core
07:45
jcajka has joined #fedora-riscv
07:48
jcajka has quit [Client Quit]
07:49
jcajka has joined #fedora-riscv
07:49
<
sorear >
davidlt: ref? all I can find for ast2700 is that support was added to TF-A two months ago
07:50
<
davidlt >
sorear, it's on qemu devel mailing list
08:52
<
rwmjones_ >
g'morning
08:53
<
rwmjones_ >
any more packages you want me to look at, put the names in here
08:55
<
davidlt >
morning, let me look and make a list
09:07
<
davidlt >
this one needs retesting for sure, not sure why it works differently on riscv64
09:14
<
rwmjones_ >
done Random123, biab and I'll do the other packages
09:17
<
sharkcz >
re astyle - we (aka me) might want to rebase to latest release, seems they made couple new releases last year, previous (3.1) was in 2018 ...
09:19
<
davidlt >
sharkcz, sure, if you have dist-git URL, SRPM just post details here or Matrix and Richard or me can launch a test build for riscv64
09:19
<
davidlt >
rwmjones_, I assume you do test these changes on Fedora 40 (riscv64) locally before submitting?
09:20
<
davidlt >
anyways, I look for trivial/easy ones right now
09:20
<
davidlt >
I already see some are not needed (e.g. disabled docs before of pandoc)
09:22
<
davidlt >
enough for now
09:52
<
rwmjones_ >
davidlt: yes
09:52
<
rwmjones_ >
I mean, I compile them, I don't test them in huge detail
09:54
<
rwmjones_ >
davidlt: re
__LP64__ I thought that was actually a better idea than just listing every possible 64 bit arch by name
09:54
<
rwmjones_ >
which was why I left it
09:54
<
rwmjones_ >
let's see what they say upstream anyway
09:54
<
davidlt >
Yeah, I think that's why it's there.
09:54
<
davidlt >
Listing all arches is not really comfortable.
10:04
<
sorear >
__riscv_xlen is wrong there anyway, xlen is the register size not the ABI pointer size
10:07
<
sorear >
normally I recommend
__SIZEOF_POINTER__, I haven't looked at the compatibility story for __LP64__
10:07
<
sorear >
why not use stdint.h? C89 compiler support?
10:08
<
davidlt >
ah yes, for newer things I recall using
__SIZEOF_POINTER__ more often
10:08
<
davidlt >
LP64 macro is: These macros are defined, with value 1, if (and only if) the compilation is for a target where long int and pointer both use 64-bits and int uses 32-bit.
10:09
<
sorear >
i'm hoping that Windows for RV64 is more common than ILP32 for RV64 in the long run
10:11
<
davidlt >
I forgot that Windows as LLP64 on x86_64, is that true for aarch64 too?
10:13
<
rwmjones_ >
davidlt: on both Linux and macOS aarch64 it defines __LP64__, I don't have Windows to test
10:14
<
sharkcz >
davidlt: re astyle - it should be rpmbuild (likely /usr/lib/rpm/redhat/brp-ldconfig) what adds the filename -> soname symlink automagically when processing the binary rpm content, you should be able to drop the change, if not, then "rpmbuild" is broken
10:14
* rwmjones_
is just rebuilding astyle right now, results soon ...
10:15
<
davidlt >
rwmjones_, is on top of this :)
10:15
<
rwmjones_ >
so it fails with ...
10:15
<
rwmjones_ >
RPM build warnings:
10:15
<
rwmjones_ >
%patchN is deprecated (2 usages found), use %patch N (or %patch -P N)
10:15
<
rwmjones_ >
RPM build errors:
10:15
<
rwmjones_ >
File not found: /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-21.fc41.riscv64/usr/lib64/libastyle.so.3
10:15
<
rwmjones_ >
let's see what the file is called ..
10:16
<
davidlt >
I recall it working on all arches expect riscv64
10:16
<
rwmjones_ >
$ ls -l /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-21.fc41.riscv64/usr/lib64/
10:16
<
rwmjones_ >
total 312
10:16
<
rwmjones_ >
lrwxrwxrwx 1 rjones rjones 18 Feb 15 10:14 libastyle.so -> libastyle.so.3.1.0
10:16
<
rwmjones_ >
-rwxr-xr-x 1 rjones rjones 316800 Feb 15 10:14 libastyle.so.3.1.0
10:16
<
davidlt >
It had the that symlink missing on riscv64
10:17
<
davidlt >
sharkcz, ^^
10:17
<
rwmjones_ >
+ ln -s libastyle.so.3.1.0 libastyle.so
10:17
<
sharkcz >
yup, then something doesn't work as expected ...
10:17
<
rwmjones_ >
%soversion expands to 3.1.0 I guess?
10:18
<
rwmjones_ >
it does feel like an upstream bug of some sort, rather than riscv64
10:18
<
sharkcz >
IMHO it's /usr/lib/rpm/redhat/brp-ldconfig issue
10:19
<
sharkcz >
we can add the symlink, but it hides the root cause IMO
10:20
<
rwmjones_ >
maybe, but it seems like linking libastyle.so -> libastyle.so.3.1.0 is always wrong as that's not how shared libraries are normally linked?
10:23
<
sharkcz >
AFAIK that's OK
10:29
<
sharkcz >
looking at /usr/lib/rpm/redhat/brp-ldconfig, it's better to create the missing symlink explicitly
10:29
<
sharkcz >
# TODO: warn if it created new symlinks and guide people. :-)
10:30
davidlt has quit [Ping timeout: 268 seconds]
10:33
davidlt has joined #fedora-riscv
10:37
<
davidlt >
rwmjones_, not all GHC packages got rebuilt during the mass rebuild, could you / maintainer restart the failed build?
10:37
<
davidlt >
so far ghc-readline and ghc-libxml-sax the last two rebuilds failed
10:38
<
davidlt >
otherwise I have to make our own NVR for these
10:38
<
rwmjones_ >
davidlt: do you mean in regular koji?
10:39
<
davidlt >
Yes, yeah, some packages failed in mass rebuild and thus no new NVR
10:39
<
davidlt >
I guess petersen didn't look into them
10:39
<
rwmjones_ >
because the branch has happened, that's an f41 build
10:39
<
rwmjones_ >
don't know if you also want f40
10:40
<
davidlt >
yes, because my script syncs between tags
10:41
<
davidlt >
there will probably be more later today
10:41
<
davidlt >
these should be part of failed builds of mass rebuild
10:43
<
davidlt >
oh yeah, there are more.
10:43
<
rwmjones_ >
looking..
10:43
<
rwmjones_ >
I see a lot ..
10:43
<
rwmjones_ >
ghc-readline f41 failed btw
10:43
<
davidlt >
well, if there is newer versions (NVR) builds these are fine, but in mass rebuild (at a time) these failed to rebuild
10:43
<
rwmjones_ >
ghc-libxml-sax f41 also failed
10:43
<
rwmjones_ >
ghc-libxml-sax f40 also failed
10:44
<
davidlt >
sounds like we have a problem in general
10:44
<
rwmjones_ >
I'll have a look at it
10:44
<
rwmjones_ >
ok these are "modern C" things
10:44
<
davidlt >
I will try to build the failed NVRs (all of these are bumps), but if any "fix" happens hopefully it gets a new NVR
10:45
<
davidlt >
oh, so pandoc will get blocked :)
10:45
<
rwmjones_ >
yeah I don't think there's a chance this will build with gcc14
10:45
<
rwmjones_ >
I was using some older gcc
10:46
<
davidlt >
chat with petersen about status/cleanups/etc
10:46
<
davidlt >
I am a bit surprised as modern C cleanups have been ongoing for many months now
10:46
<
rwmjones_ >
let me see if this is code in the package itself, or code generated by ghc ..
10:46
<
davidlt >
it's probably C code in GHC package
10:46
<
davidlt >
I recall that cabal files (?) might contain GCC flags
10:47
<
davidlt >
Actually the list incl. ghc-pandoc-types too
10:48
<
davidlt >
only on ppc64le, but logs are gone
10:48
<
rwmjones_ >
ok I think this is generated C code, although not sure what generates it
10:48
<
davidlt >
looking at failures it seems random arches
10:49
<
davidlt >
ppc64le seems to be a popular one to fail
10:49
<
rwmjones_ >
yeah it's generated by ghc
10:49
<
rwmjones_ >
files like compiler/GHC/HsToCore/Foreign/C.hs
10:49
<
sharkcz >
fyi astyle has been updated in rawhide
10:50
<
rwmjones_ >
sharkcz: thanks, will test it now
10:50
<
davidlt >
sharkcz, could we get symlink fix in F40 too?
10:51
<
rwmjones_ >
ok astyle from rawhide is building on my riscv machine now
10:51
<
davidlt >
rwmjones_, there is a good chance GHC stuff might have been fixes upstream already
10:51
<
rwmjones_ >
yeah I'm looking at that
10:52
<
davidlt >
the main question would be: do these changes change compiler hash? :) // resulting in GHC ecosystem rebuild again
10:52
<
rwmjones_ >
there's an upstream fix for -Wincompatible-pointer-types-discards-qualifiers
10:56
iooi has quit [Ping timeout: 252 seconds]
10:56
<
rwmjones_ >
I would say there's very little chance we can backport small things, and maybe updating ghc is the best option
10:56
<
rwmjones_ >
for riscv can we build pandoc in f39 buildroot?
10:59
<
davidlt >
we don't have f39. We skipped it to spend all time / boards towards f40 catch up.
10:59
<
davidlt >
this needs a proper fix, we could wait until GHC 9.6.X lands in Fedora 40
10:59
<
davidlt >
at that point this will have to fixed anyways
10:59
<
davidlt >
there is no way around it as hashes for all GHC packages will change
11:00
<
davidlt >
most likely these fixes exist only in 9.9
11:00
<
rwmjones_ >
so if there was a package that included FFI and just depended on ghc, I might be able to build it locally and try to fix ghc
11:00
<
davidlt >
check with petersen, he would know
11:00
<
rwmjones_ >
how to search for that ..
11:01
<
davidlt >
alternative would be to disable these
11:03
<
davidlt >
try rebuilding with build_type_safety_c set to 0
11:04
<
davidlt >
Alternative is to disabled that in code per package, in Cabal file.
11:04
<
davidlt >
Anyways, talk with petersen as he must have a plan for this (GHC 9.6 is approved for F40).
11:04
<
davidlt >
and I doubt all these cleanups are in 9.6.X
11:05
<
rwmjones_ >
here's ghc-readline with build_type_safety_c == 0 (scratch build):
11:13
<
rwmjones_ >
davidlt: I posted on devel@
11:13
<
rwmjones_ >
sharkcz: it compiles now, although I saw these warnings:
11:13
<
rwmjones_ >
Duplicate build-ids /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-22.fc41.riscv64/usr/lib64/libastyle.so.3 and /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-22.fc41.riscv64/usr/lib64/libastyle.so.3.1.0
11:13
<
rwmjones_ >
Duplicate build-ids /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-22.fc41.riscv64/usr/lib/debug/usr/lib64/libastyle.so.3-3.1-22.fc41.riscv64.debug and /home/rjones/rpmbuild/BUILDROOT/astyle-3.1-22.fc41.riscv64/usr/lib/debug/usr/lib64/libastyle.so.3.1.0-3.1-22.fc41.riscv64.debug
11:13
<
rwmjones_ >
(apparently not fatal)
11:14
<
sharkcz >
yeah, I see them as well and could not get rid of them
11:15
<
davidlt >
rwmjones_, cool, you could have added Florian as he owns Modern C change
11:15
<
sharkcz >
and would be useful to know why /usr/lib/rpm/redhat/brp-ldconfig didn't do its job ...
11:16
<
rwmjones_ >
davidlt: if he doesn't see it in a few hours I'll ping him, but he's usually very responsive
11:17
<
davidlt >
does ldconfig actually create symlinks?
11:19
<
davidlt >
maybe re-run this with script modified in mock buildroot?
11:19
<
davidlt >
you could pass -v to ldconfig
11:20
<
rwmjones_ >
could it be a /lib64/lp64d thing?
11:20
<
rwmjones_ >
that directory doesn't exist in the buildroot, so maybe ldconfig gives up
11:20
<
davidlt >
Yeah, I am thinking the same
11:20
<
rwmjones_ >
back in 30 mins
11:21
<
davidlt >
it's not part of basefilesystem?
11:21
<
davidlt >
it should be there if GCC is installed IIRC
11:22
<
davidlt >
%ifarch x86_64 ppc64 sparc64 s390x aarch64 ppc64le mips64 mips64el riscv64
11:23
<
davidlt >
we aren't creating /%{_lib}/<ABI> directories
11:24
<
davidlt >
I was thinking about this recently
11:25
<
davidlt >
we also aren't setting libdir to /%{_lib}/<ABI>
11:26
<
davidlt >
at some point we need to spend time to figure out what we want to do with this
11:26
<
davidlt >
this is also messing with meson (but that's meson problem)
11:29
<
davidlt >
thanks to Pioneer it's easier to experiment with GCC (especially if you disable all the stages)
11:49
esv has quit [Remote host closed the connection]
11:51
esv has joined #fedora-riscv
12:02
<
davidlt >
that was a mistake :)
12:04
<
davidlt >
but yeah, this requires a proper fixing.
12:04
<
davidlt >
this will most likely will be needed for GHC 9.6 move
12:06
<
davidlt >
rwmjones_, I would suggest rebuilding all failed GHC related packages to collect all Modern C related failures
12:07
<
davidlt >
I afraid these could change compiler hash if we do one-by-one and thus we would need to keep recompiling everything
12:08
<
davidlt >
we need upstream GHC ticket too
12:11
<
rwmjones_ >
florian's suggestion of emitting #pragma in ghc might be a good one
12:13
<
davidlt >
not really, pragma is just another way to hide it
12:14
<
davidlt >
replicated Vala workaround is still a workaround
12:14
<
davidlt >
we need to collect all failures, capture failed generated files too
12:14
<
davidlt >
then cook a GHC issue
12:15
<
davidlt >
then we can look at temporary workaround
12:15
<
davidlt >
(pragma stuff)
12:16
<
rwmjones_ >
one sec, dealing with stuff
12:20
<
rwmjones_ >
so I'll do scratch builds of all the ghc-* packages that failed
12:23
<
davidlt >
there are 5.6K issues on GHC repo OoO
12:26
<
davidlt >
ah, but this for GHC itself
12:27
<
rwmjones_ >
ok I kicked off scratch builds of all the failed packages
12:27
<
davidlt >
Surprisingly GHC 9.4 compiled fine :)
12:47
<
rwmjones_ >
(see email update)
12:58
masami has joined #fedora-riscv
13:11
* davidlt
checking..
13:12
<
davidlt >
rwmjones_, nice investigation!
13:12
<
davidlt >
respin ghc-th-orphans, sounds like OOM
13:13
<
davidlt >
are ghc-gi-gtk, ghc-gi-ostree reported upstream?
13:14
<
rwmjones_ >
let's try florian's patch, I'm doing all this on x86-64
13:30
<
davidlt >
rwmjones_, 2nd one worked
13:33
masami has quit [Quit: Leaving]
13:35
<
davidlt >
why did it work on f41, but not f40?
13:35
<
davidlt >
could you re-try on f40?
13:35
<
davidlt >
ghc-gi-gtk fail feels strange, and might be related to atk packages
13:41
<
davidlt >
hmm... there was a new version of at-spi2-core (atk-devel)
13:44
<
rwmjones_ >
sure, one sec
13:45
<
rwmjones_ >
I'm having problems even rebuilding ghc locally on x86-64
13:45
<
rwmjones_ >
/usr/bin/ld.gold: pack-relative-relocs: unknown -z option
13:45
<
rwmjones_ >
(even after commenting out the ld.gold stuff from the spec file)
13:48
zsun has joined #fedora-riscv
13:50
<
davidlt >
some bits might still use ld.gold (hardcoded)
13:51
<
rwmjones_ >
just upgraded the whole machine to rawhide ..
13:52
<
rwmjones_ >
biab, meetings ....
13:52
<
davidlt >
be careful, this might have binutils 2.42 :)
14:15
zsun has quit [Quit: Leaving.]
15:18
<
rwmjones_ >
davidlt: florian's patch worked, I'll send it upstream shortly
15:18
<
davidlt >
rwmjones_, cool
16:39
<
davidlt >
rwmjones_, cool, saw the email
16:58
<
davidlt >
and a new batch of GHC packages goes to Koji queue
16:59
<
davidlt >
actually I am experimenting with this too, I am running Pioneer with maxjobs=16 / capacity 64.0 in Koji
17:01
<
rwmjones_ >
I'm just doing an unpatched fftw build on vf2, seems ok so far but it hasn't got the check stage yet
18:24
jcajka has quit [Remote host closed the connection]
20:02
davidlt has quit [Ping timeout: 264 seconds]
21:00
cyberpear has joined #fedora-riscv
23:20
cyberpear has quit [Quit: Connection closed for inactivity]