Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED??)Would using "-mtune=7450" crash system with 7455
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
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Sep 22, 2006 3:17 pm    Post subject: (SOLVED??)Would using "-mtune=7450" crash system w Reply with quote

I have a dual 7455 and recently tried changing the CFLAGS from "-mtune=G4" to "-mtune=7450". Would this cause the system to freeze (requiring hard shutdown and reboot)? The freeze would only happen with certain packages, such as =kdelibs-3.5.4-r2 or =libquicktime-0.9.9, not libquicktime-0.9.9-r1.

After removing "-mtune=7450" kdelibs compiled with no problems.


Last edited by davidgurvich on Mon Sep 25, 2006 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Sep 22, 2006 7:29 pm    Post subject: Reply with quote

Imagemagick failed. But changing "-Os" to "-O", allowed it to compile. Will now try imagemagick with the following settings
Code:
CFLAGS="-O -mcpu=G4 -mtune=7450 -maltivec -mabi=altivec
-fno-strict-aliasing -pipe -mlong-double-128"
If that works will try kdelibs with those settings, then libquicktime. I don't know why kdelibs compiled before after removing "-mtune=7450". And I don't know why imagemagick failed with "-Os".

The failure was the same each time, a completely frozen system requiring a hard reboot.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Sep 22, 2006 7:44 pm    Post subject: Reply with quote

-mlong-double-128 isn't something you should be setting. Why do you have that set?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Sep 22, 2006 8:44 pm    Post subject: Reply with quote

When changing over to gcc-4.1.1 and glibc-2.4 I could not install without. May not need anymore, but hasn't caused any problems.

I've recently decided to see what changing CFLAGS from "-O -mtune=G4" to "-Os -mtune=7450" would do. All other packages seem to compile, except the new version of ffmpeg goes into an endless loop during compilation.

kdelibs fails with -mtune=7450 and -O. I don't understand why compiling kdelibs causes a hard freeze with "-mtune=7450", are there differences between a single-processor 7450 and a dual-processor-7455 that would cause that?
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Fri Sep 22, 2006 8:55 pm    Post subject: Reply with quote

Try -O2. That setting seems to be the most stable and best performing optimizer setting on PPC. Here are my CFLAGS:
Code:
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"

_________________
--Aaron
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Sep 22, 2006 11:03 pm    Post subject: Reply with quote

=libquicktime-0.9.9 causes a hard lockup regardless of CFLAGS.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Sep 23, 2006 12:23 am    Post subject: Reply with quote

Does turning off DRI or Hardware Acceleration help with libquicktime locking up? Userspace apps shouldn't hard lock the machine. :(

Try adding
Code:
Option "NoAccel" "True"


To your Device section in Xorg.conf and see if that helps.

As for the -mlong-double-128 flag, it wasn't ever required to be enabled for glibc, but glibc couldn't be compiled with a compiler without support for this flag (gcc-3.4). The solution was to change gcc to 4.1 instead of adding the flag to your cflags. It shouldn't cause too much trouble, but I'd certainly leave it out of your flags as it definitely won't give you any benefit.

Edit:
Just saw your bug, I wasn't aware that you meant during compilation, sorry. :p
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Sep 23, 2006 2:21 am    Post subject: Reply with quote

I posted to bgo and did some more tests. Recently started using distcc and had not had any problem occur other than setting up cross-build environment and distcc configuration, until this.

Disabled distcc in make.conf and reduced MAKEOPTS to -j3. libquicktime-0.9.9 then compiled. If I then tried to emerge with enabled distcc, libquicktime would freeze during emerge but not lockup the machine. Oddly 0.9.9-r1, which has patches to use the newer version of x264-svn, and 0.9.7, had no problems regardless of CFLAGS or distcc or MAKEOPTS.

Transcode seems to have a similar problem. Dependency of k3b.

Edit: was typing this while you were looking at bugs.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon Sep 25, 2006 6:22 pm    Post subject: Reply with quote

Changing the kernel to the following settings
Code:
CONFIG_HZ_250=y
CONFIG_PREEMPT_NONE=y
solves the problem on my dual-processor(7455) ppc system. The lone exception is "-mtune=7450" and kdelibs. That still hard-locks when I try to compile.

"-mtune=7450" should include the 7455 cpu. I would like to know if anyone else has had a problem with this setting in CFLAGS.
I still don't know why there would be a problem and am most curious.
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