I'm getting errors when trying to make install Mplayer. What is going wrong?
Im trying to compile Mplayer from source and I get this when I try to make install. What is going wrong? This is at the end of the "make"
ffv1.c: In function `encode_rgb_frame': ffv1.c:465: internal compiler error: in find_function_data, at function.c:329 Please submit a full bug report, with preprocessed source if appropriate. See <URL:https://qa.mandrakesoft.com/> for instructions. make[1]: *** [ffv1.o] Error 1 make[1]: Leaving directory `/home/******/Desktop/MPlayer-1.0pre5/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 This is the make install... Im stuck... Can anyone help me? # make install make -C libavcodec LIBPREF=lib LIBSUF=.a make[1]: Entering directory `/home/******/Desktop/MPlayer-1.0pre5/libavcodec' cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffv1.o ffv1.c ffv1.c: In function `encode_rgb_frame': ffv1.c:465: internal compiler error: in find_function_data, at function.c:329 Please submit a full bug report, with preprocessed source if appropriate. See <URL:https://qa.mandrakesoft.com/> for instructions. make[1]: *** [ffv1.o] Error 1 make[1]: Leaving directory `/home/*****/Desktop/MPlayer-1.0pre5/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 |
LOL, do you have the Gcc compiler installed?????
|
I dunno. Whats that? Do I have to install that? Can I just urpmi it?
|
I just did "urpmi gcc" and it said everything is already installed. I tried "urpmi gcc compiler" and it said their is no package with that name.
|
anyone?
|
Hmm looks like this problem has cropped up before with ffmpeg (google). You might let us know which gcc you are using by entering gcc --version at the command prompt. I was able to compile mplayer with no problems using gcc 3.3.3
|
This is what I got.
gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
anyone?
|
^
|
Try upgrading to the latest ffmpeg (uninstall the rpm first)
http://ffmpeg.sourceforge.net |
Same problem, same result
I have an identical problem, so I can confirm that this problem is real and not due to freak winds or bizarre hardware. Looks like the version of gcc is not compatible with the latest version of mplayer.
|
Solution... without new package
I'm a C programmer (amongst other things) so if you are not comfortable editing code then this solution is not for you. That said:
1. Edit .../libavcodec/ffv1.c 2. Find line 465 (the line mentioned in the error message) 3. Change: Code:
sample[p][i]= sample_buffer[p][(h+i-y)%ring_size]+3; Code:
{ |
Thanks for the code fix!
I was having the same problem compiling Mplayer, and didn't really want to have to upgrade gcc. I can confirm that this code change does work. I made it, and was able to compile Mplayer without any other problems. |
I hate to be the one to take the low road, but if you are using Mandrake 10, as your user tag suggests, why not just install the Mplayer RPM included on your installation CD-roms? :(
Mplayer has soooo many dependancies and codecs... |
valid point
You make a valid point, but there is a reason.
I did install Mplayer from the CDs. That version is slower, probably because it was compiled with cpu-runtime-detection. It also always comes up fullscreen instead of in a window. I have compiled it successfully in the past without much problem at all, so for me it isn't a big deal. |
I got the same error. The code fix recommended worked. Thanks!
I am also using Mandrake 10. I tried the rpm originally and at run-time got some weird messages including that my computer was too slow and to recompile with a particular flag. It's an 800Mhz which i know isn't fast, but don't think it should be "too slow". I decided to recompile and that's when my problems started. I made the change and it works good now... though no audio. I'm sure i'll figure that one out shortly. Thanks, -thomas |
Ok, I'm a programmer...so what gives? This doesn't seem all that complicated - why does gcc 3.3.2 have a problem here?
The code fix worked for me as well - thank you kindly. |
if you keep getting errors, there has to be a mandy rpm for mplayer and its dependencies.
|
rpms are nice, but the code fix worked fine - I just want to know why gcc 3.3.2 doesn't like this.
|
I'm using Mandrake 10.0 but only because I'm too lazy to run something like Slackware on my main machine.
In my case, I'm recompiling MPlayer both to improve efficiency, and to fix some shortcomings in the RPMed version. (Mainly the fact that it won't play audio from Matroska video files if it's encoded in AC3 format.) |
just trying it now.
|
Re: Solution... without new package
Quote:
Top stuff! This workaround was good for me running SuSE 9.0 Professional with GCC 3.3.1. Nice one, Anarchofascist! ;) Rik. |
Code fix works great for me. :) It's weird the programmers of MPlayer haven't found this out yet.
Anyway, thanks a lot! |
The problem isn't with the MPlayer code - it's a gcc bug (which has been fixed now, because 3.4.2 compiled MPlayer no problem).
|
Than it is weird that I don't get any updates for gcc with Mandrake 10.0. Guess I'll have to do it manually.
|
All times are GMT -5. The time now is 09:04 AM. |