[cairo-bugs] [Bug 44584] Build fails with Apple's llvm-gcc-4.2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 9 03:39:47 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=44584

Andrea Canciani <ranma42 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Andrea Canciani <ranma42 at gmail.com> 2012-01-09 03:39:47 PST ---
(In reply to comment #0)
> llvm-gcc-4.2 will fail to build cairo with the error message
> 
> "ld: lto: could not merge in .libs/cairo-analysis-surface.o because Unknown
> instruction for architecture i386"

Can you provide the environment you're using and/or the config.log?

In my environment configure correctly detects that -flto does not result in a
usable binary:
http://ranma42.dyndns.info:8010/builders/full-macosx/builds/30/steps/configure/logs/stdio

> 
> This is caused by the '-flto' CFLAG telling llvm to produce bitcode instead of
> mach-o object files, but llvm under libtool will not link its bitcode files. 

The configure script should automatically detect if the -flto flag works.

> 
> Note that as of Xcode 4.2 Apple is no longer distributing gcc, so using llvm is
> necessary to build on the most recent releases of OSX.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the cairo-bugs mailing list