Status and future of the LLVM backend

Joachim Breitner mail at joachim-breitner.de
Sun Dec 7 10:07:10 UTC 2014


Hi,


Am Samstag, den 06.12.2014, 16:19 +0100 schrieb Joachim Breitner:
> nevermind, I found
> https://ghc.haskell.org/trac/ghc/ticket/9552 and
> https://git.haskell.org/ghc.git/patch/2a8ea4745d6ff79d6ce17961a64d9013243fc3c6
> and will try with these.
> 
> Once I get it to compile I’ll give a complete list of patches that I had
> to backport, with the recommendation to include them in GHC 7.8.4.

and the build went further, I now have

        "inplace/bin/ghc-stage2" -o utils/haddock/dist/build/tmp/haddock
        -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC -dynamic  -H32m
        -O -lffi -optl-pthread    -hide-all-packages -i
        -iutils/haddock/driver -iutils/haddock/src
        -iutils/haddock/vendor/attoparsec-0.10.4.0
        -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen
        -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen
        -optP-DIN_GHC_TREE -optP-include
        -optPutils/haddock/dist/build/autogen/cabal_macros.h -package
        Cabal-1.18.1.3 -package array-0.5.0.0 -package base-4.7.0.2
        -package bytestring-0.10.4.0 -package containers-0.5.5.1
        -package deepseq-1.3.0.2 -package directory-1.2.1.0 -package
        filepath-1.3.0.2 -package ghc-7.8.3.20141119 -package
        xhtml-3000.2.1 -funbox-strict-fields -Wall -fwarn-tabs -O2
        -XHaskell2010  -no-user-package-db -rtsopts      -odir
        utils/haddock/dist/build -hidir utils/haddock/dist/build
        -stubdir utils/haddock/dist/build
        -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/xhtml/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/compiler/stage2/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/transformers/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/hpc/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/hoopl/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/bin-package-db/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/binary/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/Cabal/Cabal/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/process/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/pretty/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/directory/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/unix/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/time/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/old-locale/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/filepath/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/containers/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/bytestring/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/deepseq/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/array/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/base/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/integer-gmp/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/libraries/ghc-prim/dist-install/build' -optl-L'/home/nomeata/ghc-7.8.20141119/rts/dist/build' -optl-lrt -optl-lutil -optl-ldl -optl-lpthread -optl-lgmp -optl-lm -optl-lrt -optl-ldl -optl-lffi -fPIC -dynamic  -H32m -O -lffi -optl-pthread    -hide-all-packages -i -iutils/haddock/driver -iutils/haddock/src -iutils/haddock/vendor/attoparsec-0.10.4.0 -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen    -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/autogen/cabal_macros.h -package Cabal-1.18.1.3 -package array-0.5.0.0 -package base-4.7.0.2 -package bytestring-0.10.4.0 -package containers-0.5.5.1 -package deepseq-1.3.0.2 -package directory-1.2.1.0 -package filepath-1.3.0.2 -package ghc-7.8.3.20141119 -package xhtml-3000.2.1 -funbox-strict-fields -Wall -fwarn-tabs -O2 -XHaskell2010  -no-user-package-db -rtsopts      -fno-use-rpaths -optl-Wl,-rpath -optl-Wl,'$ORIGIN/../xhtml-3000.2.1' -optl-Wl,-rpath -optl-Wl,'$ORIGIN/../ghc-7.8.3.20141119' -optl-Wl,-rpath -optl-Wl,'$ORIGIN/../transformers-0.3.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/../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.18.1.3' -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.1' -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.0.2' -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 utils/haddock/dist/build/Main.dyn_o utils/haddock/dist/build/Documentation/Haddock.dyn_o utils/haddock/dist/build/Data/Attoparsec.dyn_o utils/haddock/dist/build/Data/Attoparsec/ByteString.dyn_o utils/haddock/dist/build/Data/Attoparsec/ByteString/Char8.dyn_o utils/haddock/dist/build/Data/Attoparsec/Combinator.dyn_o utils/haddock/dist/build/Data/Attoparsec/Number.dyn_o utils/haddock/dist/build/Data/Attoparsec/ByteString/FastSet.dyn_o utils/haddock/dist/build/Data/Attoparsec/ByteString/Internal.dyn_o utils/haddock/dist/build/Data/Attoparsec/Internal.dyn_o utils/haddock/dist/build/Data/Attoparsec/Internal/Types.dyn_o utils/haddock/dist/build/Haddock.dyn_o utils/haddock/dist/build/Haddock/Interface.dyn_o utils/haddock/dist/build/Haddock/Interface/Rename.dyn_o utils/haddock/dist/build/Haddock/Interface/Create.dyn_o utils/haddock/dist/build/Haddock/Interface/AttachInstances.dyn_o utils/haddock/dist/build/Haddock/Interface/LexParseRn.dyn_o utils/haddock/dist/build/Haddock/Interface/ParseModuleHeader.dyn_o utils/haddock/dist/build/Haddock/Parser.dyn_o utils/haddock/dist/build/Haddock/Parser/Util.dyn_o utils/haddock/dist/build/Haddock/Utf8.dyn_o utils/haddock/dist/build/Haddock/Utils.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Decl.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/DocMarkup.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Layout.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Names.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Themes.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Types.dyn_o utils/haddock/dist/build/Haddock/Backends/Xhtml/Utils.dyn_o utils/haddock/dist/build/Haddock/Backends/LaTeX.dyn_o utils/haddock/dist/build/Haddock/Backends/HaddockDB.dyn_o utils/haddock/dist/build/Haddock/Backends/Hoogle.dyn_o utils/haddock/dist/build/Haddock/ModuleTree.dyn_o utils/haddock/dist/build/Haddock/Types.dyn_o utils/haddock/dist/build/Haddock/Doc.dyn_o utils/haddock/dist/build/Haddock/Version.dyn_o utils/haddock/dist/build/Haddock/InterfaceFile.dyn_o utils/haddock/dist/build/Haddock/Options.dyn_o utils/haddock/dist/build/Haddock/GhcUtils.dyn_o utils/haddock/dist/build/Haddock/Convert.dyn_o utils/haddock/dist/build/Paths_haddock.dyn_o    
        /home/nomeata/ghc-7.8.20141119/compiler/stage2/build/libHSghc-7.8.3.20141119-ghc7.8.3.20141119.so: error: undefined reference to 'arm_atomic_spin_lock'
        /home/nomeata/ghc-7.8.20141119/compiler/stage2/build/libHSghc-7.8.3.20141119-ghc7.8.3.20141119.so: error: undefined reference to 'arm_atomic_spin_unlock'
        collect2: error: ld returned 1 exit status
        utils/haddock/ghc.mk:15: recipe for target
        'utils/haddock/dist/build/tmp/haddock' failed
        make[2]: *** [utils/haddock/dist/build/tmp/haddock] Error 1

Again Google finds me a bug, but this time one that has no fix
associated with it:
https://ghc.haskell.org/trac/ghc/ticket/8951

Ben, can you help me out here?

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20141207/d478d11c/attachment-0001.sig>


More information about the ghc-devs mailing list