
#8910: cross compiling for x86_64 solaris2 -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: task | Status: infoneeded Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Differential Revisions: | Operating System: Solaris Architecture: x86_64 | Type of failure: Runtime crash (amd64) | Test Case: Difficulty: Unknown | Blocking: Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by maeder): Ok, I've tried again as follows: {{{ git clone git://git.haskell.org/ghc.git cd ghc ./sync-all --no-dph get ## did not work as expected! rm -rf libraries/dph/ echo "INTEGER_LIBRARY = integer-simple" > mk/build.mk perl boot ./configure --target=x86_64-pc-solaris2 --with-ld=/usr/ccs/bin/ld --with- nm=/usr/ccs/bin/nm --with-ar=/usr/ccs/bin/ar --with- ranlib=/usr/ccs/bin/ranlib --prefix=/local/home/maeder/haskell/ghc-7.9-x64 gmake gmake install }}} After setting some additional links: {{{ -bash-3.2$ ls -l /local/home/maeder/haskell/ghc-7.9-x64/bin Gesamt 127 lrwxrwxrwx 1 maeder wimi 35 Jul 15 16:08 ghc -> x86_64-pc- solaris2-ghc-7.9.20140715 lrwxrwxrwx 1 maeder wimi 35 Jul 15 16:09 ghc-7.9.20140715 -> x86_64-pc-solaris2-ghc-7.9.20140715 lrwxrwxrwx 1 maeder wimi 39 Jul 15 16:09 ghc-pkg -> x86_64 -pc-solaris2-ghc-pkg-7.9.20140715 lrwxrwxrwx 1 maeder wimi 39 Jul 15 16:10 ghc-pkg-7.9.20140715 -> x86_64-pc-solaris2-ghc-pkg-7.9.20140715 lrwxrwxrwx 1 maeder wimi 17 Jul 15 16:02 ghci -> ghci-7.9.20140715 -rwxr-xr-x 1 maeder wimi 103 Jul 15 16:02 ghci-7.9.20140715 lrwxrwxrwx 1 maeder wimi 24 Jul 15 16:02 haddock -> haddock- ghc-7.9.20140715 lrwxrwxrwx 1 maeder wimi 25 Jul 15 16:10 hsc2hs -> x86_64-pc- solaris2-hsc2hs lrwxrwxrwx 1 maeder wimi 19 Jul 15 16:02 runghc -> runghc-7.9.20140715 lrwxrwxrwx 1 maeder wimi 6 Jul 15 16:02 runhaskell -> runghc lrwxrwxrwx 1 maeder wimi 35 Jul 15 16:02 x86_64-pc- solaris2-ghc -> x86_64-pc-solaris2-ghc-7.9.20140715 -rwxr-xr-x 1 maeder wimi 428 Jul 15 16:02 x86_64-pc- solaris2-ghc-7.9.20140715 lrwxrwxrwx 1 maeder wimi 39 Jul 15 16:02 x86_64-pc-solaris2 -ghc-pkg -> x86_64-pc-solaris2-ghc-pkg-7.9.20140715 -rwxr-xr-x 1 maeder wimi 460 Jul 15 16:02 x86_64-pc-solaris2 -ghc-pkg-7.9.20140715 -rwxr-xr-x 1 maeder wimi 419 Jul 15 16:02 x86_64-pc-solaris2 -haddock-ghc-7.9.20140715 -rwxr-xr-x 1 maeder wimi 50192 Jul 15 16:04 x86_64-pc- solaris2-hp2ps -rwxr-xr-x 1 maeder wimi 390 Jul 15 16:02 x86_64-pc- solaris2-hpc -rwxr-xr-x 1 maeder wimi 1169 Jul 15 16:02 x86_64-pc- solaris2-hsc2hs -rwxr-xr-x 1 maeder wimi 411 Jul 15 16:02 x86_64-pc- solaris2-runghc-7.9.20140715 }}} The 64Bit compiler was usable (and fully dynamically linked): {{{ -bash-3.2$ ghc --info [("Project name","The Glorious Glasgow Haskell Compilation System") ,("GCC extra via C opts"," -fwrapv") ,("C compiler command","/local/home/maeder/haskell/ghc64bin/gcc") ,("C compiler flags"," -fno-stack-protector") ,("C compiler link flags","") ,("Haskell CPP command","/local/home/maeder/haskell/ghc64bin/gcc") ,("Haskell CPP flags","-E -undef -traditional ") ,("ld command","/usr/ccs/bin/ld") ,("ld flags","") ,("ld supports compact unwind","NO") ,("ld supports build-id","NO") ,("ld supports filelist","NO") ,("ld is GNU ld","NO") ,("ar command","/usr/ccs/bin/ar") ,("ar flags","clqs") ,("ar supports at file","no") ,("touch command","touch") ,("dllwrap command","/bin/false") ,("windres command","/bin/false") ,("libtool command","libtool") ,("perl command","/usr/bin/perl") ,("target os","OSSolaris2") ,("target arch","ArchX86_64") ,("target word size","8") ,("target has GNU nonexec stack","True") ,("target has .ident directive","True") ,("target has subsections via symbols","False") ,("Unregisterised","NO") ,("LLVM llc command","llc") ,("LLVM opt command","opt") ,("Project version","7.9.20140715") ,("Booter version","7.8.2") ,("Stage","2") ,("Build platform","i386-unknown-solaris2") ,("Host platform","x86_64-unknown-solaris2") ,("Target platform","x86_64-unknown-solaris2") ,("Have interpreter","YES") ,("Object splitting supported","YES") ,("Have native code generator","YES") ,("Support SMP","YES") ,("Tables next to code","YES") ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn") ,("Support dynamic-too","YES") ,("Support parallel --make","YES") ,("Dynamic by default","NO") ,("GHC Dynamic","YES") ,("Leading underscore","NO") ,("Debug on","False") ,("LibDir","/local/home/maeder/haskell/ghc-7.9-x64/lib/x86_64-pc- solaris2-ghc-7.9.20140715") ,("Global Package DB","/local/home/maeder/haskell/ghc-7.9-x64/lib/x86_64 -pc-solaris2-ghc-7.9.20140715/package.conf.d") ] }}} With this compiler I tried to bootstrap from scratch: {{{ git clone git://git.haskell.org/ghc.git cd ghc ./sync-all perl boot ./configure --enable-bootstrap-with-devel-snapshot gmake }}} However, this step failed again with a core dump that is already described in comment:2: {{{ "inplace/bin/genprimopcode" --data-decl < compiler/stage1/build/primops.txt > compiler/stage1/build/primop-data-decl .hs-incl /bin/bash: line 1: 17544 Segmentierungsfehler (core dumped) "inplace/bin/genprimopcode" --data-decl < compiler/stage1/build/primops.txt > compiler/stage1/build/primop-data-decl .hs-incl }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8910#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler