View previous topic :: View next topic |
Author |
Message |
Loatchi n00b
Joined: 13 Jul 2022 Posts: 1
|
Posted: Wed Jul 13, 2022 10:25 am Post subject: ffmpeg compiled with gcc 12.1.1 segfault on mp4 files |
|
|
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 |
|
|
telans n00b
Joined: 04 Jun 2020 Posts: 11
|
Posted: Wed Jul 13, 2022 12:48 pm Post subject: |
|
|
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:
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 |
|
|
|