
#8210: Make fails for Building a GHC cross-compiler for Apple iOS target (i386 -apple-darwin11) ----------------------------------------+---------------------------------- Reporter: alen_ribic | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+---------------------------------- Comment (by alen_ribic): Currently, in the instructions, there is an indication to checkout the latest Cabal/cabal-install (it has the latest required patch). I built and installed the latest Cabal package and it is listed under ghc- pkg. Then I ran `bootstrap.sh` from cabal-install directory but got this error: {{{ Checking installed packages for ghc-7.7.20130831... Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl-2.1.2 will be downloaded and installed. deepseq is already installed and the version is ok. text-0.11.3.1 will be downloaded and installed. parsec-3.1.3 will be downloaded and installed. network-2.4.1.2 will be downloaded and installed. time is already installed and the version is ok. HTTP-4000.2.8 will be downloaded and installed. zlib-0.5.4.1 will be downloaded and installed. random-1.0.1.1 will be downloaded and installed. stm-2.4.2 will be downloaded and installed. Downloading mtl-2.1.2... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13723 100 13723 0 0 8526 0 0:00:01 0:00:01 --:--:-- 11165 [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup.a ... <no location info>: Warning: Couldn't figure out linker information! Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc. ld: warning: could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _ZCMain_main_info from Setup.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie Setup: No cabal file found. Please create a package description file <pkgname>.cabal Error during cabal-install bootstrap: Configuring the mtl package failed }}} Environment variables I set for `bootstrap.sh` where: GHC=i386-apple-darwin11-ghc GHC_PKG=i386-apple-darwin11-ghc-pkg Any ideas as to what might be causing this to happen? -Al -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8210#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler