Opened 5 years ago

Closed 5 years ago

#9602 closed bug (duplicate)

compiling arithmoi with llvm 3.5.0 generates an LLVM compilation error

Reported by: ryantm Owned by:
Priority: low Milestone:
Component: Compiler (LLVM) Version: 7.8.3
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: GHC rejects valid program Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

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

Change History (2)

comment:1 Changed 5 years ago by ryantm

Summary: compiling arithmoi with llvm 3.5.0-2.1 generates an LLVM compilation errorcompiling arithmoi with llvm 3.5.0 generates an LLVM compilation error

comment:2 Changed 5 years ago by rwbarton

Resolution: duplicate
Status: newclosed

Thanks for the report. We have a ticket for this already, #9142. I'll prod it a bit.

For arithmoi in particular, you can build it with the cabal flag -fno-llvm.

Note: See TracTickets for help on using tickets.