Re: Testsuite failure on mips64el, solved with '-fno-inline'

Jeffrey Walton <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <CAH8yC8==dA1vwuZkY5oR3YPVzE+uw8_7Gm1Ny7nYg4bVB24ORA@mail.gmail.com>
On Mon, Dec 6, 2021 at 7:33 AM Håvard Flaget Aasen
<[email protected]> wrote:
>
> Hello,
>
> I've had some issues with the package c-blosc. The testsuite started
> to fail on mips64el. I found a solution, adding  '-fno-inline' in
> CFLAGS in d/rules.
>
> Does this seem to be a valid solution or, does it only hide a problem
> with the source code?
> There are a couple of things I find strange, the testsuite only failed
> on mips64el and only after GCC-11 was the default compiler, (several
> other packages have also been updated), though it doesn't need to be
> related.

It sounds like something related to GCC 11. The release log does not
show any behavior changes, see
https://gcc.gnu.org/gcc-11/changes.html.

Maybe the linker is performing the whole program optimization due to
LTO and biting you. -fno-lto may help.

If you can identify the function, then maybe you can be surgical and
apply __attribute__((noinline)) to it.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.