#49745: reduce-cal build failure under OS X 10.10.5 (Yosemite) ----------------------------+-------------------------------- Reporter: zanderpower@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: reduce-csl | ----------------------------+-------------------------------- Comment (by mark.brethen@…): Replying to [comment:3 ryandesign@…]:
The log you attached is filled with examples of `MACOSX_DEPLOYMENT_TARGET` being set to `10.9` before some compile commands but not others, hence the error message you observed. There is no reason for the build system to set this variable. This should be removed from the build system. Let MacPorts dictate what deployment target to use and everything should be fine. Looks like there are 4 separate configure scripts from which this should be removed. [[BR]] The developer added LC_VERSION_MIN_MACOSX directives when Mavericks was released. I think it had something to do with a path change to the SDK, but I don't remember the specifics. The XCode 7 linker seems to expect that LC_VERSION_MIN_MACOSX contains the minimum version number of the MacOS X SDK (10.9, 10.11, ...), NOT the Darwin kernel version number! See LLVM bug 24927: https://llvm.org/bugs/show_bug.cgi?id=24927. The only new thing with the Xcode 7 linker is that it is now reporting a warning for the version mismatch.
A fix was suggested at the link above: {{{ #if defined(OSX) #if (LLVM_VERSION_MAJOR < 3) || ((LLVM_VERSION_MAJOR == 3) && (LLVM_VERSION_MINOR < 8)) triple = Triple(triple.getArchName(), triple.getVendorName(), "darwin", triple.getEnvironmentName()); #endif #endif }}} This prevents the LC_VERSION_MIN_MACOSX directives from being emitted into the LLVM generated object files. -- Ticket URL: <https://trac.macports.org/ticket/49745#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X