Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342319 - Compilation of x11-libs/cairo-1.10.0-r3 failed
Summary: Compilation of x11-libs/cairo-1.10.0-r3 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 14:20 UTC by Konstantin Tokarev
Modified: 2010-10-24 20:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,128.04 KB, text/plain)
2010-10-23 14:22 UTC, Konstantin Tokarev
Details

Note You need to log in before you can comment on or make changes to this bug.
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