GNU bug report logs - #69882
ghc-profunctors-5.6.2 substitute is a 0 byte so file

Previous Next

Package: guix;

Reported by: SkeletonAdventure <SkeletonAdventure <at> proton.me>

Date: Mon, 18 Mar 2024 22:41:01 UTC

Severity: normal

To reply to this bug, email your comments to 69882 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#69882; Package guix. (Mon, 18 Mar 2024 22:41:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to SkeletonAdventure <SkeletonAdventure <at> proton.me>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 18 Mar 2024 22:41:02 GMT) Full text and rfc822 format available.

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

From: SkeletonAdventure <SkeletonAdventure <at> proton.me>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: ghc-profunctors-5.6.2 substitute is a 0 byte so file
Date: Mon, 18 Mar 2024 22:30:15 +0000
[Message part 1 (text/plain, inline)]
When attempting to build a package dependent on ghc-profunctors, I get this message:

/gnu/store/3x7nzknpil5zrq13pnswvn5c4yl1cwj4-ghc-profunctors-5.6.2/lib/x86_64-linux-ghc-9.2.5/libHSprofunctors-5.6.2-FoCtSorI5di3GxmpY9TPlQ-ghc9.2.5.so: file too short

I get the following doing ls on the file

$ ls -l /gnu/store/3x7nzknpil5zrq13pnswvn5c4yl1cwj4-ghc-profunctors-5.6.2/lib/x86_64-linux-ghc-9.2.5/libHSprofunctors-5.6.2-FoCtSorI5di3GxmpY9TPlQ-ghc9.2.5.so
-r-xr-xr-x 1 root root 0 Dec 31 1969 /gnu/store/3x7nzknpil5zrq13pnswvn5c4yl1cwj4-ghc-profunctors-5.6.2/lib/x86_64-linux-ghc-9.2.5/libHSprofunctors-5.6.2-FoCtSorI5di3GxmpY9TPlQ-ghc9.2.5.so

I have fixed this problem in the past by using guix gc to delete everything dependent on ghc-profunctors, then ghc-profunctors itself. After that I reinstalled the deleted items with substitutes off and it was no longer a 0 byte file. Following a system and home reconfigure using substitutes the ghc-profunctors .so is a 0 byte file again. It took me awhile to notice this time around so now it would be too difficult to perform my initial fix again since I've gone through several generations with this bad file.

If there is a way to force this one package to rebuild without substitutes, or other work-arounds I would love to hear them, but more than that I'd be interested in a fix if this is a problem I think originates with the substitute. Thanks.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#69882; Package guix. (Mon, 18 Mar 2024 23:39:01 GMT) Full text and rfc822 format available.

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

From: SkeletonAdventure <SkeletonAdventure <at> proton.me>
To: "69882 <at> debbugs.gnu.org" <69882 <at> debbugs.gnu.org>
Subject: More Information
Date: Mon, 18 Mar 2024 23:37:11 +0000
[Message part 1 (text/plain, inline)]
Actually, after poking around further, it seems it's not builds, but only this shebang I've been using where it happens. ghc-turtle depends on ghc-foldl which depends on ghc-profunctors.

#!/run/current-system/profile/bin/env -S guix shell ghc <at> 9.2 ghc-turtle -- runhaskell

But, packages I use like kmonad use depend on packages that still list the store path with the empty .so as a reference, along with other Haskell programs. I am not really sure how they still work.
[Message part 2 (text/html, inline)]

This bug report was last modified 46 days ago.

Previous Next


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