GNU bug report logs - #48352
Haskell cabal new-build fails

Previous Next

Package: guix;

Reported by: Bone Baboon <bone.baboon <at> disroot.org>

Date: Tue, 11 May 2021 14:26:01 UTC

Severity: normal

Tags: moreinfo

To reply to this bug, email your comments to 48352 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#48352; Package guix. (Tue, 11 May 2021 14:26:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bone Baboon <bone.baboon <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 11 May 2021 14:26:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bone Baboon <bone.baboon <at> disroot.org>
To: bug-guix <at> gnu.org
Subject: Haskell cabal new-build fails
Date: Tue, 11 May 2021 10:23:48 -0400
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)
```




Information forwarded to bug-guix <at> gnu.org:
bug#48352; Package guix. (Thu, 10 Jun 2021 11:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 48352 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Bone Baboon <bone.baboon <at> disroot.org>
Cc: 48352 <at> debbugs.gnu.org
Subject: Re: bug#48352: Haskell cabal new-build fails
Date: Thu, 10 Jun 2021 13:10:34 +0200
Hi,

On Tue, 11 May 2021 at 10:23, Bone Baboon <bone.baboon <at> disroot.org> wrote:
> 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.

Does the John’s message fix the issue?

<https://lists.gnu.org/archive/html/help-guix/2021-04/msg00090.html>

All the best,
simon




Added tag(s) moreinfo. Request was from zimoun <zimon.toutoune <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 02 Jul 2021 16:39:02 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.