$ | >

The Glorious Glasgow Haskell Compilation System, also known as GHC, does not work.

apt-get install ghc fails here:

Setting up ghc (7.6.3-10) ...
ghc: timer_create: Invalid argument
update-alternatives: using /usr/bin/ghc to provide /usr/bin/haskell-compiler (haskell-compiler) in auto mode
ghc-pkg: timer_create: Invalid argument
dpkg: error processing package ghc (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
dmesg: klogctl failed: Invalid argument
/bin/df: cannot read table of mounted file systems: No such file or directory
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

530 votes
Sign in
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Aaron Friel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


    Sign in
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      • Tom commented  ·   ·  Flag as inappropriate

        When might this be released in the updates non-insiders get?

      • Dale Phurrough commented  ·   ·  Flag as inappropriate

        this failure is beyond Haskell. I encounter it using some cryptography tools in the apt-get repros with no workaround other than using a real *nix machine.

      • Carl Patenaude Poulin commented  ·   ·  Flag as inappropriate

        This affects not only GHC, but all binaries compiled with it (including Pandoc, etc.). Can you please update the title of this submission accordingly?

      • Michal commented  ·   ·  Flag as inappropriate

        Shellcheck fails in W10 with that error as well:

        > shellcheck
        shellcheck: timer_create: Function not implemented

      • walter commented  ·   ·  Flag as inappropriate

        Video related stuff!

        To playback video files at the correct timestamp speed from Windows 10 WSL to a ip-based video mixer "dvswitch" running on real linux host this timer feature is crucial and missing!


        By using the following instructions to compile and run "dvswitch / dvpause" or its components on Windows 10 WSL the following timer based errors appear(replace ffmpeg with libav-tools if using ubuntu 14.04 in W10 WSL).

        dvsource-file -l examplevideo.dv -p 1234 -h
        INFO: Reading from examplevideo.dv
        INFO: Connecting to
        INFO: Connected.
        FATAL: timer_create: Function not implemented

        Recording in Windows 10 WSL with "dvsink-files videoname.dv -p 1234 -h ipaddress" from dvswitch running on a real ubuntu 16.04 linux machine is already working!

        On the otherhand Mac OS X Snow Leopard and El Capitan can also record files using "dvsink-files" when compiled with the help of BREW. But dvsource-file and other components of dvswitch/dvpause won't even compile on OS X complaining some time/timer functions doesn't match the BSD/mach kernel equivallent...

      • Christopher Armstrong commented  ·   ·  Flag as inappropriate

        I dunno if titles can be edited, but you might want to add "so that GHC-compiled Haskell programs can work" or something, so it's clear how wide of a scope this has.

      • Rikuo Hasegawa commented  ·   ·  Flag as inappropriate

        The fact that this affects haskell affects quite a lot of things, including Pandoc and Elm-lang which are written using haskell.

      • Kyle Larsen commented  ·   ·  Flag as inappropriate

        This issue is also encountered when trying to run stack (which installs successfully following these instructions for Ubunutu 14.04).

      ← Previous 1

      Feedback and Knowledge Base