#32811: cairo @1.10.2_4+no_x11 fails building -----------------------------------+---------------------------------------- Reporter: jerkejacobs@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cairo -----------------------------------+---------------------------------------- Comment(by raimue@…): When upgrading from Xcode <4.2 the App Store installer does not remove old files. Thus, `/usr/bin/gcc-4.2` will exist for many users. We cannot tell which older version of Xcode was installed before the update. The Xcode installer from the App Store does not populate the receipt database (which would have been useful for stuff like `pkg-util --file-info`). This file might as well be from an ancient version such as Xcode 3.x -- imagine a user just upgrading from Snow Leopard. The reason to disable both llvm-gcc-4.2 and clang in cairo was #31469, where build problems were encountered. I was able to build cairo using clang (although `port test` fails, but so does it with gcc-4.2). Building with llvm-gcc-4.2 would probably work when removing `-flto` from the LDFLAGS with a patch for the configure script or in post-configure with a reinplace for the Makefile. {{{ $ xcodebuild -version Xcode 4.2.1 Build version 4D502 }}} -- Ticket URL: <https://trac.macports.org/ticket/32811#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS