Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] avidemux-core compilation problem
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
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Mon Mar 11, 2019 1:03 pm    Post subject: [SOLVED] avidemux-core compilation problem Reply with quote

I've been trying to compile avidemux-core, 2.6 as well as 2.7, using both gcc 7.3 and 8.2, and keep having compilation problem.

In looking at it, it is trying to compile the included ffmpeg, which gives an internal compiler error (no, not memory related)

But in trying to get it to use the system ffmpeg, I've got something that's making me scratch my head.

Code:
emerge -pv avidemux-core

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] media-libs/avidemux-core-2.6.20-r2:2.6::local  USE="sdl vaapi vdpau xv -debug -nls -nvenc (-system-ffmpeg)" 0 KiB


system-ffmpeg, is being totally ignored, it shows up as a non-option, even though it's in the ebuild as an option.

Anyone have a clue what's going on with this?
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon


Last edited by Anon-E-moose on Mon Mar 11, 2019 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6972
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 11, 2019 1:45 pm    Post subject: Reply with quote

You are not using gold linker, are you?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21360
Location: here

PostPosted: Mon Mar 11, 2019 1:53 pm    Post subject: Re: avidemux-core compilation problem Reply with quote

Anon-E-moose wrote:
In looking at it, it is trying to compile the included ffmpeg, which gives an internal compiler error (no, not memory related)

You can post build.log?

Anon-E-moose wrote:
system-ffmpeg, is being totally ignored, it shows up as a non-option, even though it's in the ebuild as an option.

This is masked by profile because
/usr/portage/profiles/base/package.use.mask:
# Tom Wijsman <TomWij@gentoo.org> (10 Mar 2013)
# Experimental, masked until it compiles and works.
media-libs/avidemux-core system-ffmpeg

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6831
Location: Austria

PostPosted: Mon Mar 11, 2019 1:55 pm    Post subject: Reply with quote

Needless to say, avidemux build system is a train wreck...
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Mon Mar 11, 2019 2:08 pm    Post subject: Reply with quote

Jaglover wrote:
You are not using gold linker, are you?


No

fedeliallalinea, the revelant part of the build log is
Code:
CC  libavcodec/nellymoser.o
src/libavcodec/nellymoser.c: In function ‘ff_nelly_get_sample_bits’:
src/libavcodec/nellymoser.c:117:6: internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1019
 void ff_nelly_get_sample_bits(const float *buf, int *bits)
      ^~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
CC  libavcodec/nellymoserdec.o
gmake[3]: *** [/var/tmp/portage/media-libs/avidemux-core-2.6.20-r2/work/avidemux-core-2.6.20_build/ffmpeg/source/common.mak:60: libavcodec/nellymoser.o] Error 1


The error is the same, in the same place regardless of whether gcc 7.3 or 8.2.
In googling the error was even there in the past for gcc 6 series.
It's not related to memory, either amount or bad memory, something about the code itself.

I didn't think to check package.use.mask. Thanks.
Though if I try and use system-ffmpeg, then the ebuild errors out :roll: about missing cmake files

asturm, indeed a train wreck. :lol: see last comment about trying to compile with system-ffmpeg flag.

I've found a workaround instead of using avidemux, so I'll mark this as solved, even though there is a problem with compiling the code.


Edit to add: All I really wanted to do was to pull out some tracks for modification and then re-add them.
I found it easier to convert the avi container to a mkv one with ffmpeg then what I wanted to do was pretty straightforward from there.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21360
Location: here

PostPosted: Mon Mar 11, 2019 3:26 pm    Post subject: Reply with quote

Anon-E-moose you enabled lto and/or graphite?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Mon Mar 11, 2019 3:52 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Anon-E-moose you enabled lto and/or graphite?


Yes, graphite is enabled in the gcc build.
I do have -floop-interchange -floop-strip-mine -floop-block as part of my cflags,

I had removed those flags last night with gcc7.3 and still had the compilation problem,
I just tried with gcc8.2 (compiled this morning) and it succeeded with the loop flags removed.

That's nice to know if I ever need avidemux again.

Edit to add: when I tried it last night with gcc 7.3 I had tried with -O3 as that was one of the recommendations that I saw when I googled a similar problem.
But in looking at the gcc options, it seems -O3 turns on some of the loop optimizations (graphite) so that was probably what caused the problem with gcc 7.2.

Live and learn.

ETA2: I've used those loop* flags going back to the gcc4 series and have never seen a compilation problem because of them. This is my first.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
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