Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 342319

Summary: Compilation of x11-libs/cairo-1.10.0-r3 failed
Product: Gentoo/Alt Reporter: Konstantin Tokarev <annulen>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log

Description Konstantin Tokarev 2010-10-23 14:20:06 UTC
Compilation of x11-libs/cairo-1.10.0-r3 failed on OS X beacuse of missing symbols ___umodti3, ___udivti3, and ___multi3
Comment 1 Fabian Groffen gentoo-dev 2010-10-23 14:21:52 UTC
please try the following:
- if you have -O2, replace it with -O3
- if you have -mtune/-mcpu flags, drop them
- if you have other flags, drop them in isolation
Comment 2 Konstantin Tokarev 2010-10-23 14:22:30 UTC
Created attachment 251699 [details]
Build log
Comment 3 Konstantin Tokarev 2010-10-23 16:00:45 UTC
It helped, thanks! However, previous version cairo-1.8.10 build fine with my CFLAGS (-O2 -pipe -mcpu=G5 -mtune=G5)
Comment 4 Fabian Groffen gentoo-dev 2010-10-23 16:04:55 UTC
which combination helped?  switching to -O3?
Comment 5 Konstantin Tokarev 2010-10-23 16:11:01 UTC
Hm.. I've thought you mean to these all at once :)
I've succeeded with CFLAGS="-O3" (without any march or mtune)
-O3 with -march=G5 and -mtune=G5 failed compiler test
Comment 6 Konstantin Tokarev 2010-10-23 16:12:22 UTC
CFLAGS="-O3 -pipe -mtune=G5"  works fine
Comment 7 Konstantin Tokarev 2010-10-24 12:35:59 UTC
I've made a mistake - used -march instead of -mcpu. However, CFLAGS="-O3 -pipe -mcpu=G5 -mtune=G5" fails with the same error as was originally reported

CFLAGS="-O3 -pipe -maltivec -mtune=G5" - works
CFLAGS="-O3 -pipe -mpowerpc-gpopt -mtune=G5" - works
CFLAGS="-O3 -pipe -mpowerpc-gfxopt -mtune=G5" - works
CFLAGS="-O3 -pipe -mmfcrf -mtune=G5" - works
CFLAGS="-O3 -pipe -mstring -mtune=G5"  - works
CFLAGS="-O3 -pipe -mmultiple -mtune=G5" - works

I don't know what else may be enabled by mcpu=G5
Comment 8 Fabian Groffen gentoo-dev 2010-10-24 20:07:34 UTC
I filtered -mcpu in the ebuild