Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

64-bit Generic Linux Haskell Platform doesn't warn when run on unsupported (32 bit) system #215

Open
@nrnrnr

Description

@nrnrnr

I run a 32-bit Debian Linux system with a 64-bit kernel and some 64-bit packages (using Debian multiarch support). The only available current Haskell Platform I could find was the 64-bit Generic version. I installed it without much complaint (it wanted root permission which I refused to grant; see #212), but after installation it won't run:

: nr@homedog 18544 ; ghci
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
<command line>: can't load .so/.DLL for: /usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgmp.so (/usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/libgmp.so: wrong ELF class: ELFCLASS32)

Running GHC fails with even more interesting error messages:

/tmp/ghc13484_0/ghc_1.s: Assembler messages:

/tmp/ghc13484_0/ghc_1.s:23:0:  Error: bad register name `%rbp)'

/tmp/ghc13484_0/ghc_1.s:24:0:  Error: bad register name `%r15'

/tmp/ghc13484_0/ghc_1.s:27:0:  Error: bad register name `%rbp)'

I didn't really expect it to run, but for the Haskell Platform audience I think a little more sanity checking would be helpful---it would be best if at install time, one of the shell scripts could detect that the host machine is missing critical libraries and doesn't support the expected target instruction set.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions