Skip to content

LLVM enabled build fails on i386-solaris.

Hello, while attempting to build LLVM-based build of GHC HEAD on i386-solaris2 with LLVM 2.9 tools, I've got following failure:

gmake -r --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage1" -static  -H64m -O0 -fllvm    -package-name base-4.7.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base/dist-install/build -ilibraries/base/dist-install/build/autogen -Ilibraries/base/dist-install/build -Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include   -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include -optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.3.1.0 -package integer-gmp-0.5.1.0 -package rts-1.0  -package-name base -XHaskell98 -XCPP -O -fllvm  -no-user-package-db -rtsopts      -odir libraries/base/dist-install/build -hidir libraries/base/dist-install/build -stubdir libraries/base/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c libraries/base/./GHC/Word.hs -o libraries/base/dist-install/build/GHC/Word.o
/opt/llvm-2.9/bin/opt: /tmp/ghc19689_0/ghc19689_0.ll:19141:62: error: argument is not of expected type 'i64'
  %lnglA = call ccc i32 (i64,i64)* @hs_eqWord64( i64 %lnglz, i32 0 ) nounwind
                                                             ^
gmake[1]: *** [libraries/base/dist-install/build/GHC/Word.o] Error 1
gmake: *** [all] Error 2

I'm just testing LLVM-based build on 32bit solaris to see if there is a chance to complete LLVM-based build on a slower 32bit ARM board...

For LLVM-based build I used simple:

BuildFlavour = quick-llvm

in mk/build.mk

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (LLVM)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information