[GHC] #9302: relocation R_X86_64_PC32 against undefined symbol (from Data.Array.Parallel) while building GHC in quickest flavour
GHC
ghc-devs at haskell.org
Tue Jul 22 07:02:21 UTC 2014
#9302: relocation R_X86_64_PC32 against undefined symbol (from
Data.Array.Parallel) while building GHC in quickest flavour
-------------------------------------+-------------------------------------
Reporter: | Owner:
ulysses4ever | Status: new
Type: bug | Milestone:
Priority: normal | Version:
Component: Build | Keywords:
System | Operating System: Linux
Resolution: | Type of failure: Building GHC
Differential Revisions: | failed
Architecture: | Test Case:
Unknown/Multiple | Blocking:
Difficulty: Unknown |
Blocked By: |
Related Tickets: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
I encountered this error also. The full build log (line breaks inserted
for readability):
{{{
===--- building final phase
make -r --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC
-dynamic -H64m -O0 -fasm -package-name dph-lifted-copy-0.8.0.1
-hide-all-packages -i
-ilibraries/dph/dph-lifted-copy/. -ilibraries/dph/dph-lifted-copy/dist-
install/build
-ilibraries/dph/dph-lifted-copy/dist-install/build/autogen
-Ilibraries/dph/dph-lifted-copy/dist-install/build
-Ilibraries/dph/dph-lifted-copy/dist-install/build/autogen
-Ilibraries/dph/dph-lifted-copy/. -optP-include
-optPlibraries/dph/dph-lifted-copy/dist-
install/build/autogen/cabal_macros.h
-package array-0.5.0.0 -package base-4.7.1.0 -package dph-base-0.8.0.1
-package dph-prim-par-0.8.0.1 -package ghc-7.9.20140721 -package
random-1.0.1.1 -package template-haskell-2.10.0.0 -package
vector-0.10.9.1 -Odph -funbox-strict-fields -fcpr-off
-fno-warn-orphans -fno-warn-missing-signatures -XHaskell98
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O0 -fasm -no-user-package-db -rtsopts
-odir libraries/dph/dph-lifted-copy/dist-install/build -hidir
libraries/dph/dph-lifted-copy/dist-install/build -stubdir
libraries/dph/dph-lifted-copy/dist-install/build
-optl-L'/home/rwbarton/ghc/compiler/stage2/build'
-optl-L'/home/rwbarton/ghc/libraries/transformers/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/template-haskell/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/hpc/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/hoopl/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/dph/dph-prim-par/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/old-time/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/dph/dph-prim-seq/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/dph/dph-prim-interface/dist-
install/build'
-optl-L'/home/rwbarton/ghc/libraries/dph/dph-base/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/vector/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/primitive/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/random/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/bin-package-db/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/binary/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/Cabal/Cabal/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/process/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/pretty/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/directory/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/unix/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/time/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/old-locale/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/filepath/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/containers/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/bytestring/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/deepseq/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/array/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/base/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/integer-gmp/dist-install/build'
-optl-L'/home/rwbarton/ghc/libraries/ghc-prim/dist-install/build'
-optl-L'/home/rwbarton/ghc/rts/dist/build' -optl-lrt -optl-lutil
-optl-ldl -optl-lpthread -optl-lgmp -optl-lm -optl-lrt -optl-ldl -fPIC
-dynamic -H64m -O0 -fasm -package-name dph-lifted-copy-0.8.0.1
-hide-all-packages -i
-ilibraries/dph/dph-lifted-copy/. -ilibraries/dph/dph-lifted-copy/dist-
install/build
-ilibraries/dph/dph-lifted-copy/dist-install/build/autogen
-Ilibraries/dph/dph-lifted-copy/dist-install/build
-Ilibraries/dph/dph-lifted-copy/dist-install/build/autogen
-Ilibraries/dph/dph-lifted-copy/. -optP-include
-optPlibraries/dph/dph-lifted-copy/dist-
install/build/autogen/cabal_macros.h
-package array-0.5.0.0 -package base-4.7.1.0 -package dph-base-0.8.0.1
-package dph-prim-par-0.8.0.1 -package ghc-7.9.20140721 -package
random-1.0.1.1 -package template-haskell-2.10.0.0 -package
vector-0.10.9.1 -Odph -funbox-strict-fields -fcpr-off
-fno-warn-orphans -fno-warn-missing-signatures -XHaskell98
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O0 -fasm -no-user-package-db -rtsopts
-fno-use-rpaths -optl-Wl,-rpath -optl-Wl,'$ORIGIN/../ghc-7.9.20140721'
-optl-Wl,-rpath -optl-Wl,'$ORIGIN/../transformers-0.4.1.0'
-optl-Wl,-rpath -optl-Wl,'$ORIGIN/../template-haskell-2.10.0.0'
-optl-Wl,-rpath -optl-Wl,'$ORIGIN/../hpc-0.6.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../hoopl-3.10.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../dph-prim-par-0.8.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../old-time-1.1.0.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../dph-prim-seq-0.8.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../dph-prim-interface-0.8.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../dph-base-0.8.0.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../vector-0.10.9.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../primitive-0.5.2.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../random-1.0.1.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../bin-package-db-0.0.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../binary-0.7.1.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../Cabal-1.21.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../process-1.2.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../pretty-1.1.1.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../directory-1.2.1.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../unix-2.7.0.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../time-1.4.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../old-locale-1.0.0.6' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../filepath-1.3.0.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../containers-0.5.5.1' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../bytestring-0.10.4.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../deepseq-1.3.0.2' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../array-0.5.0.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../base-4.7.1.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../integer-gmp-0.5.1.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../ghc-prim-0.3.1.0' -optl-Wl,-rpath
-optl-Wl,'$ORIGIN/../rts-1.0' -optl-Wl,-zorigin
libraries/dph/dph-lifted-copy/dist-install/build/Data/Array/Parallel.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/Closure.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/Combinators.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/PArray.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/Scalar.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/TH/Repr.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Lifted/Unboxed.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArr.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/Base.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/PData.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/PDataInstances.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/PRepr.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/PReprInstances.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/Scalar.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/ScalarInstances.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/PArray/Types.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Base.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Bool.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Double.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Float.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Int.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Tuple.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Word8.dyn_o
libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prim.dyn_o
-shared -dynamic -dynload deploy -no-auto-link-packages -o
libraries/dph/dph-lifted-copy/dist-install/build/libHSdph-lifted-
copy-0.8.0.1-ghc7.9.20140721.so
Warning: -rtsopts and -with-rtsopts have no effect with -shared.
Call hs_init_ghc() from your main() function to set these options.
/usr/bin/ld: libraries/dph/dph-lifted-copy/dist-
install/build/Data/Array/Parallel/Prelude/Bool.dyn_o: relocation
R_X86_64_PC32 against undefined symbol
`dphzmliftedzmcopyzm0zi8zi0zi1_DataziArrayziParallelziPreludeziBool_andPzuv_closure'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [libraries/dph/dph-lifted-copy/dist-install/build/libHSdph-
lifted-copy-0.8.0.1-ghc7.9.20140721.so] Error 1
make: *** [all] Error 2
}}}
I also got a similar error involving the symbol
`dphzmliftedzmvsegzm0zi8zi0zi1_DataziArrayziParallelziPreludeziDouble_productPP_closure`
previously.
I'm on commit 7aabfa6292c2469cf3250e006869273fb1b356ce and BuildFlavour =
quick succeeds.
I don't know what the net effect of the options `-O0 -Odph -O0 -O0 -Odph
-O0` is but this must have something to do with optimization settings and
the VECTORISE pragma.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9302#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list