[GHC] #15623: Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power)

#15623: Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power) -------------------------------------+------------------------------------- Reporter: | Owner: (none) francescantoncastro | Type: bug | Status: new Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Linux Architecture: powerpc64 | Type of failure: Building GHC | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I tried to compile ghc-8.0.1 from source using the powerpc64/unknown linux .tar.xz file (since the other file was for AIX). The ghc-pwd and ghc-cabal files won't execute even after stripping them with strip. The libraries included are Big Endian instead of Little Endian. I replaced the libffi library by the local one on my system (IBM Power8 with redhatenterpriseserver). ghc complains there is no cabal file after naming a symlink to cabal (on /bin) ghc-cabal (instead of the faulty ghc-cabal file). See attached file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15623 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15623: Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power) ----------------------------------------+--------------------------------- Reporter: francescantoncastro | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+--------------------------------- Changes (by francescantoncastro): * Attachment "compilingghc8.0.1onpowerpc64le" added. shell commands -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15623 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15623: Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power) ----------------------------------------+--------------------------------- Reporter: francescantoncastro | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+--------------------------------- Comment (by flip101): Hi francescantoncastro, is this problem important for you now? What about using an older GHC version for your project as a temporary solution? The powerpc64 is a tier2 platform which is low priority according to platforms page https://ghc.haskell.org/trac/ghc/wiki/Platforms#Tier2platforms It wouldn't be good to let this bug block the 8.6.1 release which was suppose to come out last august according to the project page https://ghc.haskell.org/trac/ghc/wiki/Status/GHC-8.6.1 Maybe the milestone can be moved to a later GHC version or bug priority set to low/lowest. What do you think? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15623#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15623: Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power) ----------------------------------------+--------------------------------- Reporter: francescantoncastro | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.6.1 Component: Compiler | Version: 8.0.1 Resolution: invalid | Keywords: Operating System: Linux | Architecture: powerpc64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+--------------------------------- Changes (by trommler): * status: new => closed * resolution: => invalid Comment: Are you sure your machine is running in little endian mode? In the configure script `compilingghc8.0.1onpowerpc64le` it is detected as powerpc64 which is big endian. The bindist you downloaded is for big endian systems there is no bindist for powerpc64le available on the GHC site. I prepared a powerpc64le bindist for GHC 8.2.1 for openSUSE. You can find it here: https://build.opensuse.org/package/show/devel:languages:haskell/ghc- bootstrap If you are looking for a newer GHC (8.2.1 cannot be used to bootstrap 8.6.1) you can find a GHC 8.4.3 bindist for powerpc64le temporarily here: https://build.opensuse.org/package/show/home:ptrommler:branches:devel:langua... /ghc-bootstrap Hope that helps. I'll close the ticket as invalid for now. Please reopen if it still doesn't work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15623#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC