Re: fossil build failure on riscv64
Hello Barak,
On Wed, 2025-04-09 at 20:46 +0100, Barak A. Pearlmutter wrote:
> So the issue is in GCC. I will hotwire debian/rules to use clang on
> riscv64, but it would probably make sense to alert the GCC
> maintainers.
I would really avoid using such a workaround to swipe the problem
under the carpet. Since GCC is the default compiler, this issue should
be investigated.
We don't know yet whether this is a GCC bug or still a bug in fossil which
is just exposed when building with GCC instead ofClang.
> Not sure how to cobble together a minimal program that
> exhibits the problem though. We don't even know what's going on at the
> low level. And, it might not be a bug: the C/C++ specs may give the
> compiler license to burn down the house when it sees (1<<31) in a
> signed 32-bit integer.
The first step should be reporting the issue upstream and asking for help.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: