unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Bone Baboon via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 48352@debbugs.gnu.org
Subject: bug#48352: Haskell cabal new-build fails
Date: Tue, 11 May 2021 10:23:48 -0400	[thread overview]
Message-ID: <87cztxfix7.fsf@disroot.org> (raw)

I am experiencing an error when I try to compile a Haskell program with
Cabal a Haskell build tool.

Previously I had Cabal working and was able to compile Haskell
programs.
https://lists.gnu.org/archive/html/help-guix/2021-04/msg00096.html

Now when I try to build a Haskell program with `cabal new-build` I get
an error.

`guix describe` outputs:

```
Generation 14   May 11 2021 08:06:01    (current)
  guix bddad00
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: bddad00bffc5837e89942756fa5b7234f63f1f47
```

The error message:

```
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
 - <program>-0.1.0.0 (exe:<program>) (first run)
Preprocessing executable '<program>' for <program>-0.1.0.0..
Building executable '<program>' for <program>-0.1.0.0..
Linking <program-source-code-directory>/dist-newstyle/build/x86_64-linux/ghc-8.6.5/<program>-0.1.0.0/x/<program>/build/<program>/<program> ...

In file included from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/errno.h:28:0: error:
    0,
                     from /gnu/store/5i95kk1qdfvl6ld3hf6a4q7kxw6sgpkv-ghc-8.6.5/lib/ghc-8.6.5/include/rts/OSThreads.h:28,
                     from /gnu/store/5i95kk1qdfvl6ld3hf6a4q7kxw6sgpkv-ghc-8.6.5/lib/ghc-8.6.5/include/Rts.h:168,
                     from /tmp/ghc8802_0/ghc_1.c:1:

/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/bits/errno.h:26:11: error:
     fatal error: linux/errno.h: No such file or directory
     # include <linux/errno.h>
               ^~~~~~~~~~~~~~~
   |
26 | # include <linux/errno.h>
   |           ^
compilation terminated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
```




             reply	other threads:[~2021-05-11 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 14:23 Bone Baboon via Bug reports for GNU Guix [this message]
2021-06-10 11:10 ` bug#48352: Haskell cabal new-build fails zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cztxfix7.fsf@disroot.org \
    --to=bug-guix@gnu.org \
    --cc=48352@debbugs.gnu.org \
    --cc=bone.baboon@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).