Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] mpeg2enc does not work after gcc4.1.1 upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
sqwish
n00b
n00b


Joined: 10 Feb 2006
Posts: 14

PostPosted: Tue Sep 12, 2006 4:59 pm    Post subject: [solved] mpeg2enc does not work after gcc4.1.1 upgrade Reply with quote

as the subject says, i've been recompiling all my ebuilds over the last couple of days with the new gcc4.1.1 and now my mpeg2enc is messed up. it works, but the quantization values go wildly higher than the one i set and there are weird coloured artifacts around light coloured pixels in the output. i'm piping from mplayer and from what i can tell mplayer is working as expected. anyone seeing this? anyone have any ideas or fixes? thanks.

Last edited by sqwish on Tue Sep 26, 2006 3:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Sep 12, 2006 6:02 pm    Post subject: Reply with quote

It might be a strict-aliasing issue, try appending -fno-strict-aliasing to your CFLAGs.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
sqwish
n00b
n00b


Joined: 10 Feb 2006
Posts: 14

PostPosted: Wed Sep 13, 2006 5:30 am    Post subject: Reply with quote

JoseJX wrote:
It might be a strict-aliasing issue, try appending -fno-strict-aliasing to your CFLAGs.

I recompiled mjpegtools with -fno-strict-aliasing appended to my make.conf CFLAG variable, but no change. Output from mpeg2enc is still crazy. Thanks for the suggestion though.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Sep 13, 2006 11:59 am    Post subject: Reply with quote

Alright, please file a bug then. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
sqwish
n00b
n00b


Joined: 10 Feb 2006
Posts: 14

PostPosted: Wed Sep 13, 2006 12:43 pm    Post subject: Reply with quote

is there a way to force compiling with gcc3.4.6? i'm going to have to reinstall 3.4.6 anyway so that i can have qemu compile sensibly.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Sep 13, 2006 12:56 pm    Post subject: Reply with quote

You can select your compiler using gcc-config. gcc is slotted, so if you upgraded to 4.1.1, 3.4.6 should still be available to switch to, no reinstallation required.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
sqwish
n00b
n00b


Joined: 10 Feb 2006
Posts: 14

PostPosted: Wed Sep 13, 2006 2:47 pm    Post subject: Reply with quote

yeah, i removed it to ensure that nothing would rebuild against it. how do i get it back? it's masked by profile.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Sat Sep 16, 2006 7:30 am    Post subject: Reply with quote

You really should have run
Code:

quickpkg gcc

before uninstalling a system package.

Also, it is a bit of a hassle, but understanding fix_libtool_files.sh and rebuilding C++ packages in the correct order would have prevent the need to uninstall the old gcc.

Even so, try switching to an older profile, such as 2006.0, or older, install gcc-3* with safe CFLAGS. Switch the profile back. Use gcc-config to switch between compilers. This is assuming of course that gcc-3* will compile with gcc-4*. I do not think that gcc upstream tests compiling an older compiler with a newer one.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
sqwish
n00b
n00b


Joined: 10 Feb 2006
Posts: 14

PostPosted: Tue Sep 26, 2006 3:54 pm    Post subject: [solved] mpeg2enc does not work after gcc4.1.1 upgrade Reply with quote

i have fixed the problem by nuking my cflags. current cflags are:
Code:
CFLAGS="-O2 -pipe -mcpu=7450 -mtune=G4 -maltivec -mabi=altivec"

and i set:
Code:
CFLAGS=""

and now mpeg2enc works properly as far as i can tell. will experiment with each flag to see which one is offensive.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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