nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   mplayer-vdpau-4789364 compilation problem (http://www.nvnews.net/vbulletin/showthread.php?t=141067)

seaweed 11-08-09 07:21 AM

mplayer-vdpau-4789364 compilation problem
 
1 Attachment(s)
Hi all, I am getting this when I enable --enable-debug=3 --extra-cflags=-fno-omit-frame-pointer during configure:


swscale_template.c: In function 'yuv2packed2_MMX2':
swscale_template.c:1362: error: bp cannot be used in asm here
make[1]: *** [swscale.o] Error 1
make[1]: Leaving directory `/home/ratin/mplayer-vdpau-4789364/mplayer-vdpau/libswscale'
make: *** [libswscale/libswscale.a] Error 2


Anybody experiencing this issue?

configure.log attached

cehoyos 11-08-09 04:15 PM

Re: mplayer-vdpau-4789364 compilation problem
 
Quote:

Originally Posted by seaweed (Post 2119518)
Hi all, I am getting this when I enable --enable-debug=3 --extra-cflags=-fno-omit-frame-pointer during configure:

Works for me with both latest svn and mplayer-vdpau-4789364.
gcc version 4.3.1 20080507 (prerelease)

The more important question is: Why do you need those options and why together with NVIDIA's patchset?

Carl Eugen

cehoyos 11-08-09 07:02 PM

Re: mplayer-vdpau-4789364 compilation problem
 
Quote:

Originally Posted by cehoyos (Post 2119721)
Works for me with both latest svn and mplayer-vdpau-4789364.
gcc version 4.3.1 20080507 (prerelease)

Sorry, my fault, --extra-cflags=-fno-omit-frame-pointer does not work:
You can still use --enable-debug=3

Carl Eugen

seaweed 11-09-09 01:05 AM

Re: mplayer-vdpau-4789364 compilation problem
 
Quote:

Originally Posted by cehoyos (Post 2119784)
Sorry, my fault, --extra-cflags=-fno-omit-frame-pointer does not work:
You can still use --enable-debug=3

Carl Eugen

Hi Thanks for your reply. --enable-debug=3 itself works but somehow -O2 is set for cflags during build, I wanted to debug without any optimization on to see whats hapenning with the audio decoding. With -O2, a lot of code is optimized out..

Stephen Warren 11-09-09 12:23 PM

Re: mplayer-vdpau-4789364 compilation problem
 
When using -fno-omit-frame-pointer, the bp register is used as the frame pointer, and hence can't be used by assembly.

In general, I believe ffmpeg can't be compiled without all/most of the optimization turned on.

seaweed 11-09-09 02:04 PM

Re: mplayer-vdpau-4789364 compilation problem
 
Quote:

Originally Posted by Stephen Warren (Post 2120168)
When using -fno-omit-frame-pointer, the bp register is used as the frame pointer, and hence can't be used by assembly.

In general, I believe ffmpeg can't be compiled without all/most of the optimization turned on.

maybe I should ditch libswscale for debugging purpose, use hqscale and color transformations via the GPU ;-)


All times are GMT -5. The time now is 03:53 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.