Re: [gentoo-user] libavcodec causes general protection fault when compiled with gcc 13

2023-10-29 Thread Matthias Hanft
netfab wrote:
> 
> Have a look at ¹ to see if it matches your case.
> Please try the workaround suggested in comment 4 (set CPU_FLAGS_X86
> and re-emerge ffmpeg). Does it help ?
> 1. https://bugs.gentoo.org/915384

Yes, it helped.  I have provided some more information in
that bug report. (Of course, I had searched the bug database,
but obviously with wrong search terms.)

Thanks a lot - I would never have thought of that myself
(didn't even know "CPU_FLAGS_X86" at all until now).

-Matt



Re: [gentoo-user] libavcodec causes general protection fault when compiled with gcc 13

2023-10-29 Thread netfab


Hi,

Le 29/10/23 à 11:29, Matthias Hanft a tapoté :
> I don't have anything special in /etc/portage/make.conf - just
> as usual:
> 
> CFLAGS="-march=native -O2 -pipe"
> CXXFLAGS="${CFLAGS}"
> MAKEOPTS="-j2"
> CHOST="x86_64-pc-linux-gnu"
> 
> Any hints?


Have a look at ¹ to see if it matches your case.
Please try the workaround suggested in comment 4 (set CPU_FLAGS_X86
and re-emerge ffmpeg). Does it help ?

1. https://bugs.gentoo.org/915384





[gentoo-user] libavcodec causes general protection fault when compiled with gcc 13

2023-10-29 Thread Matthias Hanft
Hi,

after compiling ffmpeg (which includes libavcodec) with gcc 13,
everything which uses libavcodec crashes with general protection
fault.  This includes stand-alone use of ffmpeg, but also
minidlna (and supposedly some more packages).

Oct 29 11:16:08 home01 kernel: traps: minidlnad[11961] general protection fault 
ip:7f44fcc1e2ea sp:7f44fbf48e20 error:0 in 
libavcodec.so.60.3.100[7f44fcbb2000+73b000]

After recompiling package ffmpeg with gcc 12, everything works fine.

What could be the reason for this? Of course, I'd like to delete
gcc 12 after some period of time.

I don't have anything special in /etc/portage/make.conf - just
as usual:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
CHOST="x86_64-pc-linux-gnu"

Any hints?

Thanks,

-Matt