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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 8 11:03:26 PST 2012


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

             Bug #: 44584
           Summary: Build fails with Apple's llvm-gcc-4.2
    Classification: Unclassified
           Product: cairo
           Version: 1.10.3
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: jralls at ceridwen.us
         QAContact: cairo-bugs at cairographics.org


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"

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. 

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