[GHC] #10221: LLVM does not work on OSX

GHC ghc-devs at haskell.org
Mon Mar 30 22:54:33 UTC 2015


#10221: LLVM does not work on OSX
-------------------------------------+-------------------------------------
        Reporter:  yongqli           |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler (LLVM)   |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  MacOS X           |            Architecture:
 Type of failure:  Other             |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by yongqli):

 {{{
  % cabal build -v2
 Using a sandbox located at /Users/yongqli/Documents/ghctestcase/.cabal-
 sandbox
 Reading available packages...
 Reading installed packages...
 /Applications/ghc-7.10.1.app/Contents/bin/ghc-pkg dump '--package-
 db=/Users/yongqli/Documents/ghctestcase/.cabal-sandbox/x86_64-osx-
 ghc-7.10.1-packages.conf.d' -v0
 /Applications/ghc-7.10.1.app/Contents/bin/ghc --print-libdir
 Found no modified add-source deps.
 Component build order: executable 'ModelTest'
 creating dist/build
 creating dist/build/autogen
 Building mlmodel-0.1.0.0...
 /Applications/ghc-7.10.1.app/Contents/bin/ghc-pkg init
 dist/package.conf.inplace
 Preprocessing executable 'ModelTest' for mlmodel-0.1.0.0...
 Building executable ModelTest...
 creating dist/build/ModelTest
 creating dist/build/ModelTest/ModelTest-tmp
 /Applications/ghc-7.10.1.app/Contents/bin/ghc --make -no-link -fbuilding-
 cabal-package -O -j8 -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi
 -outputdir dist/build/ModelTest/ModelTest-tmp -odir dist/build/ModelTest
 /ModelTest-tmp -hidir dist/build/ModelTest/ModelTest-tmp -stubdir
 dist/build/ModelTest/ModelTest-tmp -i -idist/build/ModelTest/ModelTest-tmp
 -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/ModelTest
 /ModelTest-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -hide-
 all-packages -no-user-package-db -package-db
 /Users/yongqli/Documents/ghctestcase/.cabal-sandbox/x86_64-osx-
 ghc-7.10.1-packages.conf.d -package-db dist/package.conf.inplace -package-
 id base-4.8.0.0-9015e10d2b2b0f71f570c3f2bbe09c8a -package-id
 linear-1.18.0.1-cbd55feca9eb96b48a763e434624a836 -package-id
 mtl-2.2.1-9986828fc95bc8459870303efaabd81e -package-id
 vector-0.10.12.3-46b824313b7a6e427d3957d73978f382 -package-id vector-th-
 unbox-0.2.1.2-103bf73b42f980755b23fd8b8b31c5b4 -XHaskell2010 -XArrows
 -XBangPatterns -XConstraintKinds -XEmptyDataDecls -XFlexibleContexts
 -XFlexibleInstances -XFunctionalDependencies -XGADTs
 -XGeneralizedNewtypeDeriving -XMultiParamTypeClasses -XRankNTypes
 -XScopedTypeVariables -XTemplateHaskell -XTypeFamilies -XTypeOperators
 src/Main.hs -O1 -rtsopts -threaded -fllvm -feager-blackholing
 [1 of 3] Compiling Stats.Types      ( src/Stats/Types.hs,
 dist/build/ModelTest/ModelTest-tmp/Stats/Types.o )

 /var/folders/vg/650_vlys0sv_dkzdclr2_68r0000gn/T/ghc21346_0/ghc21346_6.s:3:2:
      error: unknown directive
             .macosx_version_min 10, 0
             ^

 <no location info>:
     Error running clang! you need clang installed to use theLLVM backend
     (or GHC tried to execute clang incorrectly)

 <no location info>:
     ghc: phase `Clang (Assembler)' failed (exitcode = 1)

 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10221#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list