ghc-profunctors-5.6.2 substitute is a 0 byte so file

  • Open
  • quality assurance status badge
Details
One participant
  • SkeletonAdventure
Owner
unassigned
Submitted by
SkeletonAdventure
Severity
normal

Debbugs page

SkeletonAdventure wrote 12 months ago
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
9HxVOLcIebYL2yg84dQPpgRFllh8PEWiw9cH8s-RLeaQIn1j-buMeDJEn-rECZR6wH7DYJqMsdt5zqNu7ehPy1sivI3U8e7uernYF3Ptca0=@proton.me
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.
Attachment: file
SkeletonAdventure wrote 12 months ago
More Information
(name . 69882@debbugs.gnu.org)(address . 69882@debbugs.gnu.org)
l1d7_CLsut70ZawrtKwhHCzPTm_cBX35hfHl63viOjnLV8KikNqeWnPvsNPj2gXCSZGBMyRcl4kR19FREJ-CLHRrLNNxiOG698yqOH_gREU=@proton.me
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@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.
Attachment: file
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 69882@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69882
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help