[GHC] #9602: compiling arithmoi with llvm 3.5.0-2.1 generates an LLVM compilation error

GHC ghc-devs at haskell.org
Wed Sep 17 15:01:50 UTC 2014


#9602: compiling arithmoi with llvm 3.5.0-2.1 generates an LLVM compilation error
-------------------------------------+-------------------------------------
       Reporter:  ryantm             |                   Owner:
           Type:  bug                |                  Status:  new
       Priority:  low                |               Milestone:
      Component:  Compiler (LLVM)    |                 Version:  7.8.3
       Keywords:                     |        Operating System:  Linux
   Architecture:  x86_64 (amd64)     |         Type of failure:  GHC
     Difficulty:  Unknown            |  rejects valid program
     Blocked By:                     |               Test Case:
Related Tickets:                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
 Hello.

 I know llvm 3.5.0 is not supported by GHC, but I thought it might be nice
 to have a report of a problem with it for the time when someone wants to
 start supporting it. I'm sorry if this is not a bug with GHC.

 I tried to compile arithmoi-0.4.1.1 via cabal install and here is the
 output received:

 {{{
 $ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.8.3

 $ cabal --version
 cabal-install version 1.20.0.3
 using version 1.20.0.1 of the Cabal library

 $ uname -a
 Linux hostname 3.16.1-1-ARCH #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014
 x86_64 GNU/Linux

 $ pacman -Q llvm
 llvm 3.5.0-2.1

 $ cabal install arithmoi-0.4.1.1
 Resolving dependencies...
 Configuring arithmoi-0.4.1.1...
 Building arithmoi-0.4.1.1...
 Preprocessing library arithmoi-0.4.1.1...
 [ 1 of 34] Compiling Math.NumberTheory.Primes.Sieve.Indexing (
 Math/NumberTheory/Primes/Sieve/Indexing.hs, dist/dist-sandbox-
 f1ff1bf8/build/Math/NumberTheory/Primes/Sieve/Indexing.o )
 You are using a new version of LLVM that hasn't been tested yet!
 We will try though...
 Alias must point to a definition
 i8* @"integerzmgmp_GHCziIntegerziType_Szh_static_info$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTypes_Izh_static_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziReal_zdp1Integral_info$alias"
 Alias must point to a definition
 i8* @"stg_upd_frame_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziReal_zdp1Real_info$alias"
 Alias must point to a definition
 i8* @"stg_ap_p_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziNum_fromInteger_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziReal_toInteger_info$alias"
 Alias must point to a definition
 i8* @"integerzmgmp_GHCziIntegerziType_integerToInt_info$alias"
 Alias must point to a definition
 i8* @"stg_ap_0_fast$alias"
 Alias must point to a definition
 i8* @"stg_ap_pp_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziNum_zm_info$alias"
 Alias must point to a definition
 i8* @"stg_gc_unbx_r1$alias"
 Alias must point to a definition
 i8* @"base_GHCziReal_quotRem_info$alias"
 Alias must point to a definition
 i8* @"stg_sel_1_upd_info$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTypes_Izh_con_info$alias"
 Alias must point to a definition
 i8* @"stg_sel_0_upd_info$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTuple_Z2T_con_info$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTypes_ZC_static_info$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTypes_ZMZN_closure$alias"
 Alias must point to a definition
 i8* @"ghczmprim_GHCziTuple_Z0T_closure$alias"
 Alias must point to a definition
 i8* @"stg_newByteArrayzh$alias"
 Alias must point to a definition
 i8* @"stg_gc_unpt_r1$alias"
 Alias must point to a definition
 i8* @"arrayzm0zi5zi0zi0_DataziArrayziBase_UArray_con_info$alias"
 Alias must point to a definition
 i8* @"newCAF$alias"
 Alias must point to a definition
 i8* @"stg_bh_upd_frame_info$alias"
 Alias must point to a definition
 i8* @"base_GHCziST_runSTRep_info$alias"
 Alias must point to a definition
 i8* @"integerzmgmp_GHCziIntegerziType_smallInteger_info$alias"
 Alias must point to a definition
 i8* @"stg_ap_p_fast$alias"
 Alias must point to a definition
 i8* @"stg_ap_pp_fast$alias"
 LLVM ERROR: Broken module found, compilation aborted!
 Failed to install arithmoi-0.4.1.1
 cabal: Error: some packages failed to install:
 arithmoi-0.4.1.1 failed during the building phase. The exception was:
 ExitFailure 1
 }}}

 Ryan

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


More information about the ghc-tickets mailing list