#43289: OSX Mavericks upgrade causes darcs build to fail --------------------------+-------------------------------- Reporter: rene.sugar@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: xcode | Port: darcs --------------------------+-------------------------------- An upgrade to OS X Mavericks causes build of darcs to fail. This problem also causes several other Haskell components to fail to build. You get an error about not being able to find <sys/cdefs.h>. The solution is to reinstall the XCode command-line tools. http://stackoverflow.com/questions/19649421/something-odd-happened-to-c-11 -in-mavericks “OSX Mavericks upgrade will wipe out a number of XCode installation directories. In order to restore them, you need to reinstall the XCode command-line tools. xcode-select --install” “Problem Hotlist” could mention “xcode-select —install” solution or “port” could check if "/usr/include/sys/cdefs.h" is not found on OS X Mavericks and remind user to reinstall XCode command-line tools. Portion of build log showing the error: {{{ :info:build [ 1 of 183] Compiling URL.Request ( src/URL/Request.hs, dist/build/URL/Request.p_o ) :info:build :info:build In file included from /opt/local/lib/ghc-7.6.3/include/Stg.h:65:0: :info:build 0, :info:build from /opt/local/lib/ghc-7.6.3/include/Rts.h:30, :info:build from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/.tmp/ghc70426_0/ghc70426_0.c:2: :info:build :info:build /opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.2/include- fixed/math.h:45:23: :info:build fatal error: sys/cdefs.h: No such file or directory :info:build #include <sys/cdefs.h> :info:build ^ :info:build compilation terminated. :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_darcs/darcs/work/darcs-2.8.4" && runhaskell Setup build -v :info:build Exit code: 1 :error:build org.macports.build for port darcs returned: command execution failed :debug:build Error code: CHILDSTATUS 70047 1 :debug:build Backtrace: command execution failed }}} -- Ticket URL: <https://trac.macports.org/ticket/43289> MacPorts <http://www.macports.org/> Ports system for OS X