Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffmpeg compiled with gcc 12.1.1 segfault on mp4 files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Loatchi
n00b
n00b


Joined: 13 Jul 2022
Posts: 1

PostPosted: Wed Jul 13, 2022 10:25 am    Post subject: ffmpeg compiled with gcc 12.1.1 segfault on mp4 files Reply with quote

I was just wondering if anyone that compiled ffmpeg with the latest version of gcc had the same problem as I do. When trying to parse a file test.mp4 it instantly segfaults.
I fixed it by building ffmpeg with an older version of gcc.
If someone understand what is going wrong with the newest version of gcc and ffmpeg or maybe I'm alone in this situation.

And is there a way to tell to portage that I want to use a specific version of gcc to compile a package, but use the latest version to compile everything else ?

(It's my first ever post here: yay ! I'm french, so I'm sorry for my poor english.)
Back to top
View user's profile Send private message
telans
n00b
n00b


Joined: 04 Jun 2020
Posts: 11

PostPosted: Wed Jul 13, 2022 12:48 pm    Post subject: Reply with quote

You can use an /etc/portage/env entry [1] and a corresponding /etc/portage/package.env entry [1]

Example 'gcc' env file:
Code:

CC="gcc-11.3.0"
CXX="g++-11.3.0"
CPP="gcc-11.3.0 -E"


And 'gcc' package.env file:
Code:

app-foo/bar gcc


This will use a specific GCC version for app-foo/bar. The env files can be used for setting any environment variable like CFLAGS/CXX etc.
If you can't find a duplicate bug at bugs.gentoo.org regarding ffmpeg you should file one about this.

[1]: https://wiki.gentoo.org/wiki//etc/portage/package.env
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum